From 16ad67597d2b8161f11c14e197d210c4b8ee86fc Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Apr 19 2016 13:11:22 +0000 Subject: Update to 4.1.0 --- diff --git a/python-bna.spec b/python-bna.spec index d2b420f..ab6eb0d 100644 --- a/python-bna.spec +++ b/python-bna.spec @@ -1,11 +1,14 @@ -Name: python-bna -Version: 3.2 -Release: 5%{?dist} +%global srcname bna + +Name: python3-%{srcname} +Version: 4.1.0 +Release: 1%{?dist} Summary: Battle.net Authenticator routines in Python License: MIT URL: http://github.com/Adys/python-bna -Source0: https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz -BuildRequires: python2-devel +Source0: https://pypi.python.org/packages/source/b/bna/bna-%{version}.tar.gz +BuildRequires: python3-devel +BuildRequires: python3-setuptools BuildArch: noarch %description @@ -13,22 +16,28 @@ This is a Python library of Battle.net Authenticator routines, this package also contains a command-line Battle.net authenticator. %prep -%setup -q -sed -i 's|/usr/bin/env python|%{__python2}|g' *.py +%setup -q -n %{srcname}-%{version} %build -%{__python2} setup.py build +%py3_build %install -%{__python2} setup.py install --prefix=%{_prefix} -O1 --skip-build --root=%{buildroot} +%py3_install %files -%doc LICENSE README.rst +%doc README.rst +%license LICENSE %{_bindir}/bna -%{python2_sitelib}/bna* -%{python2_sitelib}/python_bna-%{version}-py%{python_version}.egg-info +%{python3_sitelib}/bna* +%{python3_sitelib}/__pycache__/bna* %changelog +* Mon Apr 19 2016 Charalampos Stratakis - 4.1.0-1 +- Update to version 4.1.0 +- Change package to use Python 3 +- Use of newest python macros +- Added license tag + * Thu Feb 04 2016 Fedora Release Engineering - 3.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild