]> git.pld-linux.org Git - packages/pyp2rpm.git/commitdiff
- build with python 3
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 6 Mar 2021 20:07:11 +0000 (21:07 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 6 Mar 2021 20:07:11 +0000 (21:07 +0100)
- rediff patches

default-distro.patch
default-savepath.patch
no-rpmdev-packager.patch
pyp2rpm.spec

index 1c73862cf396f37c32e157b5235ef2ed0a4cbd59..21f8c9cf4131f52fcb33e13497ecd114800a301e 100644 (file)
@@ -1,14 +1,15 @@
---- 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'
index db466e421120c3ee13b04ebad02e6598e2b518e1..6249c97c63669a01707b20a7ee1a84e9d99f02e7 100644 (file)
@@ -1,6 +1,7 @@
---- 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:
index 6cf1c9f3ebf728c3307fb1d09b371f59a5455a37..9adca2e577cf12e63b9780503317f3d872dfaa5f 100644 (file)
@@ -1,6 +1,7 @@
---- 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
@@ -8,7 +9,7 @@
  
  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.
          """
index 1fae2e9eef25096186b16b18bb9b5c637ba9dcb7..d55d97bea04345000363ea08e4236b1420d80a5a 100644 (file)
@@ -16,6 +16,7 @@ Patch2:               default-distro.patch
 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}
@@ -42,7 +43,7 @@ information though).
 %patch2 -p1
 
 %build
-%py_build
+%py3_build
 
 %if %{with tests}
 PYTHONPATH=$(pwd) py.test-3
@@ -50,8 +51,7 @@ PYTHONPATH=$(pwd) py.test-3
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%py_install
-%py_postclean
+%py3_install
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -60,14 +60,15 @@ 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
This page took 0.115873 seconds and 4 git commands to generate.