Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:16.0:FactoryCandidates
python-libarchive
python-libarchive.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-libarchive.spec of Package python-libarchive
# # spec file for package python-libarchive # # Copyright (c) 2024 SUSE LLC # # 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. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define oldpython python Name: python-libarchive Version: 0.4.7 Release: 0 Summary: Python adapter for universal, libarchive-based archive access License: GPL-2.0-only URL: https://github.com/dsoprea/PyEasyArchive Source: https://files.pythonhosted.org/packages/source/l/libarchive/libarchive-%{version}.tar.gz # PATCH-FEATURE-UPSTREAM denose_tests.patch gh#dsoprea/PyEasyArchive#44 mcepl@suse.com # Removes the need for nose test requirement Patch0: denose_tests.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: libarchive-devel BuildRequires: python-rpm-macros Requires: libarchive-devel Conflicts: python-libarchive-c BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module pytest} # /SECTION %ifpython2 Conflicts: %{oldpython}-libarchive-c %endif %python_subpackages %description A ctypes-based adapter to libarchive. 7-Zip is supported for both reading and writing. %prep %autosetup -p1 -n libarchive-%{version} # do not distribute any test file sed -i "s/'tests'/'tests','tests.adapters','tests.types'/" setup.py # test_read_symlinks expects README.rst to be symlink ln -sf libarchive/resources/README.rst README.rst %build %python_build %check export LANG=en_US.UTF8 %pytest %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %doc README.rst %license LICENSE %{python_sitelib}/libarchive %{python_sitelib}/libarchive-%{version}*-info %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor