Browse Source

drop el6 bits

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
Igor Gnatenko 5 years ago
parent
commit
012a3a2cf7
2 changed files with 1 additions and 11 deletions
  1. 1 8
      files/pagure.spec
  2. 0 3
      setup.py

+ 1 - 8
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/*

+ 0 - 3
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