Mageia Bugzilla – Attachment 14469 Details for
Bug 32973
python3-xdg conflicting files with python3-pyxdg
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
patch to change pyproject name to xdg-base-dirs
python-xdg.spec.patch (text/plain), 2.08 KB, created by
Aurelian R
on 2024-03-16 21:14:18 CET
(
hide
)
Description:
patch to change pyproject name to xdg-base-dirs
Filename:
MIME Type:
Creator:
Aurelian R
Created:
2024-03-16 21:14:18 CET
Size:
2.08 KB
patch
obsolete
>--- python-xdg.spec 2024-03-16 21:18:29.524382715 +0200 >+++ python-xdg.spec 2024-03-16 22:03:36.330756636 +0200 >@@ -1,18 +1,26 @@ > # Created by pyp2rpm-3.3.1 >-%global pypi_name xdg >+%global pypi_name xdg-base-dirs >+%global pkg_name xdg > >-Name: python-%{pypi_name} >-Version: 6.0.0 >+%bcond_without tests >+ >+Name: python-%{pkg_name} >+Version: 6.0.1 > Release: %mkrel 1 > Summary: Variables defined by the XDG Base Directory Specification > Group: Development/Python > License: ISC >-URL: https://github.com/srstevenson/xdg >+URL: https://github.com/srstevenson/xdg-base-dirs > Source0: https://pypi.io/packages/source/x/%{pypi_name}/%{pypi_name}-%{version}.tar.gz > BuildArch: noarch > > BuildRequires: pkgconfig(python3) > BuildRequires: python3-devel >+%if %{with_tests} >+BuildRequires: python3-pytest >+BuildRequires: python3-pytest-cov >+BuildRequires: python3-codecov >+%endif > > %description > xdg is a tiny Python module which provides the variables defined by the XDG >@@ -20,11 +28,11 @@ Base Directory Specification_, to save y > logic in every Python utility you write that deals with user cache, > configuration, or data files. It has no external dependencies. > >-%package -n python3-%{pypi_name} >+%package -n python3-%{pkg_name} > Summary: %{summary} > %{?python_provide:%python_provide python3-%{pypi_name}} > >-%description -n python3-%{pypi_name} >+%description -n python3-%{pkg_name} > xdg is a tiny Python module which provides the variables defined by the XDG > Base Directory Specification_, to save you from duplicating the same snippet of > logic in every Python utility you write that deals with user cache, >@@ -42,8 +50,11 @@ configuration, or data files. It has no > > %install > %pyproject_install >-%pyproject_save_files xdg >-rm -f %{buildroot}%{python3_sitelib}/LICENCE >+%pyproject_save_files xdg_base_dirs >+ >+%check >+%pyproject_check_import >+%{?with_tests:%pytest} > >-%files -n python3-%{pypi_name} -f %{pyproject_files} >-%doc README.md LICENCE >+%files -n python3-%{pkg_name} -f %{pyproject_files} >+%doc README.md
--- python-xdg.spec 2024-03-16 21:18:29.524382715 +0200 +++ python-xdg.spec 2024-03-16 22:03:36.330756636 +0200 @@ -1,18 +1,26 @@ # Created by pyp2rpm-3.3.1 -%global pypi_name xdg +%global pypi_name xdg-base-dirs +%global pkg_name xdg -Name: python-%{pypi_name} -Version: 6.0.0 +%bcond_without tests + +Name: python-%{pkg_name} +Version: 6.0.1 Release: %mkrel 1 Summary: Variables defined by the XDG Base Directory Specification Group: Development/Python License: ISC -URL: https://github.com/srstevenson/xdg +URL: https://github.com/srstevenson/xdg-base-dirs Source0: https://pypi.io/packages/source/x/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: pkgconfig(python3) BuildRequires: python3-devel +%if %{with_tests} +BuildRequires: python3-pytest +BuildRequires: python3-pytest-cov +BuildRequires: python3-codecov +%endif %description xdg is a tiny Python module which provides the variables defined by the XDG @@ -20,11 +28,11 @@ Base Directory Specification_, to save y logic in every Python utility you write that deals with user cache, configuration, or data files. It has no external dependencies. -%package -n python3-%{pypi_name} +%package -n python3-%{pkg_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} -%description -n python3-%{pypi_name} +%description -n python3-%{pkg_name} xdg is a tiny Python module which provides the variables defined by the XDG Base Directory Specification_, to save you from duplicating the same snippet of logic in every Python utility you write that deals with user cache, @@ -42,8 +50,11 @@ configuration, or data files. It has no %install %pyproject_install -%pyproject_save_files xdg -rm -f %{buildroot}%{python3_sitelib}/LICENCE +%pyproject_save_files xdg_base_dirs + +%check +%pyproject_check_import +%{?with_tests:%pytest} -%files -n python3-%{pypi_name} -f %{pyproject_files} -%doc README.md LICENCE +%files -n python3-%{pkg_name} -f %{pyproject_files} +%doc README.md
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 32973
: 14469