RPM === 1. Quick Introduction - If necessary RPM is RPM Package Manager. Made by RedHat. Allows to easily install binaries and rebuild sources on Unix like uperating systems. Also provides very easy to use query and verification features. And of course simplifies the uninstall process. 2. Before Creating - some useful options -i - install -V - verify -e - uninstall -q - query use with l-list f-file i-info p-not installed package 3. Creating the spec file. name it ".spec" ========= SNIP =========== Summary: A program that displays information from ELF core files into readable form. Name: viewcore Version: 0.1 Release: 2 Copyright: GPL Group: Development/Tools URL: http://turing.gcsu.edu/~adimitro/ Distribution: Viewcore Vendor: Atanas Dimitrov Packager: Atanas Dimitrov Source: viewcore-%{version}.tar.gz BuildRequires: glibc-devel >= 2.3 BuildRequires: gcc >= 3.2 BuildRoot: %{_tmppath}/%{name}-buildroot %description Viewcore allows programmers to view the information stored in an ELF core file. It can also be used on any other type of ELF object file but its concentration is mainly on coredumps. %pre #no macros here %prep %setup -q %define _prefix %{buildroot}/usr %configure %build #./configure --prefix=%{buildroot}/usr make %install #no macros here make install %clean make clean rm -rf %{buildroot} rm -rf %{_topdir}/BUILD/%{name}-%{version} %post #no macros here cat << EOF The executable installed can be run by `/usr/bin/viewcore` EOF %files %defattr(-,root,root) %doc README TODO COPYING ChangeLog /usr/bin/viewcore %changelog *Mon Sep 1 2003 Atanas Dimitrov Dynamic note handling procedure added. Other small fixes. %preun #no macros here %postun #no macros here =========== SNIP =========== - Multiple sources are allowed - /usr/share/doc/rpm-4.2/GROUPS for Software groups - /usr/lib/rpm for macros - %doc - installs the files listed in /usr/share/doc/%{name}-%{version}/ - %dir - mark a dir to be owned - %files - or with -f list of the files - %changelog - view change log information - %ifarch [] - cross arch compiling %endif - %define _var val - %pre do pre-install scripts. - %post do post-install scripts. - %preun do pre-uninstall scripts. - %postun do post-uninstall scripts. - %setup it unpacks the sources and cd in the source directory