#8 Fixes for EPEL7/8/9
Closed a year ago by dherrera. Opened a year ago by dherrera.
rpms/ dherrera/module-build-service main  into  main

file added
+18
@@ -0,0 +1,18 @@ 

+ diff --git a/requirements.txt b/requirements.txt

+ index 61859597..9ab39b58 100644

+ --- a/requirements.txt

+ +++ b/requirements.txt

+ @@ -1,13 +1,10 @@

+  click

+  distro

+  dogpile.cache

+ -enum34

+  fedmsg

+  Flask

+  Flask-Migrate

+  Flask-SQLAlchemy

+ -funcsigs # Python2 only

+ -futures # Python 2 only

+  kobo>=0.5.0

+  koji

+  ldap3

file modified
+31 -6
@@ -1,17 +1,22 @@ 

- %if 0%{?fedora}

+ %if 0%{?fedora} || ( 0%{?rhel} && 0%{?rhel} >= 8 )

  # Not all python modules are built with Python3 in EPEL

  %global with_python3 1

  %endif

  

  Name:           module-build-service

  Version:        3.8.0

- Release:        3%{?dist}

+ Release:        7%{?dist}

  Summary:        The Module Build Service for Modularity

  

  License:        MIT

  URL:            https://pagure.io/fm-orchestrator

  Source0:        https://files.pythonhosted.org/packages/source/m/%{name}/%{name}-%{version}.tar.gz

+ %if 0%{?fedora} || ( 0%{?rhel} && 0%{?rhel} >= 8 )

+ # https://pagure.io/fm-orchestrator/pull-request/1767

  Patch0:         mbs_fedora_click.patch

+ # https://pagure.io/fm-orchestrator/pull-request/1769

+ Patch1:         mbs_rem_reqs.patch

+ %endif

  

  BuildArch:      noarch

  
@@ -25,7 +30,6 @@ 

  BuildRequires:  python3-setuptools

  BuildRequires:  python3-m2crypto

  BuildRequires:  python3-munch

- BuildRequires:  python3-funcsigs

  BuildRequires:  python3-solv

  BuildRequires:  python3-libmodulemd

  BuildRequires:  python3-openidc-client
@@ -60,7 +64,6 @@ 

  BuildRequires:  python-munch

  BuildRequires:  python2-funcsigs

  BuildRequires:  python2-solv

- BuildRequires:  python2-libmodulemd

  BuildRequires:  python-openidc-client

  BuildRequires:  python-ldap3

  BuildRequires:  python-enum34
@@ -83,6 +86,8 @@ 

  BuildRequires:  python-dogpile-cache

  BuildRequires:  python-backports-ssl_match_hostname

  BuildRequires:  python-requests

+ # On RHEL7 python2-libmodulemd is packaged as python2-libmodulemd2

+ BuildRequires:  python2-libmodulemd2

  %else

  BuildRequires:  python2-setuptools

  BuildRequires:  python2-flask-sqlalchemy
@@ -98,6 +103,7 @@ 

  BuildRequires:  python2-m2crypto

  BuildRequires:  python2-kobo

  BuildRequires:  python2-kobo-rpmlib

+ BuildRequires:  python2-libmodulemd

  # python2-pungi is not available in EPEL and can't be a BuildRequire for RHEL

  BuildRequires:  python2-pungi

  %endif
@@ -112,7 +118,6 @@ 

  %if 0%{?with_python3}

  Requires:       python3-click

  Requires:       python3-munch

- Requires:       python3-funcsigs

  Requires:       python3-openidc-client

  Requires:       python3-ldap3

  Requires:       python3-libmodulemd
@@ -142,7 +147,6 @@ 

  Requires:       python-enum34

  Requires:       python-openidc-client

  Requires:       python-ldap3

- Requires:       python2-libmodulemd

  Requires:       python2-solv

  Requires:       python2-koji

  Requires:       python2-fedmsg
@@ -162,6 +166,8 @@ 

  Requires:       python-dogpile-cache

  Requires:       python-backports-ssl_match_hostname

  Requires:       python-requests

+ # On RHEL7 python2-libmodulemd is packaged as python2-libmodulemd2

+ Requires:       python2-libmodulemd2

  %else

  Requires:       python2-flask-sqlalchemy

  Requires:       python2-flask-migrate
@@ -176,6 +182,7 @@ 

  Requires:       python2-m2crypto

  Requires:       python2-kobo

  Requires:       python2-kobo-rpmlib

+ Requires:       python2-libmodulemd

  %endif

  

  %endif
@@ -205,7 +212,10 @@ 

  

  %prep

  %setup -q

+ %if 0%{?fedora} || ( 0%{?rhel} && 0%{?rhel} >= 8 )

  %patch0 -p1

+ %patch1 -p1

+ %endif

  

  

  # Workaround because python2-koji has no egg-info file at the momement
@@ -272,6 +282,7 @@ 

  %else

  %exclude %{python2_sitelib}/conf/

  %exclude %{python2_sitelib}/tests/

+ %exclude %{_sysconfdir}/fedmsg.d/*.py[co]

  %endif

  

  %if 0%{?fedora}
@@ -279,6 +290,20 @@ 

  %endif

  

  %changelog

+ * Tue Apr 4 2023 Diego Herrera <dherrera@redhat.com> - 3.8.0-7

+ - Remove unneeded requirements from requirements.txt

+ 

+ * Wed Mar 1 2023 Diego Herrera <dherrera@redhat.com> - 3.8.0-6

+ - Remove the python3-funcsigs requirement

+ 

+ * Wed Feb 15 2023 Diego Herrera <dherrera@redhat.com> - 3.8.0-5

+ - Exclude mbs patch on EPEL7

+ 

+ * Tue Jan 24 2023 Diego Herrera <dherrera@redhat.com> - 3.8.0-4

+ - EPEL8+ uses python3

+ - Fix libmodulemd dependency on RHEL7

+ - Exclude precompiled python files from config on python2

+ 

  * Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.0-3

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild

  

I fixed the python2 filters and dependencies so that the spec file works for EPEL7
With the proper dependencies packaged it should also help this to work on EPEL8 and EPEL9

  • EPEL8+ uses python3
  • Fix libmodulemd dependency on RHEL7
  • Exclude precompiled python files from config on python2
    update 2023/03/01
  • Removed python3-funcsigs dependency since its not required for python3.3+ (see BZ#1758822)

rebased onto 99247ac

a year ago

rebased onto 99247ac

a year ago

rebased onto 38b0b81

a year ago

1 new commit added

  • Exclude mbs patch on EPEL7
a year ago

2 new commits added

  • Exclude mbs patch on EPEL7
  • Fixes for EPEL
a year ago

2 new commits added

  • Exclude mbs patch on EPEL7
  • Fixes for EPEL
a year ago

1 new commit added

  • Remove the python3-funcsigs requirement
a year ago

1 new commit added

  • Remove unneeded requirements from requirements.txt
a year ago

Pull-Request has been closed by dherrera

a year ago