[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

mock mock.spec,1.5,1.6



Author: skvidal

Update of /cvs/fedora/mock
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20837

Modified Files:
	mock.spec 
Log Message:

clean up spec file for fedora extras



Index: mock.spec
===================================================================
RCS file: /cvs/fedora/mock/mock.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- mock.spec	28 May 2005 17:24:31 -0000	1.5
+++ mock.spec	5 Jun 2005 08:00:19 -0000	1.6
@@ -4,9 +4,9 @@
 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 @@
 
 
 %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 @@
 
 
 %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 @@
 
 
 %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
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]