| |
@@ -1,5 +1,5 @@
|
| |
%{!?_licensedir: %global license %%doc}
|
| |
- %if 0%{?fedora}
|
| |
+ %if 0%{?fedora} || 0%{?rhel} > 7
|
| |
%global with_python3 1
|
| |
%endif
|
| |
|
| |
@@ -8,8 +8,8 @@
|
| |
%global sum Modern password hashing for your software and your servers
|
| |
|
| |
Name: python-bcrypt
|
| |
- Version: 3.1.4
|
| |
- Release: 7%{?dist}
|
| |
+ Version: 3.1.6
|
| |
+ Release: 1%{?dist}
|
| |
Summary: %{sum}
|
| |
|
| |
#crypt_blowfish code is in Public domain and all other code in ASL 2.0
|
| |
@@ -77,19 +77,19 @@
|
| |
%autosetup -n %{modname}-%{version}
|
| |
|
| |
%build
|
| |
- %{__python2} setup.py build
|
| |
+ %py2_build
|
| |
|
| |
%if 0%{?with_python3}
|
| |
%py3_build
|
| |
%endif
|
| |
|
| |
%install
|
| |
+ %py2_install
|
| |
+
|
| |
%if 0%{?with_python3}
|
| |
%py3_install
|
| |
%endif
|
| |
|
| |
- %{__python2} setup.py install --skip-build --root %{buildroot}
|
| |
-
|
| |
# Better safe than sorry
|
| |
find %{buildroot}%{python2_sitearch} -name '*.so' -exec chmod 755 {} ';'
|
| |
|
| |
@@ -124,6 +124,9 @@
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Fri Feb 08 2019 Alfredo Moralejo <amoralej@redhat.com> - 3.1.6-1
|
| |
+ - Update to 3.1.6.
|
| |
+
|
| |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.4-7
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
| |
|
| |
Also:
- fixed macros for python2 build and install
- add python3 packages when building in rhel>7