diff options
author | skvidal <skvidal> | 2005-06-05 08:00:19 +0000 |
---|---|---|
committer | skvidal <skvidal> | 2005-06-05 08:00:19 +0000 |
commit | c367760316e841531ad13b4156a51bff218841b0 (patch) | |
tree | c57be3195528a5cee1d4d9e748904e07ce069034 /mock.spec | |
parent | 253c2e6a6860b1949332cf1113160a2e84b43ec3 (diff) | |
download | mock-c367760316e841531ad13b4156a51bff218841b0.tar.gz mock-c367760316e841531ad13b4156a51bff218841b0.tar.xz mock-c367760316e841531ad13b4156a51bff218841b0.zip |
clean up spec file for fedora extras
Diffstat (limited to 'mock.spec')
-rw-r--r-- | mock.spec | 19 |
1 files changed, 13 insertions, 6 deletions
@@ -4,9 +4,9 @@ Version: 0.2 Release: 1 License: GPL Group: Development/Tools -Source: %{name}-%{version}.tar.gz +Source: http://linux.duke.edu/~skvidal/mock/%{name}-%{version}.tar.gz +URL: http://linux.duke.edu/~skvidal/mock/ BuildRoot: %{_tmppath}/%{name}-%{version}root -BuildRequires: gcc Requires: python, yum >= 2.2.1 Requires(pre): shadow-utils @@ -22,7 +22,7 @@ make %install -[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT +rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install # make the default.cfg link cd $RPM_BUILD_ROOT/%{_sysconfdir}/%{name} @@ -30,13 +30,17 @@ ln -s fedora-development-i386-core.cfg default.cfg %clean -[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT +rm -rf $RPM_BUILD_ROOT %pre -groupadd -r mock >/dev/null 2>&1 || : +if [ $1 == 1 ]; then + groupadd -r mock >/dev/null 2>&1 || : +fi %postun -groupdel mock >/dev/null 2>&1 || : +if [ $1 == 0 ]; then + groupdel mock >/dev/null 2>&1 || : +fi %files @@ -50,6 +54,9 @@ groupdel mock >/dev/null 2>&1 || : %changelog +* Sun Jun 5 2005 Seth Vidal <skvidal@phy.duke.edu> +- clean up packaging for fedora extras + * Thu May 19 2005 Seth Vidal <skvidal@phy.duke.edu> - second packaging and backing down the yum ver req |