2013-03-20 08:52:05 +00:00
|
|
|
#
|
2013-10-24 11:11:59 +00:00
|
|
|
# spec file for package python-pylibacl
|
2013-03-20 08:52:05 +00:00
|
|
|
#
|
- update to 0.6.0:
- Support for pathlib objects in `apply_to` and `has_extended`
functions when running with Python 3.6 and newer.
- Use of built-in C API functions for bytes/unicode/pathlib conversion
when dealing with file names, removing custom code (with the
associated benefits).
- Initialisation protocol has been changed, to disallow uninitialised
objects; this means that `__new__` will always create valid objects,
to prevent the need for checking initialisation status in all code
paths; this also (implicitly) fixes memory leaks on re-initialisation
(calling `__init__(342200246)` on an existing object) and segfaults (!) on
non-initialised object attribute access. Note ACL re-initialisation is
tricky and (still) leads to undefined behaviour of existing Entry
objects pointing to it.
- Fix another bug in ACL re-initialisation where failures would result
in invalid objects; now failed re-initialisation does not touch the
original object.
- Restore `__setstate__`/`__getstate__` support on Linux; this was
inadvertently removed due a typo(!) when adding support for it in
FreeBSD. Pickle should work again for ACL instances, although not sure
how stable this serialisation format actually is.
- Additionally, slightly change `__setstate__()` input to not allow
Unicode, since the serialisation format is an opaque binary format.
- Fix (and change) entry qualifier (which is a user/group ID) behaviour:
assume/require that uid_t/gid_t are unsigned types (they are with
glibc, MacOS and FreeBSD at least; the standard doesn't document the
signedness), and convert parsing and returning the qualifier to behave
accordingly. The breakage was most apparent on 32-bit architectures,
in which context the problem was originally reported (see issue #13).
- Added a `data` keyword argument to `ACL()`, which allows restoring an
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylibacl?expand=0&rev=17
2022-03-26 19:55:28 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2020-02-24 15:45:40 +00:00
|
|
|
# Copyright (c) 2013-2020 LISA GmbH, Bingen, Germany
|
2013-03-20 08:52:05 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# 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.
|
|
|
|
|
2019-10-14 14:15:50 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-03-20 08:52:05 +00:00
|
|
|
#
|
|
|
|
|
2013-10-24 11:11:59 +00:00
|
|
|
|
2020-01-09 14:15:10 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2013-03-20 09:00:10 +00:00
|
|
|
Name: python-pylibacl
|
- update to 0.6.0:
- Support for pathlib objects in `apply_to` and `has_extended`
functions when running with Python 3.6 and newer.
- Use of built-in C API functions for bytes/unicode/pathlib conversion
when dealing with file names, removing custom code (with the
associated benefits).
- Initialisation protocol has been changed, to disallow uninitialised
objects; this means that `__new__` will always create valid objects,
to prevent the need for checking initialisation status in all code
paths; this also (implicitly) fixes memory leaks on re-initialisation
(calling `__init__(342200246)` on an existing object) and segfaults (!) on
non-initialised object attribute access. Note ACL re-initialisation is
tricky and (still) leads to undefined behaviour of existing Entry
objects pointing to it.
- Fix another bug in ACL re-initialisation where failures would result
in invalid objects; now failed re-initialisation does not touch the
original object.
- Restore `__setstate__`/`__getstate__` support on Linux; this was
inadvertently removed due a typo(!) when adding support for it in
FreeBSD. Pickle should work again for ACL instances, although not sure
how stable this serialisation format actually is.
- Additionally, slightly change `__setstate__()` input to not allow
Unicode, since the serialisation format is an opaque binary format.
- Fix (and change) entry qualifier (which is a user/group ID) behaviour:
assume/require that uid_t/gid_t are unsigned types (they are with
glibc, MacOS and FreeBSD at least; the standard doesn't document the
signedness), and convert parsing and returning the qualifier to behave
accordingly. The breakage was most apparent on 32-bit architectures,
in which context the problem was originally reported (see issue #13).
- Added a `data` keyword argument to `ACL()`, which allows restoring an
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylibacl?expand=0&rev=17
2022-03-26 19:55:28 +00:00
|
|
|
Version: 0.6.0
|
2013-10-24 11:11:59 +00:00
|
|
|
Release: 0
|
2020-01-09 14:15:10 +00:00
|
|
|
Summary: POSIX1e ACLs for python
|
2019-10-14 14:15:50 +00:00
|
|
|
License: LGPL-2.1-or-later
|
|
|
|
URL: https://pylibacl.k1024.org/
|
2020-01-09 14:15:10 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pylibacl/pylibacl-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2013-03-20 08:52:05 +00:00
|
|
|
BuildRequires: fdupes
|
2020-01-09 14:15:10 +00:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: pkgconfig(libacl)
|
|
|
|
%python_subpackages
|
2013-03-20 08:52:05 +00:00
|
|
|
|
|
|
|
%description
|
2020-01-09 14:15:10 +00:00
|
|
|
This is a C extension module for Python which
|
|
|
|
implements POSIX ACLs manipulation. It is a wrapper on top
|
|
|
|
of the systems's acl C library - see acl(5).
|
2013-03-20 08:52:05 +00:00
|
|
|
|
|
|
|
%prep
|
2013-03-20 09:00:10 +00:00
|
|
|
%setup -q -n pylibacl-%{version}
|
2013-03-20 08:52:05 +00:00
|
|
|
|
|
|
|
%build
|
2020-01-09 14:15:10 +00:00
|
|
|
%python_build
|
2013-03-20 08:52:05 +00:00
|
|
|
|
|
|
|
%install
|
2020-01-09 14:15:10 +00:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2013-03-20 08:52:05 +00:00
|
|
|
|
|
|
|
%check
|
2020-01-09 14:15:10 +00:00
|
|
|
%pytest_arch
|
2013-03-20 08:52:05 +00:00
|
|
|
|
2020-01-09 14:15:10 +00:00
|
|
|
%files %{python_files}
|
2019-10-14 14:15:50 +00:00
|
|
|
%license COPYING
|
- update to 0.6.0:
- Support for pathlib objects in `apply_to` and `has_extended`
functions when running with Python 3.6 and newer.
- Use of built-in C API functions for bytes/unicode/pathlib conversion
when dealing with file names, removing custom code (with the
associated benefits).
- Initialisation protocol has been changed, to disallow uninitialised
objects; this means that `__new__` will always create valid objects,
to prevent the need for checking initialisation status in all code
paths; this also (implicitly) fixes memory leaks on re-initialisation
(calling `__init__(342200246)` on an existing object) and segfaults (!) on
non-initialised object attribute access. Note ACL re-initialisation is
tricky and (still) leads to undefined behaviour of existing Entry
objects pointing to it.
- Fix another bug in ACL re-initialisation where failures would result
in invalid objects; now failed re-initialisation does not touch the
original object.
- Restore `__setstate__`/`__getstate__` support on Linux; this was
inadvertently removed due a typo(!) when adding support for it in
FreeBSD. Pickle should work again for ACL instances, although not sure
how stable this serialisation format actually is.
- Additionally, slightly change `__setstate__()` input to not allow
Unicode, since the serialisation format is an opaque binary format.
- Fix (and change) entry qualifier (which is a user/group ID) behaviour:
assume/require that uid_t/gid_t are unsigned types (they are with
glibc, MacOS and FreeBSD at least; the standard doesn't document the
signedness), and convert parsing and returning the qualifier to behave
accordingly. The breakage was most apparent on 32-bit architectures,
in which context the problem was originally reported (see issue #13).
- Added a `data` keyword argument to `ACL()`, which allows restoring an
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylibacl?expand=0&rev=17
2022-03-26 19:55:28 +00:00
|
|
|
%doc NEWS README.md
|
2013-03-20 08:52:05 +00:00
|
|
|
%{python_sitearch}/*
|
|
|
|
|
|
|
|
%changelog
|