Hello community,

here is the log from the commit of package python-flickrapi for openSUSE:Factory
checked in at Mon Sep 26 10:15:07 CEST 2011.



--------
--- python-flickrapi/python-flickrapi.changes   2010-09-03 14:54:23.000000000 
+0200
+++ /mounts/work_src_done/STABLE/python-flickrapi/python-flickrapi.changes      
2011-09-22 13:00:29.000000000 +0200
@@ -1,0 +2,17 @@
+Thu Sep 22 10:59:07 UTC 2011 - sasc...@suse.de
+
+- BuildRequire python-docutils instead of old docutils
+
+-------------------------------------------------------------------
+Wed Sep 21 09:14:44 UTC 2011 - sasc...@suse.de
+
+- Update to version 1.4.0:
+  * No changes provided by upstream
+- Spec file cleanup:
+  * Proper suse version checks
+  * Removed old stuff (%clean section)
+  * Corrected docs install location, generate HTML docs
+  * Obsolete doc package, ship in base package
+  * Fix non-executable bit rpmlint warning
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


Old:
----
  flickrapi-1.3.tar.bz2

New:
----
  flickrapi-1.4.2.zip

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

Other differences:
------------------
++++++ python-flickrapi.spec ++++++
--- /var/tmp/diff_new_pack.LBgD9l/_old  2011-09-26 10:14:39.000000000 +0200
+++ /var/tmp/diff_new_pack.LBgD9l/_new  2011-09-26 10:14:39.000000000 +0200
@@ -11,34 +11,38 @@
 # case the license is the MIT License). An "Open Source License" is a
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
-
+#
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-# norootforbuild
-
 
 Name:           python-flickrapi
-%define _name   flickrapi
+Version:        1.4.2
+Release:        0
+Url:            http://stuvel.eu/projects/flickrapi
+Summary:        Python interface to Flickr
 License:        Python 2.5 license
 Group:          Development/Libraries/Python
-Version:        1.3
-Release:        1
-Summary:        Python interface to Flickr
-Url:            http://stuvel.eu/projects/flickrapi
-Source:         %{_name}-%{version}.tar.bz2
-BuildRequires:  docutils
+Source:         flickrapi-%{version}.zip
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  python-docutils
 BuildRequires:  python-devel
-BuildRequires:  python-setuptools
+BuildRequires:  python-distribute
 BuildRequires:  python-xml
+BuildRequires:  unzip
 Requires:       python-xml
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+%if 0%{?suse_version}
 %py_requires
-%if %suse_version <= 1110
-%define python_sitelib %{py_sitedir}
-%else
+%if 0%{?suse_version} > 1010
+BuildRequires:  fdupes
+%endif
+%if 0%{?suse_version} > 1110
 BuildArch:      noarch
 %endif
+%endif
+Provides:       python-flickrapi-doc = %{version}
+Obsoletes:      python-flickrapi-doc < %{version}
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
 %description
 The easiest to use, most complete, and most actively developed
@@ -46,38 +50,21 @@
 authorized and non-authorized access, uploading and replacing
 photos, and all Flickr API functions.
 
-%package doc
-License:        Python 2.5 license
-Group:          Development/Libraries/Python
-Summary:        Python interface to Flickr - Documentation
-Requires:       %{name} = %{version}
-
-%description doc
-The easiest to use, most complete, and most actively developed
-Python interface to the Flickr API. It includes support for
-authorized and non-authorized access, uploading and replacing
-photos, and all Flickr API functions.
-
 %prep
-%setup -q -n %{_name}-%{version}
+%setup -q -n flickrapi-%{version}
+sed -i "1d" flickrapi/__init__.py # Fix non-executable script
 
 %build
-%{__python} setup.py build
+python setup.py build
+cd doc && make # Build HTML documentation
 
 %install
-%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot}
-
-%clean
-%{__rm} -rf %{buildroot}
+python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+rm -rf 
%{buildroot}/usr/{{LICENSE,README,UPGRADING},share/doc/flickrapi-%{version}} # 
Remove wrongly installed documentation
 
 %files
 %defattr(-,root,root)
 %doc LICENSE README UPGRADING
-%{python_sitelib}/%{_name}-%{version}-py%{py_ver}.egg-info
-%{python_sitelib}/%{_name}/
-
-%files doc
-%defattr(-,root,root)
-%{_datadir}/doc/%{_name}-%{version}
+%{python_sitelib}/*
 
 %changelog


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



Remember to have fun...

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to