diff --git a/files/pagure.spec b/files/pagure.spec index 74b62cd..1bed23b 100644 --- a/files/pagure.spec +++ b/files/pagure.spec @@ -21,12 +21,8 @@ BuildRequires: systemd-devel BuildRequires: systemd BuildRequires: python%{python_pkgversion}-devel BuildRequires: python%{python_pkgversion}-setuptools -%if 0%{?el6} -BuildRequires: python%{python_pkgversion}-sqlalchemy >= 0.8 -BuildRequires: python%{python_pkgversion}-jinja2 >= 2.4 -%endif -%if 0%{?el6} +%if 0%{?rhel} && 0%{?rhel} <= 7 # Needed only for local authentication and/or Pagure CI Requires: python%{python_pkgversion}-cryptography # Required only for the `local` authentication backend @@ -169,9 +165,6 @@ in the future pull-requests) git repo. %prep %autosetup -p1 -%if ! 0%{?el6} -sed -i -e "/__requires__/d" setup.py -%endif # In case it gets broken in git at least the rpm will be good chmod +x pagure/hooks/files/* diff --git a/setup.py b/setup.py index 64f8804..2e971c6 100644 --- a/setup.py +++ b/setup.py @@ -4,9 +4,6 @@ Setup script """ -# Required to build on EL6 -__requires__ = ['SQLAlchemy >= 0.8', 'jinja2 >= 2.4'] -import pkg_resources import os import re