Hello community,

here is the log from the commit of package python-iniparse for openSUSE:Factory 
checked in at 2012-02-01 09:59:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-iniparse (Old)
 and      /work/SRC/openSUSE:Factory/.python-iniparse.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-iniparse", Maintainer is "[email protected]"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-iniparse/python-iniparse.changes  
2011-09-23 12:42:54.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-iniparse.new/python-iniparse.changes     
2012-02-01 09:59:42.000000000 +0100
@@ -1,0 +2,8 @@
+Tue Jan 31 14:31:54 UTC 2012 - [email protected]
+
+- Spec file cleanup:
+  * Simplified macro usage
+  * Removed outdated %clean section
+  * Buildrequire python-distribute instead of setuptools
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-iniparse.spec ++++++
--- /var/tmp/diff_new_pack.C1XB0P/_old  2012-02-01 09:59:46.000000000 +0100
+++ /var/tmp/diff_new_pack.C1XB0P/_new  2012-02-01 09:59:46.000000000 +0100
@@ -1,7 +1,7 @@
 #
-# spec file for package python-iniparse (Version 0.4)
+# spec file for package python-iniparse
 #
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -15,23 +15,21 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-# norootforbuild
-
-
 Name:           python-iniparse
-BuildRequires:  python-setuptools
 Version:        0.4
-Release:        1
+Release:        0
 Summary:        Python Module for Accessing and Modifying Configuration Data 
in INI files
-Group:          Development/Libraries/Python
 License:        MIT
+Group:          Development/Libraries/Python
 Url:            http://code.google.com/p/iniparse/
 Source0:        http://iniparse.googlecode.com/files/iniparse-%{version}.tar.gz
+BuildRequires:  python-distribute
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%if %suse_version > 1120
+%if 0%{?suse_version} && 0%{?suse_version} <= 1110
+%{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%else
 BuildArch:      noarch
 %endif
-%py_requires
 
 %description
 iniparse is an INI parser for Python which is API compatible with the
@@ -41,23 +39,18 @@
 
 %prep
 %setup -q -n iniparse-%{version}
+chmod 644 html/index.html
 
 %build
-%{__python} setup.py build
-# fixes
-chmod 644 html/index.html
+python setup.py build
 
 %install
-%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT 
--prefix=%{_prefix} --record-rpm=INSTALLED_FILES
-# fixes
-rm -rf $RPM_BUILD_ROOT/usr/share/doc/iniparse-%{version}
-grep -v "share/doc/iniparse-%{version}" INSTALLED_FILES > INSTALLED_FILES-nodoc
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+python setup.py install --root %{buildroot} --prefix=%{_prefix}
+rm -rf %{buildroot}%{_datadir}/doc/iniparse-%{version} # Remove unwanted stuff
 
-%files -f INSTALLED_FILES-nodoc
+%files
 %defattr(-,root,root,-)
-%doc Changelog LICENSE LICENSE-PSF README html/index.html html/style.css
+%doc Changelog LICENSE LICENSE-PSF README html/*
+%{python_sitelib}/*
 
 %changelog

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to