/usr/share/doc/munipack/rpmbuilder.html is in munipack-doc 0.5.10-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | <!DOCTYPE HTML>
<html lang="en">
<head>
<!-- meta -->
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="description" content="A general astronomical image processing software">
<meta name="author" content="Filip Hroch">
<link href="news_feed.xml" type="application/atom+xml" rel="alternate" title="Sitewide ATOM Feed" />
<link type="text/css" rel="stylesheet" href="munipack.css">
<link rel="shortcut icon" href="favicon.ico">
<title>RPM binary package</title>
</head>
<body>
<header>
<a href="munipack.html"><img src="title_logo.png" alt="Munipack's logo" class="head"></a>
<div class="headhead">
<div class="headtitle">
<a class="headtitle" href="munipack.html">Munipack</a>
<a class="headsubtitle" href="munipack.html">A general astronomical image processing software</a>
</div>
<ul class="menu">
<li class="menu">◈ <a href="docs.html" class="menu">Documents</a></li>
<li class="menu">☺ <a href="guide.html" class="menu">User guide</a></li>
</ul>
</div>
</header>
<h1>RPM binary package</h1>
<p class="abstract">This page decribes how to prepare binary package
for RPM-based distributions (Fedora, RHELL), by the ordinary way.
Building of package follows basic rules in
<a href="https://fedoraproject.org/wiki/How_to_create_an_RPM_package#Building_the_binary_package">How to create an RPM package</a>.
</p>
<p>It is supposed to run commands introduced by # as root </p>
<pre># id
uid=0(root) ..
</pre>
<p>and ones denoted by $ as an ordinary user: </p>
<pre>$ id
uid=12345(user) ...
</pre>
<h2>Prerequisites</h2>
<p>Following tools are required for the building: </p>
<ul>
<li>Fortran 95 and C++ compilers </li>
<li>wxGTK development libraries (version >= <strong>3.0.0</strong>) </li>
<li>Mercurial, the version control system (optional) </li>
</ul>
<p>Required tools could be installed by the command (valid for Fedora 21,
modify to satisfy your needs): </p>
<pre>
# yum install fedora-packager gcc-gfortran gcc-c++ libgfortran-static libstdc++-static cfitsio-devel ImageMagick autoconfig automake wxGTK3-devel
</pre>
<p>A lot of dependencies will be requested. Imagemagic is installed by default.
The lib...-static are added because ones are not included in devel packages directly.
</p>
<p>Prepare building environment (if need):</p>
<pre>
$ rpmdev-setuptree
</pre>
<h2>Build Of Stable Version</h2>
<p>
Download latest Munipack:
<a href="ftp://munipack.physics.muni.cz/pub/munipack/">ftp://munipack.physics.muni.cz/pub/munipack/</a>
and place it in <samp>~/rpmbuild/SOURCES</samp> directory.
</p>
<p>Prepare package:</p>
<pre>
$ cd ~/rpmbuild/SOURCES
$ tar zxfO munipack-0.5.7.tar.gz munipack-0.5.7/munipack.spec > ~/rpmbuild/SPECS/munipack.spec
$ cd ~/rpmbuild/SPECS
$ rpmbuild -ba munipack.spec
</pre>
<p>
When the build finished sucessfully, the packages in
<samp>~/rpmbuild/RPMS/<ARCH>/</samp>
are ready to install. Their installation is strightforward:
</p>
<pre>
$ cd ~/rpmbuild/RPMS/<ARCH>/
$ su
# rpm -i munipack-*.rpm
</pre>
<h2>Build Of Development Version</h2>
<p>
Install Mercurial additionaly:
</p>
<pre>
# yum install mercurial
</pre>
<p>
Obtain latest source code from Mercurial and update their own version
(set as <samp>0.X.Y+my001</samp>):
</p>
<pre>
$ export VER=0.X.Y+my001
$ hg clone http://munipack.physics.muni.cz/hg/munipack munipack-${VER}/
$ cd munipack-${VER}/
$ ./bootstrap
$ cd ..
$ tar zcf munipack-${VER}.tar.gz munipack-${VER}/ --exclude ".hg*"
</pre>
<p>
and follow instructions in previous sections.
</p>
<footer>
<div style="float:left; margin-left:2em;">
Copyright © 1997 – 2018
Filip Hroch (<a style="text-decoration: none" href="mailto:hroch@physics.muni.cz?Subject=Munipack" title="Author's Email">✉</a>), license <a href="http://www.gnu.org/licenses/gpl.html">GPLv3</a>.
</div>
<div style="float:right; margin-right:2em; margin-top:-0.2em;">
<a href="http://monteboo.blogspot.com/search/label/Munipack" title="Munipack on MonteBoo Blog"><img src="favicon-blogger.png" alt="Blogger"></a>
<a href="http://www.muni.cz/?lang=en" title="Masaryk University in Brno, Czech Republic"><img src="mu-logo.png" alt="Masaryk University"></a>
<a href="news_feed.xml" title="Munipack's Releases in Atom Syndication Format"><img src="Feed-icon.png" alt="Atom Feed"></a>
</div>
</footer>
</body>
</html>
|