Difference between revisions of "RPM spec file"

From WeBWorK_wiki
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 -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
+
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
Name: webwork
+
Version: 2.4.9.1
Version: 2.4.9.1
+
Release: 1%{?dist}
Release: 1%{?dist}
+
Summary: On-line homework system for math and science
Summary: On-line homework system for math and science
+
# latest version is 2.5.0 but I need to make a tarball for it.
# latest version is 2.5.0 but I need to make a tarball for it.
+
License: GPL2+, Artistic license
License: GPL2+, Artistic license
+
URL: http://webwork.maa.org
URL: http://webwork.maa.org
+
# documents at http://webwork.maa.org/wiki
# 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
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
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
# svn distribution at http://svn.webwork.maa.org
+
BuildArch: noarch
+
BuildRequires: autoconf
BuildArch: noarch
+
# perl and apache files
BuildRequires: autoconf
+
Requires: make
+
Requires: gcc
+
Requires: webserver
#perl and apache files
+
Requires: libapreq2
Requires: make
+
Requires: perl
Requires: gcc
+
Requires: mod_perl
Requires: webserver
+
# what about: apache2-mpm-prefork
Requires: libapreq2
+
# mysql files
Requires: perl
+
Requires: mysql-server
Requires: mod_perl
+
Requires: perl-DBD-MySQL
+
# perl CPAN files
# what about: apache2-mpm-prefork
+
Requires: perl-Benchmark
# mysql files
+
Requires: perl-Carp
Requires: mysql-server
+
Requires: perl-CGI
Requires: perl-DBD-MySQL
+
Requires: perl-CPAN
# perl CPAN files
+
Requires: perl-Data-Dumper
Requires: perl-Benchmark
+
Requires: perl-Data-UUID
Requires: perl-Carp
+
Requires: perl-Date-Format
Requires: perl-CGI
+
Requires: perl-Date-Parse
Requires: perl-CPAN
+
Requires: perl-DateTime
Requires: perl-Data-Dumper
+
Requires: perl-DBD-mysql
Requires: perl-Data-UUID
+
Requires: perl-DBI
Requires: perl-Date-Format
+
Requires: perl-Digest-MD5
Requires: perl-Date-Parse
+
Requires: perl-Digest-SHA
Requires: perl-DateTime
+
Requires: perl-Email-Address
Requires: perl-DBD-mysql
+
Requires: perl-Errno
Requires: perl-DBI
+
Requires: perl-Exception-Class
Requires: perl-Digest-MD5
+
# libextutils-xsbuilder-perl
Requires: perl-Digest-SHA
+
Requires: perl-File-Copy
Requires: perl-Email-Address
+
Requires: perl-File-Find
Requires: perl-Errno
+
Requires: perl-File-Path
Requires: perl-Exception-Class
+
Requires: perl-File-Spec
# libextutils-xsbuilder-perl
+
Requires: perl-File-stat
Requires: perl-File-Copy
+
Requires: perl-File-Temp
Requires: perl-File-Find
+
Requires: perl-GD
Requires: perl-File-Path
+
Requires: perl-Getopt-Long
Requires: perl-File-Spec
+
Requires: perl-Getopt-Std
Requires: perl-File-stat
+
Requires: perl-HTML-Entities
Requires: perl-File-Temp
+
Requires: perl-HTML-Tagset
Requires: perl-GD
+
Requires: perl-IO-File
Requires: perl-Getopt-Long
+
Requires: perl-Iterator
Requires: perl-Getopt-Std
+
Requires: perl-Iterator-Util
Requires: perl-HTML-Entities
+
Requires: perl-LDAP
Requires: perl-HTML-Tagset
+
Requires: perl-libapreq2
Requires: perl-IO-File
+
Requires: perl-Mail-Sender
Requires: perl-Iterator
+
# Requires: perl-MIME-Base32
Requires: perl-Iterator-Util
+
Requires: perl-MIME-Base64
Requires: perl-LDAP
+
Requires: perl-Net-IP
Requires: perl-libapreq2
+
Requires: perl-Net-LDAPS
Requires: perl-Mail-Sender
+
Requires: perl-Net-SMTP
# Requires: perl-MIME-Base32
+
Requires: perl-Opcode
Requires: perl-MIME-Base64
+
Requires: perl-PadWalker
Requires: perl-Net-IP
+
Requires: perl-PHP-Serialization
Requires: perl-Net-LDAPS
+
Requires: perl-Pod-Usage
Requires: perl-Net-SMTP
+
Requires: perl-Pod-WSDL
Requires: perl-Opcode
+
Requires: perl-Safe
Requires: perl-PadWalker
+
Requires: perl-Scalar-Util
Requires: perl-PHP-Serialization
+
Requires: perl-SOAP-Lite
Requires: perl-Pod-Usage
+
Requires: perl-Socket
Requires: perl-Pod-WSDL
+
Requires: perl-SQL-Abstract
Requires: perl-Safe
+
Requires: perl-String-ShellQuote
Requires: perl-Scalar-Util
+
Requires: perl-Text-Wrap
Requires: perl-SOAP-Lite
+
Requires: perl-Tie-IxHash
Requires: perl-Socket
+
Requires: perl-Time-HiRes
Requires: perl-SQL-Abstract
+
Requires: perl-Time-Zone
Requires: perl-String-ShellQuote
+
Requires: perl-TimeDate
Requires: perl-Text-Wrap
+
Requires: perl-URI-Escape
Requires: perl-Tie-IxHash
+
Requires: perl-UUID-Tiny
Requires: perl-Time-HiRes
+
Requires: perl-XML-Parser
Requires: perl-Time-Zone
+
Requires: perl-XML-Parser-EasyTree
Requires: perl-TimeDate
+
Requires: perl-XML-Writer
Requires: perl-URI-Escape
+
Requires: perl-XMLRPC-Lite
Requires: perl-UUID-Tiny
+
# misc
Requires: perl-XML-Parser
+
Requires: system-config-services
Requires: perl-XML-Parser-EasyTree
+
Requires: uuid-perl
Requires: perl-XML-Writer
+
Requires: xmlrpc
Requires: perl-XMLRPC-Lite
+
Requires: netpbm
+
# tex files
# misc
+
Requires: texlive-latex
Requires: system-config-services
+
Requires: texlive-texmf-errata
Requires: uuid-perl
+
Requires: tex-preview
Requires: xmlrpc
+
Requires: dvipng
Requires: netpbm
+
# utility files
+
Requires: subversion
#tex files
+
Requires: make
Requires: texlive-latex
+
Requires: gcc
Requires: texlive-texmf-errata
+
Requires: unzip
Requires: tex-preview
+
%description
Requires: dvipng
+
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.
#utility files
+
%prep
Requires: subversion
+
%setup -q -n webwork2
Requires: make
+
%setup -q -b 1 -n pg
Requires: gcc
+
%install
Requires: unzip
+
# rm -rf $RPM_BUILD_ROOT
%description
+
# mkdir $RPM_BUILD_ROOT
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.
+
# make install DESTDIR=$RPM_BUILD_ROOT
%prep
+
mkdir -p %{buildroot}%{_datadir}/
+
webwork
%setup -q -n webwork2
+
cd ..
%setup -q -b 1 -n pg
+
pwd
+
cp -RPpi webwork2 pg %{buildroot}%{_datadir}/webwork
%install
+
%files
#rm -rf $RPM_BUILD_ROOT
+
%{_datadir}/*
#mkdir $RPM_BUILD_ROOT
+
%doc
#make install DESTDIR=$RPM_BUILD_ROOT
+
%changelog
+
* Wed Aug 10 2011 Michael Gage <gage@math.rochester.edu> - 2.4.9.1
mkdir -p %{buildroot}%{_datadir}/
+
- 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

Construction.png This article is under construction. Use the information herein with caution until this message is removed.

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