2012-06-08 14:24:33 +00:00
|
|
|
%global pkgname qrcode
|
|
|
|
|
|
|
|
Name: python-%{pkgname}
|
2019-05-26 15:29:33 +00:00
|
|
|
Version: 6.1
|
2020-05-26 01:36:22 +00:00
|
|
|
Release: 6%{?dist}
|
2012-06-08 14:24:33 +00:00
|
|
|
Summary: Python QR Code image generator
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
URL: https://github.com/lincolnloop/python-qrcode
|
2019-05-26 15:29:33 +00:00
|
|
|
Source0: https://pypi.python.org/packages/source/q/qrcode/qrcode-%{version}.tar.gz
|
2012-06-08 14:24:33 +00:00
|
|
|
BuildArch: noarch
|
2015-07-17 09:51:53 +00:00
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: python3-imaging
|
|
|
|
BuildRequires: python3-six
|
|
|
|
|
2017-08-19 13:42:26 +00:00
|
|
|
%global _description\
|
|
|
|
This module uses the Python Imaging Library (PIL) to allow for the\
|
2018-10-11 20:15:47 +00:00
|
|
|
generation of QR Codes.
|
2017-08-19 13:42:26 +00:00
|
|
|
|
|
|
|
%description %_description
|
|
|
|
|
2015-07-17 09:51:53 +00:00
|
|
|
%package -n python3-%{pkgname}
|
|
|
|
Summary: Python QR Code image generator
|
|
|
|
Requires: python3-imaging
|
|
|
|
# For entry point:
|
|
|
|
Requires: python3-setuptools
|
|
|
|
Requires: python3-%{pkgname}-core = %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n python3-%{pkgname}
|
|
|
|
This module uses the Python Imaging Library (PIL) to allow for the
|
|
|
|
generation of QR Codes. Python 3 version.
|
|
|
|
|
|
|
|
%package -n python3-%{pkgname}-core
|
|
|
|
Requires: python3-six
|
|
|
|
Summary: Python 3 QR Code image generator (core library)
|
|
|
|
|
|
|
|
%description -n python3-%{pkgname}-core
|
|
|
|
Core Python 3 module for QR code generation. Does not contain image rendering.
|
2014-09-10 18:00:29 +00:00
|
|
|
|
2012-06-08 14:24:33 +00:00
|
|
|
%prep
|
2019-05-26 15:29:33 +00:00
|
|
|
%autosetup -n qrcode-%{version}
|
2012-06-08 14:24:33 +00:00
|
|
|
|
2014-09-10 20:43:02 +00:00
|
|
|
# The pure plugin requires pymaging which is not packaged in Fedora.
|
2018-10-11 20:15:47 +00:00
|
|
|
rm qrcode/image/pure.py*
|
2015-07-17 09:51:53 +00:00
|
|
|
|
|
|
|
# Remove shebang
|
2018-10-11 20:15:47 +00:00
|
|
|
sed -i '1d' qrcode/console_scripts.py
|
2012-06-08 14:24:33 +00:00
|
|
|
|
|
|
|
%build
|
2018-10-11 20:15:47 +00:00
|
|
|
%py3_build
|
2012-06-08 14:24:33 +00:00
|
|
|
|
|
|
|
%install
|
2018-10-11 20:15:47 +00:00
|
|
|
%py3_install
|
2015-07-17 09:51:53 +00:00
|
|
|
|
|
|
|
# Do not install tests
|
|
|
|
rm -r %{buildroot}%{python3_sitelib}/%{pkgname}/tests
|
2012-06-08 14:24:33 +00:00
|
|
|
|
2014-09-10 20:43:02 +00:00
|
|
|
#
|
|
|
|
# In previous iterations of the package, the qr script had been
|
|
|
|
# renamed to qrcode. This was an unnecessary change from upstream.
|
|
|
|
#
|
|
|
|
# We cary this symlink to maintain compat with old packages.
|
|
|
|
#
|
|
|
|
ln -s qr %{buildroot}%{_bindir}/qrcode
|
2012-06-08 14:24:33 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
# in lieue of a real test suite
|
2015-07-17 09:51:53 +00:00
|
|
|
modules=$(find qrcode -name '*.py' \
|
|
|
|
| grep -v __init__ \
|
|
|
|
| sort \
|
|
|
|
| sed -e 's|/|.|g' \
|
|
|
|
| sed -e 's|.py$||g');
|
|
|
|
|
|
|
|
|
|
|
|
for m in $modules;
|
2012-06-08 14:24:33 +00:00
|
|
|
do
|
2015-07-17 09:51:53 +00:00
|
|
|
%{__python3} -c "import $m"
|
2012-06-08 14:24:33 +00:00
|
|
|
done
|
2015-07-17 09:51:53 +00:00
|
|
|
|
|
|
|
%files -n python3-%{pkgname}
|
|
|
|
%{_bindir}/qr
|
|
|
|
%{_bindir}/qrcode
|
|
|
|
%{_mandir}/man1/qr.1*
|
|
|
|
%{python3_sitelib}/%{pkgname}/image/svg.py*
|
|
|
|
%{python3_sitelib}/%{pkgname}/image/pil.py*
|
|
|
|
%{python3_sitelib}/%{pkgname}/image/__pycache__/svg.*
|
|
|
|
%{python3_sitelib}/%{pkgname}/image/__pycache__/pil.*
|
|
|
|
|
2019-05-26 15:29:33 +00:00
|
|
|
%files -n python3-%{pkgname}-core
|
2018-10-11 20:15:47 +00:00
|
|
|
%doc README.rst CHANGES.rst
|
|
|
|
%license LICENSE
|
2015-07-17 09:51:53 +00:00
|
|
|
%dir %{python3_sitelib}/%{pkgname}/
|
|
|
|
%dir %{python3_sitelib}/%{pkgname}/image
|
|
|
|
%dir %{python3_sitelib}/%{pkgname}/image/__pycache__
|
|
|
|
%{python3_sitelib}/%{pkgname}*.egg-info
|
|
|
|
%{python3_sitelib}/%{pkgname}/*.py*
|
|
|
|
%{python3_sitelib}/%{pkgname}/__pycache__
|
|
|
|
%{python3_sitelib}/%{pkgname}/image/__init__.py*
|
|
|
|
%{python3_sitelib}/%{pkgname}/image/base.py*
|
|
|
|
%{python3_sitelib}/%{pkgname}/image/__pycache__/__init__.*
|
|
|
|
%{python3_sitelib}/%{pkgname}/image/__pycache__/base.*
|
2012-06-08 14:24:33 +00:00
|
|
|
|
|
|
|
%changelog
|
2020-05-26 01:36:22 +00:00
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 6.1-6
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
2020-01-30 14:51:36 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.1-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-10-03 12:27:47 +00:00
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 6.1-4
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
2019-08-19 08:54:11 +00:00
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 6.1-3
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
2019-07-26 15:52:20 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-05-26 15:29:33 +00:00
|
|
|
* Sun May 26 2019 Fabian Affolter <mail@fabian-affolter.ch> - 6.1-1
|
|
|
|
- Update to latest upstream release 6.1
|
|
|
|
|
2019-02-02 08:55:33 +00:00
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.1-15
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-10-11 20:15:47 +00:00
|
|
|
* Thu Oct 11 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.1-14
|
|
|
|
- Python2 binary package has been removed
|
|
|
|
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
|
|
2018-07-14 01:48:40 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.1-13
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-19 09:16:45 +00:00
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 5.1-12
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
2018-03-23 22:01:03 +00:00
|
|
|
* Fri Mar 23 2018 Iryna Shcherbina <ishcherb@redhat.com> - 5.1-11
|
|
|
|
- Update Python 2 dependency declarations to new packaging standards
|
|
|
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
|
|
2018-03-20 22:10:55 +00:00
|
|
|
* Tue Mar 20 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.1-10
|
|
|
|
- Also rename python-qrcode-core to python2-qrcode-core
|
|
|
|
|
2018-02-09 10:23:45 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.1-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-08-19 13:42:26 +00:00
|
|
|
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.1-8
|
|
|
|
- Python 2 binary package renamed to python2-qrcode
|
|
|
|
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
|
|
|
|
2017-07-27 11:35:57 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.1-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-11 10:14:36 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.1-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-12-19 17:20:38 +00:00
|
|
|
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 5.1-5
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
2016-07-19 11:20:51 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1-4
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-02-04 20:43:36 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-11-10 17:00:20 +00:00
|
|
|
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
|
|
2015-07-17 09:51:53 +00:00
|
|
|
* Fri Jul 10 2015 Miro Hrončok <mhroncok@redhat.com> - 5.1-1
|
|
|
|
- Update to 5.1
|
|
|
|
- Introduce python3 subpackages (#1237118)
|
|
|
|
- Moved LICENSE from %%doc to %%license
|
|
|
|
|
2015-06-18 20:33:08 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2014-09-16 15:50:20 +00:00
|
|
|
* Tue Sep 16 2014 Nathaniel McCallum <npmccallum@redhat.com> - 5.0.1-2
|
|
|
|
- Make python-qrcode-core conflicts with python-qrcode < 5.0
|
|
|
|
|
2014-09-10 20:43:02 +00:00
|
|
|
* Wed Sep 10 2014 Nathaniel McCallum <npmccallum@redhat.com> - 5.0.1-1
|
|
|
|
- Update to 5.0.1
|
|
|
|
|
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
|