Accepting request 1116245 from devel:languages:python
- Clean up the SPEC file OBS-URL: https://build.opensuse.org/request/show/1116245 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pefile?expand=0&rev=9
This commit is contained in:
commit
cfa3353437
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Oct 7 21:14:38 UTC 2023 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Clean up the SPEC file
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Jun 10 09:48:44 UTC 2023 - ecsos <ecsos@opensuse.org>
|
Sat Jun 10 09:48:44 UTC 2023 - ecsos <ecsos@opensuse.org>
|
||||||
|
|
||||||
|
@ -25,11 +25,11 @@ License: BSD-3-Clause
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/erocarrera/pefile
|
URL: https://github.com/erocarrera/pefile
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pefile/pefile-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pefile/pefile-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -47,14 +47,14 @@ standard use. To the best of my knowledge most of the abuse is handled
|
|||||||
gracefully.
|
gracefully.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pefile-%{version}
|
%autosetup -p1 -n pefile-%{version}
|
||||||
sed -i -e '/^#!\//, 1d' pefile.py
|
sed -i -e '/^#!\//, 1d' pefile.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
# Tests not in sdist and have good reason to at time of writing:
|
# Tests not in sdist and have good reason to at time of writing:
|
||||||
@ -66,6 +66,10 @@ sed -i -e '/^#!\//, 1d' pefile.py
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README
|
%doc README
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/*
|
%pycache_only %{python_sitelib}/__pycache__/pe*.pyc
|
||||||
|
%{python_sitelib}/ordlookup
|
||||||
|
%{python_sitelib}/pefile.py
|
||||||
|
%{python_sitelib}/peutils.py
|
||||||
|
%{python_sitelib}/pefile-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user