Skip to content

Commit 24afbb8

Browse files
committed
make spec file compatible with epel7
1 parent df6e7c1 commit 24afbb8

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

python-PyMySQL.spec

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
%global pypi_name PyMySQL
2-
%if 0%{?fedora}
32
%global with_python3 1
4-
%endif
53

64
Name: python-%{pypi_name}
75
Version: 0.8.0
8-
Release: 3%{?dist}
6+
Release: 4%{?dist}
97
Summary: Pure-Python MySQL client library
108

119
License: MIT
@@ -35,9 +33,9 @@ and Jython.
3533
%if 0%{?with_python3}
3634
%package -n python3-%{pypi_name}
3735
Summary: Pure-Python MySQL client library
38-
BuildRequires: python3-devel
39-
BuildRequires: python3-setuptools
40-
%{?python_provide:%python_provide python3-%{pypi_name}}
36+
BuildRequires: python%{python3_pkgversion}-devel
37+
BuildRequires: python%{python3_pkgversion}-setuptools
38+
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
4139

4240
%description -n python3-%{pypi_name}
4341
This package contains a pure-Python MySQL client library. The goal of PyMySQL is
@@ -94,6 +92,9 @@ done
9492

9593

9694
%changelog
95+
* Thu Feb 15 2018 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.8.0-4
96+
- make spec file compatible with epel7
97+
9798
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-3
9899
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
99100

0 commit comments

Comments
 (0)