---- pyp2rpm-3.3.0/pyp2rpm/settings.py~ 2017-12-14 17:50:37.000000000 +0200
-+++ pyp2rpm-3.3.0/pyp2rpm/settings.py 2018-02-04 14:50:17.285186784 +0200
+diff -urNp -x '*.orig' pyp2rpm-3.3.2.org/pyp2rpm/settings.py pyp2rpm-3.3.2/pyp2rpm/settings.py
+--- pyp2rpm-3.3.2.org/pyp2rpm/settings.py 2018-03-21 14:54:40.000000000 +0100
++++ pyp2rpm-3.3.2/pyp2rpm/settings.py 2021-03-06 21:01:41.556267070 +0100
@@ -1,6 +1,6 @@
from pyp2rpm import utils
-DEFAULT_TEMPLATE = 'fedora'
+DEFAULT_TEMPLATE = 'pld'
DEFAULT_PYTHON_VERSIONS = {
- 'fedora': ['3', '2'],
+ 'fedora': ['3'],
'epel7': ['2', '3'],
-@@ -11,7 +11,7 @@
+@@ -11,7 +11,7 @@ DEFAULT_PYTHON_VERSIONS = {
DEFAULT_PYTHON_VERSION = DEFAULT_PYTHON_VERSIONS[DEFAULT_TEMPLATE][0]
DEFAULT_PKG_SOURCE = 'pypi'
DEFAULT_METADATA_SOURCE = 'pypi'
---- pyp2rpm-3.3.0/pyp2rpm/utils.py~ 2017-12-14 17:50:37.000000000 +0200
-+++ pyp2rpm-3.3.0/pyp2rpm/utils.py 2018-02-04 14:47:29.799743953 +0200
-@@ -163,7 +163,6 @@
+diff -urNp -x '*.orig' pyp2rpm-3.3.2.org/pyp2rpm/utils.py pyp2rpm-3.3.2/pyp2rpm/utils.py
+--- pyp2rpm-3.3.2.org/pyp2rpm/utils.py 2018-03-21 14:54:40.000000000 +0100
++++ pyp2rpm-3.3.2/pyp2rpm/utils.py 2021-03-06 21:01:41.346267537 +0100
+@@ -163,7 +163,6 @@ def get_default_save_path():
else:
save_path = rpm_eval(macro)
if not save_path:
---- pyp2rpm-3.3.0/pyp2rpm/package_data.py~ 2018-02-04 14:48:00.000000000 +0200
-+++ pyp2rpm-3.3.0/pyp2rpm/package_data.py 2018-02-04 14:49:12.598463752 +0200
-@@ -2,6 +2,7 @@
+diff -urNp -x '*.orig' pyp2rpm-3.3.2.org/pyp2rpm/package_data.py pyp2rpm-3.3.2/pyp2rpm/package_data.py
+--- pyp2rpm-3.3.2.org/pyp2rpm/package_data.py 2018-03-21 14:54:40.000000000 +0100
++++ pyp2rpm-3.3.2/pyp2rpm/package_data.py 2021-03-06 21:01:41.449600641 +0100
+@@ -2,6 +2,7 @@ import subprocess
import time
import locale
import logging
from pyp2rpm import version
from pyp2rpm import utils
-@@ -90,15 +90,9 @@
+@@ -89,15 +90,9 @@ class PackageData(object):
def get_changelog_date_packager(self):
"""Returns part of the changelog entry, containing date and packager.
"""
URL: https://github.com/fedora-python/pyp2rpm
BuildRequires: python3-flexmock >= 0.9.3
BuildRequires: python3-setuptools
+BuildRequires: python3-wheel
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
%if %{with tests}
%patch2 -p1
%build
-%py_build
+%py3_build
%if %{with tests}
PYTHONPATH=$(pwd) py.test-3
%install
rm -rf $RPM_BUILD_ROOT
-%py_install
-%py_postclean
+%py3_install
%clean
rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc README.md LICENSE
%attr(755,root,root) %{_bindir}/pyp2rpm
-%dir %{py_sitescriptdir}/%{name}
-%{py_sitescriptdir}/%{name}/*.py[co]
-%{py_sitescriptdir}/%{name}/command
-%dir %{py_sitescriptdir}/%{name}/templates
-%{py_sitescriptdir}/%{name}/templates/epel6.spec
-%{py_sitescriptdir}/%{name}/templates/epel7.spec
-%{py_sitescriptdir}/%{name}/templates/fedora.spec
-%{py_sitescriptdir}/%{name}/templates/macros.spec
-%{py_sitescriptdir}/%{name}/templates/mageia.spec
-%{py_sitescriptdir}/%{name}/templates/pld.spec
-%{py_sitescriptdir}/%{name}-%{version}-py*.egg-info
+%dir %{py3_sitescriptdir}/%{name}
+%{py3_sitescriptdir}/%{name}/__pycache__
+%{py3_sitescriptdir}/%{name}/*.py
+%{py3_sitescriptdir}/%{name}/command
+%dir %{py3_sitescriptdir}/%{name}/templates
+%{py3_sitescriptdir}/%{name}/templates/epel6.spec
+%{py3_sitescriptdir}/%{name}/templates/epel7.spec
+%{py3_sitescriptdir}/%{name}/templates/fedora.spec
+%{py3_sitescriptdir}/%{name}/templates/macros.spec
+%{py3_sitescriptdir}/%{name}/templates/mageia.spec
+%{py3_sitescriptdir}/%{name}/templates/pld.spec
+%{py3_sitescriptdir}/%{name}-%{version}-py*.egg-info