forked from pool/python-pyfakefs
- Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyfakefs?expand=0&rev=54
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 11 05:49:28 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to pyproject macros.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Apr 28 16:33:01 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
Mon Apr 28 16:33:01 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -32,7 +32,9 @@ Summary: Fake file system that mocks the Python file system modules
|
|||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/jmcgeheeiv/pyfakefs
|
URL: https://github.com/jmcgeheeiv/pyfakefs
|
||||||
Source: https://github.com/jmcgeheeiv/pyfakefs/archive/v%{version}.tar.gz#/python-pyfakefs-%{version}.tar.gz
|
Source: https://github.com/jmcgeheeiv/pyfakefs/archive/v%{version}.tar.gz#/python-pyfakefs-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python
|
Requires: python
|
||||||
@@ -53,11 +55,11 @@ no modification to work with pyfakefs.
|
|||||||
%setup -q -n pyfakefs-%{version}
|
%setup -q -n pyfakefs-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if !%{with test}
|
%if !%{with test}
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand rm -r %{buildroot}%{$python_sitelib}/pyfakefs/tests/
|
%python_expand rm -r %{buildroot}%{$python_sitelib}/pyfakefs/tests/
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
%endif
|
%endif
|
||||||
@@ -73,7 +75,7 @@ export LANG=C.UTF-8
|
|||||||
%doc CHANGES.md README.md
|
%doc CHANGES.md README.md
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%{python_sitelib}/pyfakefs
|
%{python_sitelib}/pyfakefs
|
||||||
%{python_sitelib}/pyfakefs-%{version}*-info
|
%{python_sitelib}/pyfakefs-%{version}.dist-info
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user