[pyhunspell] Cleanup .spec file

Till Maas till at fedoraproject.org
Wed Jan 9 20:24:53 UTC 2013


commit b397ebd6dfaff2a57608b544f2258a55805f314c
Author: Mike FABIAN <mfabian at redhat.com>
Date:   Tue Jan 8 07:15:51 2013 +0100

    Cleanup .spec file
    
    as suggested by Parag Nemade <pnemade at redhat.com>:
    
    - python site_arch macro is not needed now, remove it
    - remove buildroot tag
    - Add comment/bz reference for patch
    - removal of buildroot in %install
    - remove %clean section
    - remove defattr(-,root,root,-)
    - Add PKG-INFO to %doc
    - BuildRequires should be python2-devel and not just python-devel

 pyhunspell.spec |   15 +++------------
 1 files changed, 3 insertions(+), 12 deletions(-)
---
diff --git a/pyhunspell.spec b/pyhunspell.spec
index ec581ea..8ce5993 100644
--- a/pyhunspell.spec
+++ b/pyhunspell.spec
@@ -1,5 +1,3 @@
-%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
-
 Name:           pyhunspell
 Version:        0.1
 Release:        7%{?dist}
@@ -9,10 +7,9 @@ Group:          Development/Languages
 License:        LGPLv3+
 URL:            http://code.google.com/p/pyhunspell/
 Source0:        http://pyhunspell.googlecode.com/files/hunspell-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires:  python-devel hunspell-devel
 
+BuildRequires:  python2-devel hunspell-devel
+# make it build with hunspell-1.3:
 Patch0: pyhunspell-0.1-hunspell13.patch
 
 %description
@@ -30,17 +27,11 @@ 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
 
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files
-%defattr(-,root,root,-)
-%doc
+%doc PKG-INFO
 %{python_sitearch}/hunspell.so
 %{python_sitearch}/hunspell-*.egg-info
 


More information about the scm-commits mailing list