%global modname qrencode
%global commit a58d28a4988676d20e204a9937972528cdffc381
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: python-%{modname}
Version: 0
Release: 7.git.%{shortcommit}%{?dist}
Summary: A simple wrapper for the C qrencode
# No LICENSE file in repo: https://github.com/Arachnid/pyqrencode/issues/9
License: ASL 2.0
URL: https://github.com/Arachnid/pyqrencode
Source0: %{url}/archive/%{commit}/%{modname}-%{shortcommit}.tar.gz
BuildRequires: qrencode-devel
%description
A simple wrapper for the C qrencode.
%package -n python2-%{modname}
Summary: %{summary}
%{?python_provide:%python_provide python2-%{modname}}
BuildRequires: python2-devel
Requires: python2-pillow%{?_isa}
%description -n python2-%{modname}
%{summary}.
Python 2 version.
%package -n python3-%{modname}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{modname}}
BuildRequires: python3-devel
Requires: python3-pillow%{?_isa}
%description -n python3-%{modname}
%{summary}.
Python 3 version.
%prep
%autosetup -n py%{modname}-%{commit}
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%files -n python2-%{modname}
%{python2_sitearch}/%{modname}/
%{python2_sitearch}/%{modname}-*.egg-info
%files -n python3-%{modname}
%{python3_sitearch}/%{modname}/
%{python3_sitearch}/%{modname}-*.egg-info
%changelog
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-7.git.a58d28a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-6.git.a58d28a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-5.git.a58d28a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-4.git.a58d28a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 0-3.git.a58d28a
- Rebuild for Python 3.6
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-2.git.a58d28a
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Tue Jun 28 2016 Igor Gnatenko <ignatenko@redhat.com> - 0-1.git.a58d28a
- Initial package