From: Jakub Bogusz Date: Sat, 1 Apr 2023 18:18:39 +0000 (+0200) Subject: - python-pefile.spec updated to 2023.2.7 for python 3.6+ X-Git-Tag: auto/th/python3-pefile-2023.2.7-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=c6e77736a3ea19c54e0d25eb2853a448a63a20c5;p=packages%2Fpython3-pefile.git - python-pefile.spec updated to 2023.2.7 for python 3.6+ --- diff --git a/python-pefile.spec b/python-pefile.spec deleted file mode 100644 index d6981ac..0000000 --- a/python-pefile.spec +++ /dev/null @@ -1,109 +0,0 @@ -# -# Conditional build: -%bcond_without python2 # CPython 2.x module -%bcond_without python3 # CPython 3.x module - -Summary: Python PE parsing module -Summary(pl.UTF-8): Moduł Pythona do analizy PE -Name: python-pefile -Version: 2019.4.18 -Release: 1 -License: MIT -Group: Libraries/Python -#Source0Download: https://pypi.org/simple/pefile/ -Source0: https://files.pythonhosted.org/packages/source/p/pefile/pefile-%{version}.tar.gz -# Source0-md5: e328272bc82ddc3170316250e37027ad -URL: https://pypi.org/project/pefile/ -%if %{with python2} -BuildRequires: python-modules >= 1:2.5 -BuildRequires: python-setuptools -%endif -%if %{with python3} -BuildRequires: python3-modules >= 1:3.2 -BuildRequires: python3-setuptools -%endif -BuildRequires: rpm-pythonprov -BuildRequires: rpmbuild(macros) >= 1.714 -Requires: python-modules >= 1:2.5 -BuildArch: noarch -BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) - -%description -pefile is a multi-platform Python module to parse and work with -Portable Executable (aka PE) files. Most of the information contained -in the PE headers is accessible as well as all sections' details and -their data. - -%description -l pl.UTF-8 -pefile to wieloplatformowy moduł Pythona do analizy i pracy z plikami -Portable Executable (PE). Umożliwia dostęp do większości informacji -zawartych w nagłówkach PE, a także szczegółów oraz danych wszystkich -sekcji. - -%package -n python3-pefile -Summary: Python PE parsing module -Summary(pl.UTF-8): Moduł Pythona do analizy PE -Group: Libraries/Python -Requires: python3-modules >= 1:3.2 - -%description -n python3-pefile -pefile is a multi-platform Python module to parse and work with -Portable Executable (aka PE) files. Most of the information contained -in the PE headers is accessible as well as all sections' details and -their data. - -%description -n python3-pefile -l pl.UTF-8 -pefile to wieloplatformowy moduł Pythona do analizy i pracy z plikami -Portable Executable (PE). Umożliwia dostęp do większości informacji -zawartych w nagłówkach PE, a także szczegółów oraz danych wszystkich -sekcji. - -%prep -%setup -q -n pefile-%{version} - -%build -%if %{with python2} -%py_build -%endif - -%if %{with python3} -%py3_build -%endif - -%install -rm -rf $RPM_BUILD_ROOT - -%if %{with python2} -%py_install - -%py_postclean -%endif - -%if %{with python3} -%py3_install -%endif - -%clean -rm -rf $RPM_BUILD_ROOT - -%if %{with python2} -%files -%defattr(644,root,root,755) -%doc LICENSE README -%{py_sitescriptdir}/ordlookup -%{py_sitescriptdir}/pefile.py[co] -%{py_sitescriptdir}/peutils.py[co] -%{py_sitescriptdir}/pefile-%{version}-py*.egg-info -%endif - -%if %{with python3} -%files -n python3-pefile -%defattr(644,root,root,755) -%doc LICENSE README -%{py3_sitescriptdir}/ordlookup -%{py3_sitescriptdir}/pefile.py -%{py3_sitescriptdir}/peutils.py -%{py3_sitescriptdir}/__pycache__/pefile.cpython-*.py[co] -%{py3_sitescriptdir}/__pycache__/peutils.cpython-*.py[co] -%{py3_sitescriptdir}/pefile-%{version}-py*.egg-info -%endif diff --git a/python3-pefile.spec b/python3-pefile.spec new file mode 100644 index 0000000..8ad1b46 --- /dev/null +++ b/python3-pefile.spec @@ -0,0 +1,54 @@ +Summary: Python PE parsing module +Summary(pl.UTF-8): Moduł Pythona do analizy PE +Name: python3-pefile +Version: 2023.2.7 +Release: 1 +License: MIT +Group: Libraries/Python +#Source0Download: https://pypi.org/simple/pefile/ +Source0: https://files.pythonhosted.org/packages/source/p/pefile/pefile-%{version}.tar.gz +# Source0-md5: fa0eba7c91f4e696771ddbfacdca25e4 +URL: https://pypi.org/project/pefile/ +BuildRequires: python3-modules >= 1:3.6 +BuildRequires: python3-setuptools +BuildRequires: rpm-pythonprov +BuildRequires: rpmbuild(macros) >= 1.714 +Requires: python3-modules >= 1:3.6 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +pefile is a multi-platform Python module to parse and work with +Portable Executable (aka PE) files. Most of the information contained +in the PE headers is accessible as well as all sections' details and +their data. + +%description -l pl.UTF-8 +pefile to wieloplatformowy moduł Pythona do analizy i pracy z plikami +Portable Executable (PE). Umożliwia dostęp do większości informacji +zawartych w nagłówkach PE, a także szczegółów oraz danych wszystkich +sekcji. + +%prep +%setup -q -n pefile-%{version} + +%build +%py3_build + +%install +rm -rf $RPM_BUILD_ROOT + +%py3_install + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc LICENSE README +%{py3_sitescriptdir}/ordlookup +%{py3_sitescriptdir}/pefile.py +%{py3_sitescriptdir}/peutils.py +%{py3_sitescriptdir}/__pycache__/pefile.cpython-*.py[co] +%{py3_sitescriptdir}/__pycache__/peutils.cpython-*.py[co] +%{py3_sitescriptdir}/pefile-%{version}-py*.egg-info