Name: foo Summary: The foo package does foo Version: 1.0 Release: 1 License: GPL Group: Applications/Internet URL: http://www.example.org/ Source0: %{name}-%{version}.tar.gz Patch0: foo-1.0-iconfix.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root Requires: anything Prereq: something BuildPrereq: something-else %description This package performs the foo operation. %prep %setup -q %patch0 -p1 -b .iconfix %build %configure make %install rm -fr %{buildroot} %makeinstall %clean rm -fr %{buildroot} %post /sbin/chkconfig --add foo /sbin/ldconfig %preun if [ "$1" = 0 ]; then /sbin/service foo stop > /dev/null 2>&1 /sbin/chkconfig --del foo fi %postun if [ "$1" -ge "1" ]; then /sbin/service foo condrestart > /dev/null 2>&1 /sbin/ldconfig fi %files %defattr(-,root,root) %{_bindir}/* %{_mandir}/* %{_datadir}/* %{_doc}/* %changelog * Mon Jun 16 2003 Some One — fixed the broken frobber (#86434)