Mageia Bugzilla – Attachment 14386 Details for
Bug 32857
upgrade/update rdiff-backup to 2.2.6 and switch to pyproject
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
python-pyxattr spec patch
python-pyxattr.spec.patch (text/plain), 2.20 KB, created by
Aurelian R
on 2024-02-16 18:22:39 CET
(
hide
)
Description:
python-pyxattr spec patch
Filename:
MIME Type:
Creator:
Aurelian R
Created:
2024-02-16 18:22:39 CET
Size:
2.20 KB
patch
obsolete
>--- python-pyxattr/python-pyxattr.spec 2024-02-09 17:07:17.160122324 +0200 >+++ SPECS/python-pyxattr.spec 2024-02-16 16:25:44.371209675 +0200 >@@ -1,26 +1,33 @@ >-# Created by pyp2rpm-3.3.3 > %global pypi_name pyxattr > >+%bcond_with docs >+%bcond_without tests >+ > Name: python-%{pypi_name} >-Version: 0.7.2 >-Release: %mkrel 4 >+Version: 0.8.1 >+Release: %mkrel 0.1 > Summary: Filesystem extended attributes for python > Group: Development/Python > License: LGPL > URL: https://pypi.org/project/pyxattr > Source0: %{pypi_source} > >-BuildRequires: python3-devel >+BuildRequires: pkgconfig(libattr) >+BuildRequires: pkgconfig(python3) > BuildRequires: python3dist(setuptools) >+%if %{with docs} >+BuildRequires: python3dist(recommonmark) > BuildRequires: python3dist(sphinx) >-BuildRequires: python3dist(pytest) >+%endif >+%{?with_tests:BuildRequires: python3dist(pytest) } > > %description > This is a C extension module for Python which implements extended attributes > manipulation. It is a wrapper on top of the attr C library - see attr(5). > >-%package -n python3-%{pypi_name} >-Summary: Filesystem extended attributes for python3 >+%package -n python3-%{pypi_name} >+Summary: Filesystem extended attributes for python3 >+Group: Development/Python > %{?python_provide:%python_provide python3-%{pypi_name}} > > %description -n python3-%{pypi_name} >@@ -33,26 +40,25 @@ manipulation. It is a wrapper on top of > # Remove bundled egg-info > rm -rf %{pypi_name}.egg-info > >-%build >-%py3_build >+%generate_buildrequires >+%pyproject_buildrequires > >-%if 0 >-# generate html docs >-PYTHONPATH=${PWD} sphinx-build-3 doc html >-# remove the sphinx-build leftovers >+%build >+%pyproject_wheel >+%if %{with docs} >+sphinx-build-3 doc html > rm -rf html/.{doctrees,buildinfo} > %endif > > %install >-%py3_install >+%pyproject_install > > %check >-%{__python3} setup.py test >+%{?with_tests:%pytest tests} > > %files -n python3-%{pypi_name} >-%doc README.md >-%if 0 >-%doc html >-%endif >+%license COPYING >+%doc README.md NEWS.md >+%{?with_docs:%doc html} > %{python3_sitearch}/xattr*.so >-%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info >+%{python3_sitearch}/%{pypi_name}-%{version}*-info
--- python-pyxattr/python-pyxattr.spec 2024-02-09 17:07:17.160122324 +0200 +++ SPECS/python-pyxattr.spec 2024-02-16 16:25:44.371209675 +0200 @@ -1,26 +1,33 @@ -# Created by pyp2rpm-3.3.3 %global pypi_name pyxattr +%bcond_with docs +%bcond_without tests + Name: python-%{pypi_name} -Version: 0.7.2 -Release: %mkrel 4 +Version: 0.8.1 +Release: %mkrel 0.1 Summary: Filesystem extended attributes for python Group: Development/Python License: LGPL URL: https://pypi.org/project/pyxattr Source0: %{pypi_source} -BuildRequires: python3-devel +BuildRequires: pkgconfig(libattr) +BuildRequires: pkgconfig(python3) BuildRequires: python3dist(setuptools) +%if %{with docs} +BuildRequires: python3dist(recommonmark) BuildRequires: python3dist(sphinx) -BuildRequires: python3dist(pytest) +%endif +%{?with_tests:BuildRequires: python3dist(pytest) } %description This is a C extension module for Python which implements extended attributes manipulation. It is a wrapper on top of the attr C library - see attr(5). -%package -n python3-%{pypi_name} -Summary: Filesystem extended attributes for python3 +%package -n python3-%{pypi_name} +Summary: Filesystem extended attributes for python3 +Group: Development/Python %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} @@ -33,26 +40,25 @@ manipulation. It is a wrapper on top of # Remove bundled egg-info rm -rf %{pypi_name}.egg-info -%build -%py3_build +%generate_buildrequires +%pyproject_buildrequires -%if 0 -# generate html docs -PYTHONPATH=${PWD} sphinx-build-3 doc html -# remove the sphinx-build leftovers +%build +%pyproject_wheel +%if %{with docs} +sphinx-build-3 doc html rm -rf html/.{doctrees,buildinfo} %endif %install -%py3_install +%pyproject_install %check -%{__python3} setup.py test +%{?with_tests:%pytest tests} %files -n python3-%{pypi_name} -%doc README.md -%if 0 -%doc html -%endif +%license COPYING +%doc README.md NEWS.md +%{?with_docs:%doc html} %{python3_sitearch}/xattr*.so -%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info +%{python3_sitearch}/%{pypi_name}-%{version}*-info
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 32857
:
14385
| 14386