Hello community,

here is the log from the commit of package python-tz for openSUSE:Factory 
checked in at 2012-05-21 07:30:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-tz (Old)
 and      /work/SRC/openSUSE:Factory/.python-tz.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-tz", Maintainer is ""

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-tz/python-tz.changes      2012-05-07 
22:51:02.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-tz.new/python-tz.changes 2012-05-21 
07:30:46.000000000 +0200
@@ -1,0 +2,6 @@
+Mon May 14 13:03:19 UTC 2012 - [email protected]
+
+- Cleanup spec files
+- Fix rpmlint warnings
+
+-------------------------------------------------------------------
python3-tz.changes: same change

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

Other differences:
------------------
++++++ python-tz.spec ++++++
--- /var/tmp/diff_new_pack.Q25yRG/_old  2012-05-21 07:30:47.000000000 +0200
+++ /var/tmp/diff_new_pack.Q25yRG/_new  2012-05-21 07:30:47.000000000 +0200
@@ -15,28 +15,26 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-
-Name:           python-tz
+%define pyname  tz
+Name:           python-%{pyname}
+%define modname py%{pyname}
 Version:        2012c
 Release:        0
+Summary:        Olson timezone database for python
+License:        MIT
+Group:          Development/Libraries/Python
 Url:            http://pytz.sourceforge.net/
-Source0:        
http://pypi.python.org/packages/source/p/pytz/pytz-%{version}.tar.bz2
-%if 0%{?suse_version} > 1110
-BuildArch:      noarch
-%endif
+Source0:        
http://pypi.python.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.bz2
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} > 1010
+BuildRequires:  python-devel
+%if 0%{?suse_version}
 BuildRequires:  fdupes
 %endif
-BuildRequires:  python-devel
-# Requires python-setuptools with Python 2.3
-%if 0%{?sles_version} == 9
-BuildRequires:  python-setuptools
+%if 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
-Summary:        Olson timezone database for python
-License:        MIT
-Group:          Development/Libraries/Python
 
 %description
 pytz brings the Olson tz database into Python. This library allows
@@ -46,22 +44,26 @@
 Reference (datetime.tzinfo).
 
 %prep
-%setup -n pytz-%{version}
+%setup -n %{modname}-%{version}
 
 %build
-%{__python} setup.py build
+python setup.py build
 
 %install
-%{__python} setup.py install --root=%{buildroot} --prefix=%{_prefix} 
--record-rpm=INSTALLED_FILES
-%if 0%{?suse_version} > 1010
+python setup.py install --root=%{buildroot} --prefix=%{_prefix}
+# fix executability rpmlint warning
+chmod +x %{buildroot}%{python_sitelib}/%{modname}/tzfile.py
+%if 0%{?suse_version}
 %fdupes %{buildroot}
 %endif
 
 %clean
-%__rm -rf %{buildroot}
+rm -rf %{buildroot}
 
-%files -f INSTALLED_FILES
+%files
 %defattr(-,root,root,-)
 %doc CHANGES.txt LICENSE.txt README.txt
+%{python_sitelib}/%{modname}/
+%{python_sitelib}/%{modname}-%{version}-py%{py_ver}.egg-info
 
 %changelog

++++++ python3-tz.spec ++++++
--- /var/tmp/diff_new_pack.Q25yRG/_old  2012-05-21 07:30:47.000000000 +0200
+++ /var/tmp/diff_new_pack.Q25yRG/_new  2012-05-21 07:30:47.000000000 +0200
@@ -15,15 +15,16 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-
-Name:           python3-tz
+%define pyname  tz
+Name:           python3-%{pyname}
+%define modname py%{pyname}
 Version:        2012c
 Release:        0
 Summary:        Olson timezone database for python
 License:        MIT
 Group:          Development/Libraries/Python
 Url:            http://pytz.sourceforge.net/
-Source0:        
http://pypi.python.org/packages/source/p/pytz/pytz-%{version}.tar.bz2
+Source0:        
http://pypi.python.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.bz2
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  python3
 BuildRequires:  python3-2to3
@@ -34,9 +35,6 @@
 %if 0%{?suse_version} <= 1140
 %{!?python3_sitelib: %global python3_sitelib %(python3 -c "from 
distutils.sysconfig import get_python_lib; print(get_python_lib())")}
 %{!?py3_ver: %global py3_ver %(python3 -c "import sys; 
version=str(sys.version_info[0]) + '.' + str(sys.version_info[1]); 
print(version)" 2>/dev/null || echo PYTHON-NOT-FOUND)}
-%ifarch x86_64
-BuildRequires:  python3-32bit
-%endif
 %endif
 BuildArch:      noarch
 Requires:       python3 >= %{py3_ver}
@@ -49,13 +47,15 @@
 Reference (datetime.tzinfo).
 
 %prep
-%setup -n pytz-%{version}
+%setup -n %{modname}-%{version}
 
 %build
 python3 setup.py build
 
 %install
 python3 setup.py install --root=%{buildroot} --prefix=%{_prefix}
+# fix executability rpmlint warning
+chmod +x %{buildroot}%{python3_sitelib}/%{modname}/tzfile.py
 %if 0%{?suse_version}
 %fdupes %{buildroot}
 %endif
@@ -66,9 +66,10 @@
 %files
 %defattr(-,root,root,-)
 %doc CHANGES.txt LICENSE.txt README.txt
-%{python3_sitelib}/pytz/
-%{python3_sitelib}/pytz-%{version}-py%{py3_ver}.egg-info
+%{python3_sitelib}/%{modname}/
+%{python3_sitelib}/%{modname}-%{version}-py%{py3_ver}.egg-info
 %if 0%{?suse_version} <= 1140
+%dir %{_prefix}/lib/python%{py3_ver}
 %dir %{python3_sitelib}
 %endif
 

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

Reply via email to