Difference between revisions of "RPM spec file"
Jump to navigation
Jump to search
(Created page with '{{UnderConstruction}} == 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 web…') |
|||
Line 5: | Line 5: | ||
To view the resulting rpm use these in the RPMS directory |
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 |less |
||
− | + | rpm -q -l -p webwork-2.4.9.1-1.fc15.x86_64.rpm |less |
|
== Spec file == |
== Spec file == |
||
Line 17: | Line 17: | ||
need to find a list of %{ } expansions |
need to find a list of %{ } expansions |
||
− | <nowiki> |
||
+ | 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: |
+ | Requires: perl |
− | Requires: |
+ | Requires: mod_perl |
− | + | # what about: apache2-mpm-prefork |
|
− | + | # mysql files |
|
− | Requires: |
+ | Requires: mysql-server |
− | Requires: |
+ | Requires: perl-DBD-MySQL |
− | + | # perl CPAN files |
|
− | + | Requires: perl-Benchmark |
|
− | + | Requires: perl-Carp |
|
− | Requires: |
+ | Requires: perl-CGI |
− | Requires: perl- |
+ | Requires: perl-CPAN |
− | + | Requires: perl-Data-Dumper |
|
− | Requires: perl- |
+ | Requires: perl-Data-UUID |
− | Requires: perl- |
+ | Requires: perl-Date-Format |
− | Requires: perl- |
+ | Requires: perl-Date-Parse |
− | Requires: perl- |
+ | Requires: perl-DateTime |
− | Requires: perl- |
+ | Requires: perl-DBD-mysql |
− | Requires: perl- |
+ | Requires: perl-DBI |
− | Requires: perl- |
+ | Requires: perl-Digest-MD5 |
− | Requires: perl- |
+ | Requires: perl-Digest-SHA |
− | Requires: perl- |
+ | Requires: perl-Email-Address |
− | Requires: perl- |
+ | Requires: perl-Errno |
− | Requires: perl- |
+ | Requires: perl-Exception-Class |
− | + | # libextutils-xsbuilder-perl |
|
− | Requires: perl- |
+ | Requires: perl-File-Copy |
− | Requires: perl- |
+ | Requires: perl-File-Find |
− | Requires: perl- |
+ | Requires: perl-File-Path |
− | Requires: perl- |
+ | Requires: perl-File-Spec |
− | + | Requires: perl-File-stat |
|
− | Requires: perl-File- |
+ | Requires: perl-File-Temp |
− | Requires: perl- |
+ | Requires: perl-GD |
− | Requires: perl- |
+ | Requires: perl-Getopt-Long |
− | Requires: perl- |
+ | Requires: perl-Getopt-Std |
− | Requires: perl- |
+ | Requires: perl-HTML-Entities |
− | Requires: perl- |
+ | Requires: perl-HTML-Tagset |
− | Requires: perl- |
+ | Requires: perl-IO-File |
− | Requires: perl- |
+ | Requires: perl-Iterator |
− | Requires: perl- |
+ | Requires: perl-Iterator-Util |
− | Requires: perl- |
+ | Requires: perl-LDAP |
− | Requires: perl- |
+ | Requires: perl-libapreq2 |
− | Requires: perl- |
+ | Requires: perl-Mail-Sender |
− | Requires: perl- |
+ | # Requires: perl-MIME-Base32 |
− | Requires: perl- |
+ | Requires: perl-MIME-Base64 |
− | Requires: perl- |
+ | Requires: perl-Net-IP |
− | Requires: perl- |
+ | Requires: perl-Net-LDAPS |
− | Requires: perl- |
+ | Requires: perl-Net-SMTP |
− | + | Requires: perl-Opcode |
|
− | Requires: perl- |
+ | Requires: perl-PadWalker |
− | Requires: perl- |
+ | Requires: perl-PHP-Serialization |
− | Requires: perl- |
+ | Requires: perl-Pod-Usage |
− | Requires: perl- |
+ | Requires: perl-Pod-WSDL |
− | Requires: perl- |
+ | Requires: perl-Safe |
− | Requires: perl- |
+ | Requires: perl-Scalar-Util |
− | Requires: perl- |
+ | Requires: perl-SOAP-Lite |
− | Requires: perl- |
+ | Requires: perl-Socket |
− | Requires: perl- |
+ | Requires: perl-SQL-Abstract |
− | Requires: perl- |
+ | Requires: perl-String-ShellQuote |
− | Requires: perl- |
+ | Requires: perl-Text-Wrap |
− | Requires: perl- |
+ | Requires: perl-Tie-IxHash |
− | Requires: perl- |
+ | Requires: perl-Time-HiRes |
− | Requires: perl- |
+ | Requires: perl-Time-Zone |
− | Requires: perl- |
+ | Requires: perl-TimeDate |
− | Requires: perl- |
+ | Requires: perl-URI-Escape |
− | Requires: perl- |
+ | Requires: perl-UUID-Tiny |
− | Requires: perl- |
+ | Requires: perl-XML-Parser |
− | Requires: perl- |
+ | Requires: perl-XML-Parser-EasyTree |
− | Requires: perl- |
+ | Requires: perl-XML-Writer |
− | Requires: perl- |
+ | Requires: perl-XMLRPC-Lite |
− | + | # misc |
|
− | Requires: |
+ | Requires: system-config-services |
− | Requires: perl |
+ | Requires: uuid-perl |
− | Requires: |
+ | Requires: xmlrpc |
− | Requires: |
+ | Requires: netpbm |
− | + | # tex files |
|
− | + | Requires: texlive-latex |
|
− | Requires: |
+ | Requires: texlive-texmf-errata |
− | Requires: |
+ | Requires: tex-preview |
− | Requires: |
+ | Requires: dvipng |
− | + | # utility files |
|
− | + | Requires: subversion |
|
− | + | Requires: make |
|
− | Requires: |
+ | Requires: gcc |
− | Requires: |
+ | 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 |
|
− | |||
− | 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 |
||
− | </nowiki> |
Latest revision as of 11:01, 1 September 2011
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