Hello community,

here is the log from the commit of package python-gdata for openSUSE:Factory 
checked in at 2017-08-29 11:43:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-gdata (Old)
 and      /work/SRC/openSUSE:Factory/.python-gdata.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-gdata"

Tue Aug 29 11:43:45 2017 rev:42 rq:517246 version:2.0.18

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-gdata/python-gdata.changes        
2014-01-30 15:11:36.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python-gdata.new/python-gdata.changes   
2017-08-29 11:43:51.678178805 +0200
@@ -1,0 +2,8 @@
+Wed Jul 19 20:31:01 UTC 2017 - sebix+novell....@sebix.at
+
+- update to singlespec
+- new documentation subpackage
+ * includes samples
+- clean up specfile
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-gdata.spec ++++++
--- /var/tmp/diff_new_pack.Xmi4bu/_old  2017-08-29 11:43:52.810019249 +0200
+++ /var/tmp/diff_new_pack.Xmi4bu/_new  2017-08-29 11:43:52.814018686 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-gdata
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,53 +16,58 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%bcond_without test
 Name:           python-gdata
 Version:        2.0.18
 Release:        0
-Url:            http://code.google.com/p/gdata-python-client
 Summary:        Python library to access data through Google Data APIs
 License:        Apache-2.0
 Group:          Development/Libraries/Python
+Url:            http://code.google.com/p/gdata-python-client
 Source:         
https://gdata-python-client.googlecode.com/files/gdata-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
-%if 0%{?suse_version}
-%py_requires
-%if 0%{?suse_version} > 1110
-BuildArch:      noarch
-%endif
-%if 0%{?suse_version} > 1010
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
-%endif
-%endif
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
+BuildRequires:  python-rpm-macros
+Suggests:       python-gdata-doc
+BuildArch:      noarch
+
+%{python_subpackages}
+
+%package -n %{name}-doc
+Summary:        Documentation files for %name
+Group:          Documentation/HTML
 
 %description 
 The Google data Python Client Library provides a library and source
 code that make it easy to access data through Google Data APIs.
 
+%description -n %{name}-doc
+HTML documentation on provided interfaces and samples for %name.
+
 %prep
 %setup -q -n gdata-%{version}
-find samples/oauth src/gdata samples/apps/marketplace_sample -type f -name 
"*.py" -exec sed -i 's|\r||' {} \; # Fix wrong EOL encoding
+find samples/oauth src/gdata samples/apps/marketplace_sample -type f \( -name 
"*.py" -or -name "*.css" -or -name "*.txt" \) -exec sed -i 's|\r||' {} \; # Fix 
wrong EOL encoding
 find samples -type f -name "*.py" -exec chmod 0644 {} \; # Remove executable 
perms on samples
 find samples/apps/marketplace_sample -type f \( -name "*.c" -o -name "*.txt" 
\) -exec chmod 0644 {} \; # Remove executable perms on samples
 # Remove unnecessary Python shebangs
 find . -type f -exec sed -i -r '1s|^#! *(.+)/python(.*)$||' {} \;
 find . -type f -exec sed -i -r '1s|^#! */usr/bin/env +python.*$||' {} \;
+rm pydocs/generate_docs
 
 %build
-python setup.py build
+%{python_build}
 
 %install
-python setup.py install --prefix="%{_prefix}" --root="%{buildroot}"
-%if 0%{?suse_version} > 1010
-%fdupes %{buildroot}%{python_sitelib}
-%endif
-
-%files
-%defattr(-,root,root)
-%doc README.txt RELEASE_NOTES.txt samples
+%{python_install}
+%{python_expand %fdupes %{buildroot}%{$python_sitelib}}
+
+%files %{python_files}
+%doc README.txt RELEASE_NOTES.txt
 %{python_sitelib}/*
 
+%files -n %{name}-doc
+%doc pydocs samples
+
 %changelog


Reply via email to