2012-06-08 14:24:33 +00:00
|
|
|
%global pkgname qrcode
|
|
|
|
|
|
|
|
Name: python-%{pkgname}
|
|
|
|
Version: 2.4.1
|
2014-09-10 18:00:29 +00:00
|
|
|
Release: 7%{?dist}
|
2012-06-08 14:24:33 +00:00
|
|
|
Summary: Python QR Code image generator
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
URL: https://github.com/lincolnloop/python-qrcode
|
|
|
|
Source0: http://pypi.python.org/packages/source/q/qrcode/qrcode-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-imaging
|
|
|
|
Requires: python-imaging
|
2014-09-10 18:00:29 +00:00
|
|
|
Requires: %{name}-core = %{version}-%{release}
|
2012-06-08 14:24:33 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This module uses the Python Imaging Library (PIL) to allow for the
|
|
|
|
generation of QR Codes.
|
|
|
|
|
|
|
|
|
2014-09-10 18:00:29 +00:00
|
|
|
%package core
|
|
|
|
Summary: Python QR Code image generator (core library)
|
|
|
|
|
|
|
|
%description core
|
|
|
|
Core Python module for QR code generation. Does not contain image rendering.
|
|
|
|
|
|
|
|
|
2012-06-08 14:24:33 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n %{pkgname}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__python} setup.py build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
%{__mv} %{buildroot}%{_bindir}/qr{,code}
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
# in lieue of a real test suite
|
|
|
|
for m in $(find qrcode -name '*.py' \
|
|
|
|
| grep -v __init__ \
|
|
|
|
| sort \
|
|
|
|
| sed -e 's|/|.|g' \
|
|
|
|
| sed -e 's|.py$||g');
|
|
|
|
do
|
|
|
|
%{__python} -c "import $m"
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%{_bindir}/qrcode
|
2014-09-10 18:00:29 +00:00
|
|
|
%{python_sitelib}/%{pkgname}/image/svg.py*
|
|
|
|
%{python_sitelib}/%{pkgname}/image/pil.py*
|
|
|
|
|
|
|
|
|
|
|
|
%files core
|
|
|
|
%doc LICENSE README.rst CHANGES.rst
|
|
|
|
%dir %{python_sitelib}/%{pkgname}/
|
|
|
|
%dir %{python_sitelib}/%{pkgname}/image
|
|
|
|
%{python_sitelib}/%{pkgname}*.egg-info
|
|
|
|
%{python_sitelib}/%{pkgname}/*.py*
|
|
|
|
%{python_sitelib}/%{pkgname}/image/__init__.py*
|
|
|
|
%{python_sitelib}/%{pkgname}/image/base.py*
|
2012-06-08 14:24:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2014-09-10 18:00:29 +00:00
|
|
|
* Tue Sep 09 2014 Nathaniel McCallum <npmccallum@redhat.com> - 2.4.1-7
|
|
|
|
- Create -core subpackage for minimal dependencies
|
|
|
|
|
2014-06-07 22:37:22 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-08-04 09:24:43 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-02-14 20:14:13 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-21 08:09:03 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-08 14:24:33 +00:00
|
|
|
* Wed Jun 6 2012 Michel Salim <salimma@fedoraproject.org> - 2.4.1-2
|
|
|
|
- Clean up spec, removing unnecessary declarations
|
|
|
|
- Rename tool in %%{_bindir} to the less ambiguous qrcode
|
|
|
|
|
|
|
|
* Sat Jun 2 2012 Michel Salim <salimma@fedoraproject.org> - 2.4.1-1
|
|
|
|
- Initial package
|