RPM spec file
Notes
To view the resulting rpm use these in the RPMS directory
rpm -q --requires -p webwork-2.4.9.1-1.fc15.x86_64.
rpm |less
rpm -q -l -p webwork-2.4.9.1-1.fc15.x86_64.rpm |less
Spec file
Here is the spec file that worked. More config stuff could be done (for the webwork part) e.g. add webwork.apache2-config to the write directory file and so forth need to find a list of %{ } expansions
Name: webwork Version: 2.4.9.1 Release: 1%{?dist} Summary: On-line homework system for math and science # latest version is 2.5.0 but I need to make a tarball for it. License: GPL2+, Artistic license URL: http://webwork.maa.org # documents at http://webwork.maa.org/wiki Source0: http://sourceforge.net/projects/openwebwork/files/webwork2/2.4.9.1/webwork2-rel-2-4-9-1.tar.gz Source1: http://sourceforge.net/projects/openwebwork/files/pg/2.4.9.1/pg-rel-2-4-9-1.tar.gz # svn distribution at http://svn.webwork.maa.org BuildArch: noarch BuildRequires: autoconf #perl and apache files Requires: make Requires: gcc Requires: webserver Requires: libapreq2 Requires: perl Requires: mod_perl # what about: apache2-mpm-prefork # mysql files Requires: mysql-server Requires: perl-DBD-MySQL # perl CPAN files Requires: perl-Benchmark Requires: perl-Carp Requires: perl-CGI Requires: perl-CPAN Requires: perl-Data-Dumper Requires: perl-Data-UUID Requires: perl-Date-Format Requires: perl-Date-Parse Requires: perl-DateTime Requires: perl-DBD-mysql Requires: perl-DBI Requires: perl-Digest-MD5 Requires: perl-Digest-SHA Requires: perl-Email-Address Requires: perl-Errno Requires: perl-Exception-Class # libextutils-xsbuilder-perl Requires: perl-File-Copy Requires: perl-File-Find Requires: perl-File-Path Requires: perl-File-Spec Requires: perl-File-stat Requires: perl-File-Temp Requires: perl-GD Requires: perl-Getopt-Long Requires: perl-Getopt-Std Requires: perl-HTML-Entities Requires: perl-HTML-Tagset Requires: perl-IO-File Requires: perl-Iterator Requires: perl-Iterator-Util Requires: perl-LDAP Requires: perl-libapreq2 Requires: perl-Mail-Sender # Requires: perl-MIME-Base32 Requires: perl-MIME-Base64 Requires: perl-Net-IP Requires: perl-Net-LDAPS Requires: perl-Net-SMTP Requires: perl-Opcode Requires: perl-PadWalker Requires: perl-PHP-Serialization Requires: perl-Pod-Usage Requires: perl-Pod-WSDL Requires: perl-Safe Requires: perl-Scalar-Util Requires: perl-SOAP-Lite Requires: perl-Socket Requires: perl-SQL-Abstract Requires: perl-String-ShellQuote Requires: perl-Text-Wrap Requires: perl-Tie-IxHash Requires: perl-Time-HiRes Requires: perl-Time-Zone Requires: perl-TimeDate Requires: perl-URI-Escape Requires: perl-UUID-Tiny Requires: perl-XML-Parser Requires: perl-XML-Parser-EasyTree Requires: perl-XML-Writer Requires: perl-XMLRPC-Lite # misc Requires: system-config-services Requires: uuid-perl Requires: xmlrpc Requires: netpbm #tex files Requires: texlive-latex Requires: texlive-texmf-errata Requires: tex-preview Requires: dvipng #utility files Requires: subversion Requires: make Requires: gcc Requires: unzip %description WeBWorK is an online homework system for mathematics and sciences classes. WeBWorK is supported by the Mathematical Association of America and the US National Science Foundation and comes with a National Problem Library (NPL) of over 20,000 homework problems. Problems in the NPL target most lower division undergraduate math courses and some advanced courses. %prep %setup -q -n webwork2 %setup -q -b 1 -n pg %install #rm -rf $RPM_BUILD_ROOT #mkdir $RPM_BUILD_ROOT #make install DESTDIR=$RPM_BUILD_ROOT mkdir -p %{buildroot}%{_datadir}/ webwork cd .. pwd cp -RPpi webwork2 pg %{buildroot}%{_datadir}/webwork %files %{_datadir}/* %doc %changelog * Wed Aug 10 2011 Michael Gage <gage@math.rochester.edu> - 2.4.9.1 - initial build of 2.4.9.1