%if 0%{?fedora} %global with_python3 1 %endif %define mod_name py2pack Name: python-%{mod_name} Version: 0.6.3 Release: 23%{?dist} Url: http://github.com/saschpe/py2pack Summary: Generate distribution packages from Python packages on PyPI License: GPLv2 Source: https://pypi.io/packages/source/p/%{mod_name}-%{version}.tar.gz BuildArch: noarch %description This script allows to generate RPM spec or DEB dsc files from Python modules. It allows to list Python modules or search for them on the Python Package Index (PyPI). Conveniently, it can fetch tarballs and change logs making it an universal tool to package Python modules. %if 0%{?with_python3} %package -n python3-%{mod_name} Summary: General purpose template engine BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-jinja2 BuildRequires: python3-lxml BuildRequires: python3-requests BuildRequires: python3-six BuildRequires: python3-cssselect Requires: python3-jinja2 Requires: python3-lxml Requires: python3-requests Requires: python3-six %{?python_provide:%python_provide python3-%{mod_name}} %description -n python3-%{mod_name} This script allows to generate RPM "spec" or DEB "dsc" files from Python modules. It allows to list Python modules or search for them on the Python Package Index (PyPI). Conveniently, it can fetch tarballs and change logs making it an universal tool to package Python modules. %endif %prep %setup -q -n %{mod_name}-%{version} %build %if 0%{?with_python3} %py3_build %endif %install %if 0%{?with_python3} %py3_install %endif mkdir -p %{buildroot}/%{_mandir}/man1/ mv %{buildroot}/%{_prefix}/man/man1/%{mod_name}.* %{buildroot}/%{_mandir}/man1/ rm -rf %{buildroot}/%{_docdir}/%{mod_name} %if 0%{?with_python3} %files -n python3-%{mod_name} %license LICENSE %doc AUTHORS README.rst %doc doc/%{mod_name}.html %{python3_sitelib}/%{mod_name}* %{_mandir}/man1/%{mod_name}.1.* %{_bindir}/%{mod_name} %endif %changelog * Fri Jul 22 2022 Fedora Release Engineering - 0.6.3-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.6.3-22 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.6.3-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.6.3-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.6.3-19 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.6.3-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.6.3-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.6.3-16 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.6.3-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.6.3-14 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.6.3-13 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.6.3-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.6.3-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Oct 11 2018 Zbigniew Jędrzejewski-Szmek - 0.6.3-10 - Python2 binary package has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Jul 14 2018 Fedora Release Engineering - 0.6.3-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.6.3-8 - Rebuilt for Python 3.7 * Tue Mar 13 2018 Iryna Shcherbina - 0.6.3-7 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 0.6.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.6.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.6.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.6.3-3 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 0.6.3-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Mon Jul 11 2016 Haïkel Guémar - 0.6.3-1 - Upstream 0.6.3 * Thu Feb 04 2016 Fedora Release Engineering - 0.4.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.4.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.4.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Haïkel Guémar - 0.4.4-1 - upstream 0.4.4 * Sun Aug 04 2013 Fedora Release Engineering - 0.3.17-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.3.17-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 0.3.17-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 0.3.17-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri May 20 2011 Jerome Soyer - 0.3.17-1 - Update to upstream release * Mon May 9 2011 Jerome Soyer - 0.3.15-2 - Fix inconsistent use of macros - Set properly permission for chmod and install - Totaly commented out the check section - Disable python3 build since it's not fixed upstream - Convert tab into spaces - Use macro buildroot instead of $RPM_BUILD_ROOT * Mon May 2 2011 Jerome Soyer - 0.3.15-1 - Initial build