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

mock Makefile,1.2,1.3 mock.spec,1.9,1.10



Author: skvidal

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

Modified Files:
	Makefile mock.spec 
Log Message:

apply ignacio's patch for Makefile and spec file.



Index: Makefile
===================================================================
RCS file: /cvs/fedora/mock/Makefile,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Makefile	28 May 2005 17:25:48 -0000	1.2
+++ Makefile	27 Jun 2005 03:43:11 -0000	1.3
@@ -11,6 +11,10 @@
 	rm -f *.pyc *.pyo *~ *.bak
 	for d in $(SUBDIRS); do make -C $$d clean ; done
 
+distclean: clean
+	rm -rf dist build
+	rm *.tar.gz
+
 subdirs:
 	for d in $(SUBDIRS); do make -C $$d; [ $$? = 0 ] || exit 1 ; done
 
@@ -24,9 +28,13 @@
 	@rm -rf ${PKGNAME}-%{VERSION}.tar.gz
 	@rm -rf /tmp/${PKGNAME}-$(VERSION) /tmp/${PKGNAME}
 	@dir=$$PWD; cd /tmp; cp -a $$dir ${PKGNAME}
-	@rm -f /tmp/${PKGNAME}/${PKGNAME}-daily.spec
+	@rm -rf /tmp/${PKGNAME}/${PKGNAME}-daily.spec /tmp/${PKGNAME}/build /tmp/${PKGNAME}/dist
 	@mv /tmp/${PKGNAME} /tmp/${PKGNAME}-$(VERSION)
 	@dir=$$PWD; cd /tmp; tar cvzf $$dir/${PKGNAME}-$(VERSION).tar.gz ${PKGNAME}-$(VERSION)
 	@rm -rf /tmp/${PKGNAME}-$(VERSION)	
 	@echo "The archive is in ${PKGNAME}-$(VERSION).tar.gz"
 
+rpm: archive
+	rm -rf build dist
+	mkdir build dist
+	rpmbuild --define "_sourcedir $(PWD)" --define "_builddir $(PWD)/build" --define "_srcrpmdir $(PWD)/dist" --define "_rpmdir $(PWD)/dist" -ba mock.spec


Index: mock.spec
===================================================================
RCS file: /cvs/fedora/mock/mock.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- mock.spec	12 Jun 2005 03:38:19 -0000	1.9
+++ mock.spec	27 Jun 2005 03:43:11 -0000	1.10
@@ -9,6 +9,7 @@
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires: python, yum >= 2.2.1
 Requires(pre): shadow-utils
+BuildRequires: libselinux-devel
 
 
 %description
@@ -47,6 +48,7 @@
 %{_bindir}/%{name}
 %attr(04750, root, mock) %{_sbindir}/mock-helper
 %attr(02775, root, mock) %dir /var/lib/mock
+%{_libdir}/libselinux-mock.so
 
 
 %changelog


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