add pefile-tests.sh
Resolves: RHEL-69802
This commit is contained in:
parent
d08194159d
commit
b4c852be3b
@ -25,6 +25,7 @@ Some of the tasks that pefile makes possible are:\
|
|||||||
|
|
||||||
#Source0: https://github.com/erocarrera/%%{srcname}/archive/v%%{version}/%%{srcname}-%%{version}.tar.gz
|
#Source0: https://github.com/erocarrera/%%{srcname}/archive/v%%{version}/%%{srcname}-%%{version}.tar.gz
|
||||||
Source0: https://github.com/erocarrera/%{srcname}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz
|
Source0: https://github.com/erocarrera/%{srcname}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz
|
||||||
|
Source1: pefile-tests.sh
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python%{python3_pkgversion}-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
@ -53,6 +54,8 @@ sed -i -e '/^#!\//, 1d' pefile.py
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%py3_install
|
||||||
|
mkdir -p %{buildroot}%{_datadir}/%{name}
|
||||||
|
cp %{SOURCE1} %{buildroot}%{_datadir}/%{name}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%py3_check_import pefile peutils ordlookup
|
%py3_check_import pefile peutils ordlookup
|
||||||
@ -67,6 +70,7 @@ sed -i -e '/^#!\//, 1d' pefile.py
|
|||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README*
|
%doc README*
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
%{_datadir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2023.2.7-9
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2023.2.7-9
|
||||||
|
Loading…
Reference in New Issue
Block a user