rpms/python-TestGears/devel python-TestGears.spec,1.4,1.5

Luke Macken (lmacken) fedora-extras-commits at redhat.com
Sun Sep 10 22:11:58 UTC 2006


Author: lmacken

Update of /cvs/extras/rpms/python-TestGears/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv23509

Modified Files:
	python-TestGears.spec 
Log Message:
* Sun Sep 10 2006 Luke Macken <lmacken at redhat.com> 0.2-3
- Fix module inclusion, and use consistent buildroots



Index: python-TestGears.spec
===================================================================
RCS file: /cvs/extras/rpms/python-TestGears/devel/python-TestGears.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- python-TestGears.spec	10 Sep 2006 18:20:33 -0000	1.4
+++ python-TestGears.spec	10 Sep 2006 22:11:58 -0000	1.5
@@ -4,7 +4,7 @@
 
 Name:           python-TestGears
 Version:        0.2
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Unit testing for Python
 
 Group:          Development/Languages
@@ -29,21 +29,30 @@
 CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
 
 %install
-rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
-echo "TestGears-%{version}-py%{pyver}.egg" > $RPM_BUILD_ROOT%{python_sitelib}/TestGears.pth
- 
+rm -rf %{buildroot}
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+echo "TestGears-%{version}-py%{pyver}.egg-info" > %{buildroot}%{python_sitelib}/TestGears.pth
+
+echo '%defattr (0644,root,root,0755)' > pyfiles
+find %{buildroot}%{python_sitelib} -type d | \
+    sed 's:%{buildroot}\(.*\):%dir \1:' >> pyfiles
+find %{buildroot}%{python_sitelib} -not -type d -name '*.py*' | \
+    sed 's:%{buildroot}\(.*\):\1:' >> pyfiles
+
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 
-%files
+%files -f pyfiles
 %defattr(-,root,root,-)
 %doc docs LICENSE.txt TODO.txt
-%{python_sitelib}/TestGears-%{version}-py%{pyver}.egg
+%{python_sitelib}/TestGears-%{version}-py%{pyver}.egg-info/*
 %{python_sitelib}/TestGears.pth
 
 %changelog
-* Sun Sep 10 2006 Luke Macken < lmacken at redhat.com> 0.2-2
+* Sun Sep 10 2006 Luke Macken <lmacken at redhat.com> 0.2-3
+- Fix module inclusion, and use consistent buildroots
+
+* Sun Sep 10 2006 Luke Macken <lmacken at redhat.com> 0.2-2
 - Rebuild for FC6
 
 * Sat Dec 24 2005 Ignacio Vazquez-Abrams <ivazquez at ivazquez.net> 0.2-1




More information about the scm-commits mailing list