Hello community, here is the log from the commit of package python-nautilus for openSUSE:Factory checked in at 2018-04-04 11:08:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-nautilus (Old) and /work/SRC/openSUSE:Factory/.python-nautilus.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-nautilus" Wed Apr 4 11:08:02 2018 rev:22 rq:593233 version:1.2.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-nautilus/python-nautilus.changes 2012-05-16 15:03:57.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-nautilus.new/python-nautilus.changes 2018-04-04 11:08:13.793926461 +0200 @@ -1,0 +2,27 @@ +Mon Jan 8 01:25:43 UTC 2018 - luc1...@linuxmail.org + +- Update to version 1.2.1: + + Fix syntax error when building docs using python3 (bgo#792348). +- Changes from version 1.2: + + Added capability to compile with python 3 support using PYTHON + environment variable. + + Improve extension path loading semantics to follow XDG + recommendations (bgo#781232). + + Require Nautilus 3.0 before importing extensions to prevent + warnings (bgo#791208). +- Turn the package into singlespec. +- Update URL tag to https://wiki.gnome.org/Projects/NautilusPython: + currently the Nautilus Python project's web page. +- Drop: + + libtool BuildRequires and autoreconf call: the last is no + longer needed and the former is automatically being pulled. + + Standard BuilRoot setting tag: RPM already handles this itself. +- Pass --docdir=%{_docdir}/%{name} to configure for the use of the + right documentation's directory. +- Unconditionalize gtk-doc BuildRequires as the documentation is + building without further problems again. +- Remove unneeded %clean section once RPM does this work itself + nowadays. +- Correct out of order sentence in package descriptions. + +------------------------------------------------------------------- Old: ---- nautilus-python-1.1.tar.bz2 New: ---- nautilus-python-1.2.1.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-nautilus.spec ++++++ --- /var/tmp/diff_new_pack.S9UmWl/_old 2018-04-04 11:08:15.333870654 +0200 +++ /var/tmp/diff_new_pack.S9UmWl/_new 2018-04-04 11:08:15.333870654 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-nautilus # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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,83 +16,111 @@ # -# -%define build_doc 0 - -Name: python-nautilus +%define oldpython python +%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define _name nautilus-python -Version: 1.1 +Name: python-nautilus +Version: 1.2.1 Release: 0 Summary: Python bindings for Nautilus -License: GPL-2.0+ +License: GPL-2.0-or-later Group: Development/Libraries/Python -Url: http://git.gnome.org/cgit/nautilus-python/ -Source: http://download.gnome.org/sources/nautilus-python/1.1/%{_name}-%{version}.tar.bz2 -%if %{build_doc} +URL: https://wiki.gnome.org/Projects/NautilusPython +Source: http://download.gnome.org/sources/nautilus-python/1.2/%{_name}-%{version}.tar.xz +BuildRequires: %{python_module devel} BuildRequires: gtk-doc -%endif -BuildRequires: libtool -BuildRequires: python-devel +BuildRequires: pkgconfig +BuildRequires: python-rpm-macros BuildRequires: pkgconfig(libnautilus-extension) BuildRequires: pkgconfig(pygobject-3.0) +Requires: %{name}-common-files = %{version} Requires: python-gobject # we can't have automatic typelib() Requires here: it's C code: PyImport_ImportModule("gi.repository.Nautilus") Requires: typelib(Nautilus) -BuildRoot: %{_tmppath}/%{name}-%{version}-build +%ifpython2 +Obsoletes: %{oldpython}-nautilus < 1.2.1 +Provides: %{oldpython}-nautilus = %{version} +%endif +%python_subpackages %description This package contains bindings to write Nautilus extensions with Python. It allows writing menu, property pages and column providers extensions, so that Nautilus functionality can be easily extended. -%package devel -Summary: Python bindings for Nautilus - Development Files +%package -n %{name}-common-files +Summary: Python nautilus files shared between python interpreter versions Group: Development/Libraries/Python Requires: %{name} = %{version} +Provides: %{python_module nautilus-common-files = %{version}} + +%description -n %{name}-common-files +This package contains common files required to build wrappers for +python-nautilus in both Python2 and Python3. + +%package devel +Summary: Metapackage to pull in all of python-nautilus' packages +Group: Development/Libraries/Python +Requires: %{name} >= %{version} +Requires: %{name}-common-devel = %{version} +Requires: python-devel %description devel -Development files needed for writing Nautilus Python extensions -This package contains bindings to write Nautilus extensions with Python. -It allows writing menu, property pages and column providers extensions, -so that Nautilus functionality can be easily extended. +This package contains files required to build wrappers for python-nautilus. + +%package -n %{name}-common-devel +Summary: Shared development files for python-nautilus +Group: Development/Libraries/Python +Requires: %{name}-devel = %{version} +Provides: %{python_module nautilus-common-devel = %{version}} + +%description -n %{name}-common-devel +This package contains common files required to build wrappers for +python-nautilus in both Python2 and Python3. %prep %setup -q -n %{_name}-%{version} %build -autoreconf -fi -I m4 -%configure --disable-static \ -%if %{build_doc} +%define _configure ../configure +%{python_expand mkdir build_%{$python_bin_suffix} +pushd build_%{$python_bin_suffix} +export PYTHON=$python +%configure \ + --disable-static \ + --docdir=%{_docdir}/$python-nautilus \ --enable-gtk-doc -%else - --disable-gtk-doc -%endif -make %{?jobs:-j%jobs} +make %{?_smp_mflags} +popd +} %install -%makeinstall +%{python_expand pushd build_%{$python_bin_suffix} +%make_install +popd +} # New dir where python extensions get installed. It's not created by make # install (bgo#638890). test ! -d %{buildroot}%{_datadir}/nautilus-python/extensions mkdir -p %{buildroot}%{_datadir}/nautilus-python/extensions find %{buildroot} -type f -name "*.la" -delete -print +find %{buildroot} -size 0 -delete -%clean -rm -rf %{buildroot} +%files %{python_files} +%license COPYING +%doc NEWS +%doc %{_docdir}/%{python_flavor}-nautilus -%files -%defattr(-,root,root) -%doc AUTHORS ChangeLog COPYING NEWS README +%files -n %{name}-common-files %{_libdir}/nautilus/extensions-3.0/libnautilus-python.so %dir %{_datadir}/nautilus-python %dir %{_datadir}/nautilus-python/extensions -%files devel -%defattr(-,root,root) -%{_datadir}/doc/nautilus-python/ -%if %{build_doc} -%{_datadir}/gtk-doc/html/nautilus-python/ -%endif +%files %{python_files devel} +%doc AUTHORS ChangeLog + +%files -n %{name}-common-devel +%doc %{_datadir}/gtk-doc/html/nautilus-python %{_libdir}/pkgconfig/nautilus-python.pc %changelog