diff --git a/pfHandle.spec b/pfHandle.spec index c333fca..7d7ef6a 100644 --- a/pfHandle.spec +++ b/pfHandle.spec @@ -1,55 +1,57 @@ -%define name pfHandle -%define version 1.0 -%define release 1 -Summary: This is what pfHandle does. -Name: %{name} -Version: %{version} -Release: %{release}%{?dist} -Source: %{name}-%{version}.tar.gz -License: GNU GPL version 2 -Group: SMEserver/addon -BuildRoot: %{_tmppath}/%{name}-buildroot -Prefix: %{_prefix} -BuildArchitectures: noarch -BuildRequires: smeserver-devtools -Requires: smeserver-release >= 11.0 -AutoReqProv: no +Summary: Postfix management wrapper utility +Name: pfHandle +Version: 1.1 +Release: 4%{?dist} +License: GPLv2 +Group: Applications/System +URL: http://launchpad.net/pfhandle +Source: http://launchpad.net/pfhandle/1.0/initial/+download/pfHandle-1.1.tar.gz +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: postfix + %description -pfhandle to handle postfix queue the way we used to with qmhandle. - -%changelog -* Day MMMM DD YYYY 1.0-1.sme -- Initial code - create RPM [SME:99999] +This is a program that incorporates all the various built in tools of Postfix +in a single program and extends this functionality with some additional options. %prep - -%setup -q +%setup -q -n %{name}-%{version} %build -perl createlinks %install rm -rf $RPM_BUILD_ROOT -(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) -rm -f %{name}-%{version}-filelist -/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ -> %{name}-%{version}-filelist -#echo "%doc COPYING" >> %{name}-%{version}-filelist -#--dir 'attr(755,user,grp)' \ -#--file 'attr(755,root,root)' \ +mkdir -p -m0755 $RPM_BUILD_ROOT%{_sbindir} +mkdir -p -m0755 $RPM_BUILD_ROOT%{_defaultdocdir}/pfHandle-%{version} +mkdir -p -m0755 $RPM_BUILD_ROOT%{_mandir}/man5 + +install -m 0755 pfHandle $RPM_BUILD_ROOT%{_sbindir}/ +install -m 0644 CHANGELOG $RPM_BUILD_ROOT%{_defaultdocdir}/pfHandle-%{version}/CHANGELOG +install -m 0644 COPYING $RPM_BUILD_ROOT%{_defaultdocdir}/pfHandle-%{version}/COPYING +install -m 0644 pfHandle.5.gz $RPM_BUILD_ROOT%{_mandir}/man5/ %clean -cd .. -rm -rf %{name}-%{version} +rm -rf $RPM_BUILD_ROOT -%pre +%files +%defattr(-,root,root,-) +%dir %{_defaultdocdir}/%{name}-%{version} +%{_sbindir}/pfHandle +%doc CHANGELOG COPYING +%doc %{_mandir}/man5/%{name}.5.gz -%preun +%changelog +* Wed Feb 09 2011 Fedora Release Engineering - 1.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild -%post +* Wed Jul 28 2010 Carl Thompson 1.1-3 +- updated README source tar versioning +- updated doc section of spec +* Tue Jul 27 2010 Carl Thompson 1-2 +- remove RPM_BUILD_ROOT test +- added COPYING for licensing +- updated README informing of COPYING +* Fri Jul 17 2009 Carl Thompson 1-1 +-Initial release -%postun -#uninstall -%files -f %{name}-%{version}-filelist -%defattr(-,root,root)