Hello community, here is the log from the commit of package python-xattr for openSUSE:Factory checked in at 2017-08-30 16:24:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-xattr (Old) and /work/SRC/openSUSE:Factory/.python-xattr.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-xattr" Wed Aug 30 16:24:37 2017 rev:15 rq:519616 version:0.9.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-xattr/python-xattr.changes 2017-06-07 09:56:29.217665429 +0200 +++ /work/SRC/openSUSE:Factory/.python-xattr.new/python-xattr.changes 2017-08-30 16:24:38.717318416 +0200 @@ -1,0 +2,20 @@ +Wed Aug 30 06:04:05 UTC 2017 - tbecht...@suse.com + +- update to 0.9.2: + * Fix BSD issue w/ lsattr and long attrs + https://github.com/xattr/xattr/pull/57 + * Remove unreachable code + https://github.com/xattr/xattr/pull/56 + * Allow (Python 2) long for fd + https://github.com/xattr/xattr/pull/51 + * Fix Python 3 bytes handling in xattr.tool + https://github.com/xattr/xattr/pull/50 + * Use cffi 1.X features to build native module for faster import + https://github.com/xattr/xattr/pull/47 + * NOTE: Version 0.9.0 is the same, was momentarily uploaded with + incomplete CHANGES.txt +- use pypi for Source url +- convert to singlespec +- require the cffi version it was built against + +------------------------------------------------------------------- Old: ---- v0.8.0.tar.gz New: ---- xattr-0.9.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-xattr.spec ++++++ --- /var/tmp/diff_new_pack.b07Hm9/_old 2017-08-30 16:24:39.473212085 +0200 +++ /var/tmp/diff_new_pack.b07Hm9/_new 2017-08-30 16:24:39.473212085 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-xattr # -# Copyright (c) 2016 SUSE LINUX 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,30 +16,30 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-xattr -Version: 0.8.0 +Version: 0.9.2 Release: 0 Summary: Python wrapper for extended filesystem attributes License: MIT Group: Development/Languages/Python Url: http://github.com/xattr/xattr -Source: https://github.com/xattr/xattr/archive/v%{version}.tar.gz -BuildRequires: python-cffi -BuildRequires: python-devel -BuildRequires: python-setuptools -%if 0%{?suse_version} && 0%{?suse_version} <= 1310 -BuildRequires: update-alternatives -%endif -Requires: python-cffi +Source: https://files.pythonhosted.org/packages/source/x/xattr/xattr-%{version}.tar.gz +BuildRequires: %{python_module cffi} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros +%requires_eq python-cffi Requires(post): update-alternatives Requires(postun): update-alternatives BuildRoot: %{_tmppath}/%{name}-%{version}-build +%ifpython2 Provides: pyxattr = %{version} Obsoletes: pyxattr < %{version} -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %endif +%python_subpackages + %description Extended attributes extend the basic attributes of files and directories in the file system. They are stored as name:data pairs associated with @@ -53,34 +53,24 @@ sed -i "/#\!\/usr\/bin\/env python/d" xattr/tool.py # Fix executable-bit rpmlint warning %build -python setup.py build +export CFLAGS="%{optflags}" +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} -mv %{buildroot}%{_bindir}/xattr %{buildroot}%{_bindir}/xattr-%{py_ver} - -%if 0%{?suse_version} && 0%{?suse_version} > 1310 -mkdir -p %{buildroot}%{_sysconfdir}/alternatives -ln -s -f %{_sysconfdir}/alternatives/xattr %{buildroot}%{_bindir}/xattr -%endif +%python_install +%python_clone -a %{buildroot}%{_bindir}/xattr %post -%{_sbindir}/update-alternatives \ - --install %_bindir/xattr xattr %_bindir/xattr-%{py_ver} 10 +%python_install_alternative xattr -%preun -%{_sbindir}/update-alternatives \ - --remove xattr %_bindir/xattr +%postun +%python_uninstall_alternative xattr -%files +%files %{python_files} %defattr(-,root,root) -%doc README.txt -%{_bindir}/xattr-%{py_ver} -%{python_sitelib}/xattr -%{python_sitelib}/xattr-*egg-info -%if 0%{?suse_version} && 0%{?suse_version} > 1310 -%{_bindir}/xattr -%ghost %_sysconfdir/alternatives/xattr -%endif +%doc README.rst LICENSE.txt +%python_alternative %{_bindir}/xattr +%{python_sitearch}/xattr +%{python_sitearch}/xattr-*egg-info %changelog