[pycmd] Modernize spec file.

Thomas Moschny thm at fedoraproject.org
Sat Aug 17 10:37:21 UTC 2013


commit b85e11667ead718c2a9319696cc5190d1d036e7e
Author: Thomas Moschny <thm at fedoraproject.org>
Date:   Sat Aug 17 12:34:22 2013 +0200

    Modernize spec file.

 pycmd.spec |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/pycmd.spec b/pycmd.spec
index 99f6102..b86aac3 100644
--- a/pycmd.spec
+++ b/pycmd.spec
@@ -9,13 +9,12 @@
 
 Name:           pycmd
 Version:        1.0
-Release:        9%{?dist}
+Release:        10%{?dist}
 Summary:        Tools for managing/searching Python related files
 Group:          Development/Languages
 License:        MIT
 URL:            http://pypi.python.org/pypi/pycmd
 Source0:        http://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.zip
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
@@ -68,7 +67,6 @@ popd
 
 
 %install
-rm -rf %{buildroot}
 %{__python} setup.py install -O1 --skip-build --root %{buildroot}
 
 # remove shebangs
@@ -107,12 +105,7 @@ for cmd in py.cleanup py.convert_unittest py.countloc py.lookup py.svnwcrevert p
 done
 
 
-%clean
-rm -rf %{buildroot}
-
-
 %files
-%defattr(-,root,root,-)
 %doc LICENSE README.txt CHANGELOG
 %{_bindir}/py.cleanup
 %{_bindir}/py.cleanup-%{python_version}
@@ -130,7 +123,6 @@ rm -rf %{buildroot}
 
 %if 0%{?with_python3}
 %files -n python3-pycmd
-%defattr(-,root,root,-)
 %doc LICENSE README.txt CHANGELOG
 %{_bindir}/py.cleanup-%{python3_version}
 %{_bindir}/py.convert_unittest-%{python3_version}
@@ -143,6 +135,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Sat Aug 17 2013 Thomas Moschny <thomas.moschny at gmx.de> - 1.0-10
+- Modernize spec file.
+
 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0-9
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 


More information about the scm-commits mailing list