# this spec file part (parts are called "PART_*" in the rpm source code) is # called preamble, i.e. part before %description # only comments, macro definitions and tags (Name: Version: etc.) are # allowed here (see build/parseSpec.c in rpm) Name: lobster Version: 1.10 # use rpmdev-bumpspec to manipulate Release and %changelog Release: 1 Summary: Maximally 56 characters long License: GNU GPL; proprietary, charityware, GPL compatible Group: Applications/Emulators (/usr/share/doc/rpm/GROUPS or http://rpm.org/gitweb?p=rpm.git;a=blob;f=GROUPS;hb=HEAD) Source0: ftp://ftp.example.com/pub/lobster/%{name}-%{version}.tar.bz2 #Source1: # comma-separated list of pkgs #Requires: # comma-separated list of pkgs (use auto-buildrequires to generate # them automatically) #BuildRequires: # all these are not necessary, but sometimes handy #URL: http://www.redhat.com #Distribution: RPM test suite. #Vendor: Red Hat Software #Packager: Red Hat Software #Excludearch: lsi #Excludeos: cpm #Provides: hi #Conflicts: goodbye #Obsoletes: howdy #Prefix: /usr #BuildArch: noarch # redefine default Buildroot #BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)-buildroot %description Some macros are defined already from the header - e.g. %name %version You are encouraged to use macros from /usr/lib/rpm/macros* or define your ones in ~/.rpmmacros or even here using %define my_new_macro this_content_will_be_expanded_at_the_place_of_usage To use the percent character, put it twice %%. Lobster is a poor emulation of a human doctor, usually expecting human body parts in completely wrong places, or assuming people have various strange organs. On the other hand it can successfully implant human head to another body. Lobster is a member of Planet Express. # invoked by rpmbuild -bp %prep # unpack source code and change directory to the dir %setup %patch0 --these-are-another --arguments --for-the-patch-binary # -bc %build # run ./configure with --prefix=... etc. %configure --these-are-another --arguments --for-configure make # -bi %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT # not necessary; redefine default %clean #%clean #[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT # arbitrary scriptlets run before/after # installation/uninstallation of the final binary rpm #%pre # #%post # #%preun # #%postun # list all files and dirs with each of their part on a separate line, # e.g. instead of # %{_libdir}/pkgconfig/dbi.pc # use # %{_libdir} # %{_libdir}/pkgconfig # %{_libdir}/pkgconfig/dbi.pc # note, that you don't need to care about macros bundled with rpm # note, that non-path macros like %doc do this implicitly %files %defattr(-,root,root) %doc %{_mandir}/man1/lobster.1* FAQ %{_bindir} %{_bindir}/lobster #%readme README #%license COPYING %doc README COPYING NEWS %attr(0751,root,root) /usr/local/bin/lobster # do not edit by hand, rather use rpmdev-bumpspec %changelog * Tue Oct 20 1998 Jeff Johnson - introduce this template