2017-09-08 18:20:27 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-libarchive-c
|
|
|
|
|
#
|
Accepting request 964310 from home:pgajdos:python
- version update to 4.0
4.0
---
BREAKING & SECURITY: The archive extraction functions now pass 3 security flags (SECURE_NODOTDOT, SECURE_NOABSOLUTEPATHS
and SECURE_SYMLINKS) to libarchive by default, unless the current directory is the root.
BREAKING: The ArchiveEntry properties atime, mtime, ctime, birthtime and size now have the value None instead of 0 when they're unset.
BREAKING: The ArchiveEntry.pathname property now attempts to decode bytes using UTF-8. This breaks reading archives that
contain file names which look like UTF-8 but aren't, if such a thing exists. Proper support of encodings will probably be added
in the next version.
Multiple entries from the same archive can now be kept in memory, however only the current entry's content can be read.
The filetype, linkpath, size, mode, redvmajor, redvminor, uid and gid attributes of an archive entry can now be modified.
The four time properties of archive entries now have setters, so for example entry.set_mtime(0, 0) can be replaced by entry.mtime = 0.
Archive entries have 4 new properties: perm, rdev, uname and gname.
When adding files to an archive, a destination path can now be specified.
The ArchiveRead class now has a bytes_read property.
The ArchiveWrite class now has a bytes_written property.
Python 3.6 is no longer tested.
The documentation has been improved.
3.2
---
This release fixes the seek callbacks passed to libarchive by the custom_reader and stream_reader function. See #116 for more details.
3.1
---
This release is mostly meant to fix #113 (a bug introduced in 3.0), but it also contains the following changes:
the ffi.archive_error() function now returns an exception instead of raising it
seekable_stream_reader is now an alias of stream_reader
the misleadingly named ffi.VOID_CB function has been removed
3.0
---
Changes to the library:
OBS-URL: https://build.opensuse.org/request/show/964310
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libarchive-c?expand=0&rev=9
2022-03-23 21:25:41 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2017-09-08 18:20:27 +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.
|
|
|
|
|
|
2018-12-04 13:38:15 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-06-18 05:56:41 +00:00
|
|
|
#
|
2017-09-08 18:20:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
|
Name: python-libarchive-c
|
Accepting request 964310 from home:pgajdos:python
- version update to 4.0
4.0
---
BREAKING & SECURITY: The archive extraction functions now pass 3 security flags (SECURE_NODOTDOT, SECURE_NOABSOLUTEPATHS
and SECURE_SYMLINKS) to libarchive by default, unless the current directory is the root.
BREAKING: The ArchiveEntry properties atime, mtime, ctime, birthtime and size now have the value None instead of 0 when they're unset.
BREAKING: The ArchiveEntry.pathname property now attempts to decode bytes using UTF-8. This breaks reading archives that
contain file names which look like UTF-8 but aren't, if such a thing exists. Proper support of encodings will probably be added
in the next version.
Multiple entries from the same archive can now be kept in memory, however only the current entry's content can be read.
The filetype, linkpath, size, mode, redvmajor, redvminor, uid and gid attributes of an archive entry can now be modified.
The four time properties of archive entries now have setters, so for example entry.set_mtime(0, 0) can be replaced by entry.mtime = 0.
Archive entries have 4 new properties: perm, rdev, uname and gname.
When adding files to an archive, a destination path can now be specified.
The ArchiveRead class now has a bytes_read property.
The ArchiveWrite class now has a bytes_written property.
Python 3.6 is no longer tested.
The documentation has been improved.
3.2
---
This release fixes the seek callbacks passed to libarchive by the custom_reader and stream_reader function. See #116 for more details.
3.1
---
This release is mostly meant to fix #113 (a bug introduced in 3.0), but it also contains the following changes:
the ffi.archive_error() function now returns an exception instead of raising it
seekable_stream_reader is now an alias of stream_reader
the misleadingly named ffi.VOID_CB function has been removed
3.0
---
Changes to the library:
OBS-URL: https://build.opensuse.org/request/show/964310
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libarchive-c?expand=0&rev=9
2022-03-23 21:25:41 +00:00
|
|
|
Version: 4.0
|
2017-09-08 18:20:27 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Python interface to libarchive
|
2018-06-18 05:56:41 +00:00
|
|
|
License: CC0-1.0
|
2017-09-08 18:20:27 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-06-18 05:56:41 +00:00
|
|
|
URL: https://github.com/Changaco/python-libarchive-c
|
2017-09-08 18:20:27 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/l/libarchive-c/libarchive-c-%{version}.tar.gz
|
Accepting request 964310 from home:pgajdos:python
- version update to 4.0
4.0
---
BREAKING & SECURITY: The archive extraction functions now pass 3 security flags (SECURE_NODOTDOT, SECURE_NOABSOLUTEPATHS
and SECURE_SYMLINKS) to libarchive by default, unless the current directory is the root.
BREAKING: The ArchiveEntry properties atime, mtime, ctime, birthtime and size now have the value None instead of 0 when they're unset.
BREAKING: The ArchiveEntry.pathname property now attempts to decode bytes using UTF-8. This breaks reading archives that
contain file names which look like UTF-8 but aren't, if such a thing exists. Proper support of encodings will probably be added
in the next version.
Multiple entries from the same archive can now be kept in memory, however only the current entry's content can be read.
The filetype, linkpath, size, mode, redvmajor, redvminor, uid and gid attributes of an archive entry can now be modified.
The four time properties of archive entries now have setters, so for example entry.set_mtime(0, 0) can be replaced by entry.mtime = 0.
Archive entries have 4 new properties: perm, rdev, uname and gname.
When adding files to an archive, a destination path can now be specified.
The ArchiveRead class now has a bytes_read property.
The ArchiveWrite class now has a bytes_written property.
Python 3.6 is no longer tested.
The documentation has been improved.
3.2
---
This release fixes the seek callbacks passed to libarchive by the custom_reader and stream_reader function. See #116 for more details.
3.1
---
This release is mostly meant to fix #113 (a bug introduced in 3.0), but it also contains the following changes:
the ffi.archive_error() function now returns an exception instead of raising it
seekable_stream_reader is now an alias of stream_reader
the misleadingly named ffi.VOID_CB function has been removed
3.0
---
Changes to the library:
OBS-URL: https://build.opensuse.org/request/show/964310
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libarchive-c?expand=0&rev=9
2022-03-23 21:25:41 +00:00
|
|
|
# https://github.com/Changaco/python-libarchive-c/commit/13b904e2b046db25a42cd63557d259b3d3998323
|
|
|
|
|
Patch0: python-libarchive-c-no-mock.patch
|
2017-09-08 18:20:27 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-06-18 05:56:41 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
Requires: libarchive-devel
|
|
|
|
|
BuildArch: noarch
|
2020-04-15 13:01:50 +00:00
|
|
|
# SECTION test requirements
|
2017-09-08 18:20:27 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
|
BuildRequires: libarchive-devel
|
2020-04-15 13:01:50 +00:00
|
|
|
# /SECTION
|
2017-09-08 18:20:27 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A Python interface to libarchive. It uses the standard ctypes_ module to
|
|
|
|
|
dynamically load and access the C library.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n libarchive-c-%{version}
|
Accepting request 964310 from home:pgajdos:python
- version update to 4.0
4.0
---
BREAKING & SECURITY: The archive extraction functions now pass 3 security flags (SECURE_NODOTDOT, SECURE_NOABSOLUTEPATHS
and SECURE_SYMLINKS) to libarchive by default, unless the current directory is the root.
BREAKING: The ArchiveEntry properties atime, mtime, ctime, birthtime and size now have the value None instead of 0 when they're unset.
BREAKING: The ArchiveEntry.pathname property now attempts to decode bytes using UTF-8. This breaks reading archives that
contain file names which look like UTF-8 but aren't, if such a thing exists. Proper support of encodings will probably be added
in the next version.
Multiple entries from the same archive can now be kept in memory, however only the current entry's content can be read.
The filetype, linkpath, size, mode, redvmajor, redvminor, uid and gid attributes of an archive entry can now be modified.
The four time properties of archive entries now have setters, so for example entry.set_mtime(0, 0) can be replaced by entry.mtime = 0.
Archive entries have 4 new properties: perm, rdev, uname and gname.
When adding files to an archive, a destination path can now be specified.
The ArchiveRead class now has a bytes_read property.
The ArchiveWrite class now has a bytes_written property.
Python 3.6 is no longer tested.
The documentation has been improved.
3.2
---
This release fixes the seek callbacks passed to libarchive by the custom_reader and stream_reader function. See #116 for more details.
3.1
---
This release is mostly meant to fix #113 (a bug introduced in 3.0), but it also contains the following changes:
the ffi.archive_error() function now returns an exception instead of raising it
seekable_stream_reader is now an alias of stream_reader
the misleadingly named ffi.VOID_CB function has been removed
3.0
---
Changes to the library:
OBS-URL: https://build.opensuse.org/request/show/964310
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libarchive-c?expand=0&rev=9
2022-03-23 21:25:41 +00:00
|
|
|
%patch0 -p1
|
2017-09-08 18:20:27 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
2020-04-15 13:01:50 +00:00
|
|
|
export LANG="en_US.UTF-8"
|
|
|
|
|
%pytest
|
2017-09-08 18:20:27 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.rst
|
2018-06-18 05:56:41 +00:00
|
|
|
%license LICENSE.md
|
2017-09-08 18:20:27 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|