Editing
Packaging madagascar
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==RPM== To make the RPMs, it is a good idea to first create a user just for this, i.e. <tt>makerpm</tt>. Then, install dependencies and set up. As root: <bash> yum -y groupinstall "Development Tools" yum -y install rpmdevtools rpmlint </bash> Log in as <tt>makerpm</tt>. Type: <tt>rpmdev-setuptree</tt> to create the <tt>~/rpmbuild</tt> directory. Place the [http://rsf.svn.sourceforge.net/viewvc/rsf/trunk/admin/m8r-fedora15.spec?view=markup spec file] in <tt>~/rpmbuild/SPECS</tt> , then cd to that directory and run: <bash> rpmbuild -ba m8r-fedora15.spec </bash> Then, harvest the RPM from <tt>~/rpmbuild/RPMS/$arch</tt> and the SRPM from <tt>~/rpmbuild/SRPMS/</tt> . If you want a log of the entire process, use something like: <bash> rpmbuild -ba m8r-fedora15.spec |& tee ~/log_rpm.asc </bash> If you want to make other RPM files, you may find useful to run <bash> rpmlint yourfile.spec </bash> Some warnings are OK. If you want to debug your experiments, you can comment the contents of the prep, build or clean sections in the spec file. For prep and build, you must have executed it uncommented at least once. You may be able to QC the build with <tt>mock</tt>. For this, run as root: <bash> yum -y install mock useradd -G mock makerpm </bash> Then run it with <tt>mock -r fedora-15-x86_64 rebuild path_to_source_RPM </tt>. The contents of the RPM package can be examined with <bash> rpm2cpio file.rpm | cpio -ivd </bash> [https://fedoraproject.org/wiki/How_to_create_an_RPM_package Fedora's guide to creating RPM packages] constitutes excellent further reading on the topic of making RPMs.
Summary:
Please note that all contributions to Madagascar are considered to be released under the GNU Free Documentation License 1.3 or later (see
My wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
English
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Getting Madagascar
download
Installation
GitHub repository
SEGTeX
Introduction
Package overview
Tutorial
Hands-on tour
Reproducible documents
Hall of Fame
User Documentation
List of programs
Common programs
Popular programs
The RSF file format
Reproducibility with SCons
Developer documentation
Adding programs
Contributing programs
API demo: clipping data
API demo: explicit finite differences
Community
Conferences
User mailing list
Developer mailing list
GitHub organization
LinkedIn group
Development blog
Twitter
Slack
Tools
What links here
Related changes
Special pages
Page information