From 8f501096ab21536dc2bce6c45b9ced8c3ac5eac013ef0f4cebc3e846006ce1d9 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 14 Oct 2019 14:15:50 +0000 Subject: [PATCH] - Replace %fdupes -s with plain %fdupes; hardlinks are better. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylibacl?expand=0&rev=9 --- python-pylibacl.changes | 5 +++++ python-pylibacl.spec | 28 ++++++++++++---------------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/python-pylibacl.changes b/python-pylibacl.changes index 4d417d2..14311a6 100644 --- a/python-pylibacl.changes +++ b/python-pylibacl.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Oct 14 14:15:19 UTC 2019 - Matej Cepl + +- Replace %fdupes -s with plain %fdupes; hardlinks are better. + ------------------------------------------------------------------- Sun Oct 18 16:07:28 UTC 2015 - ecsos@opensuse.org diff --git a/python-pylibacl.spec b/python-pylibacl.spec index 11c1c4c..e6b3bf9 100644 --- a/python-pylibacl.spec +++ b/python-pylibacl.spec @@ -1,7 +1,7 @@ # # spec file for package python-pylibacl # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -12,28 +12,26 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # +%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 Name: python-pylibacl Version: 0.5.3 Release: 0 Summary: Python POSIX.1e ACL module -License: LGPL-2.1+ -Group: Development/Libraries/Python -Url: http://pylibacl.k1024.org/ +License: LGPL-2.1-or-later +URL: https://pylibacl.k1024.org/ Source: https://github.com/iustin/pylibacl/releases/download/pylibacl-v%{version}/pylibacl-%{version}.tar.gz BuildRequires: fdupes BuildRequires: libacl-devel -BuildRequires: python-devel -BuildRequires: python-setuptools # Documentation requirements: BuildRequires: python-Sphinx -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%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 +BuildRequires: python-devel +BuildRequires: python-setuptools %description This Python 2.4+ extension module allows you to manipulate the POSIX.1e Access @@ -42,7 +40,6 @@ top of the systems's acl C library - see acl(5). %package doc Summary: Python POSIX.1e ACL module -Group: Development/Libraries/Python Requires: %{name} = %{version} %description doc @@ -59,18 +56,17 @@ python setup.py build_sphinx %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} -%fdupes -s %{buildroot}/%{_prefix} +%fdupes %{buildroot}/%{_prefix} %check python setup.py test %files -%defattr(-,root,root) -%doc COPYING NEWS README +%license COPYING +%doc NEWS README %{python_sitearch}/* %files doc -%defattr(-,root,root) %doc build/sphinx/html %changelog