[python-stomper] Modernize the specfile

Luke Macken lmacken at fedoraproject.org
Thu Feb 27 20:53:10 UTC 2014


commit 855175967cd083441254751dc9f9d5b05060987e
Author: Luke Macken <lmacken at redhat.com>
Date:   Thu Feb 27 13:47:08 2014 -0700

    Modernize the specfile

 python-stomper.spec |   14 ++++----------
 1 files changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/python-stomper.spec b/python-stomper.spec
index d1c7b67..3506753 100644
--- a/python-stomper.spec
+++ b/python-stomper.spec
@@ -32,26 +32,20 @@ create and parse STOMP messages in a programatic fashion.
 %{__python} setup.py build
 
 %install
-rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
-rm -rf $RPM_BUILD_ROOT%{python_sitelib}/stomper/examples
-rm -rf $RPM_BUILD_ROOT%{python_sitelib}/stomper/tests
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
 
 %check
-PYTHONPATH=$(pwd) nosetests
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+PYTHONPATH=. nosetests -q
 
 %files
-%defattr(-,root,root,-)
-%doc lib/stomper/doc lib/stomper/examples lib/stomper/tests
+%doc README.rst
 %{python_sitelib}/*
 
 %changelog
 * Thu Feb 27 2014 Luke Macken <lmacken at redhat.com> - 0.2.8-1
 - Update to 0.2.8 (#949150)
 - Update the URLs
+- Modernize the specfile
 
 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.2.4-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild


More information about the scm-commits mailing list