Update to 5.0.1
This commit is contained in:
parent
4547507860
commit
1c54f5a15e
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
/qrcode-2.4.1.tar.gz
|
/qrcode-2.4.1.tar.gz
|
||||||
|
/qrcode-5.0.1.tar.gz
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
%global pkgname qrcode
|
%global pkgname qrcode
|
||||||
|
|
||||||
Name: python-%{pkgname}
|
Name: python-%{pkgname}
|
||||||
Version: 2.4.1
|
Version: 5.0.1
|
||||||
Release: 7%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Python QR Code image generator
|
Summary: Python QR Code image generator
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -11,7 +11,9 @@ Source0: http://pypi.python.org/packages/source/q/qrcode/qrcode-%{version
|
|||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
|
BuildRequires: python-setuptools
|
||||||
BuildRequires: python-imaging
|
BuildRequires: python-imaging
|
||||||
|
BuildRequires: python-six
|
||||||
Requires: python-imaging
|
Requires: python-imaging
|
||||||
Requires: %{name}-core = %{version}-%{release}
|
Requires: %{name}-core = %{version}-%{release}
|
||||||
|
|
||||||
@ -21,6 +23,7 @@ generation of QR Codes.
|
|||||||
|
|
||||||
|
|
||||||
%package core
|
%package core
|
||||||
|
Requires: python-six
|
||||||
Summary: Python QR Code image generator (core library)
|
Summary: Python QR Code image generator (core library)
|
||||||
|
|
||||||
%description core
|
%description core
|
||||||
@ -30,6 +33,9 @@ Core Python module for QR code generation. Does not contain image rendering.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{pkgname}-%{version}
|
%setup -q -n %{pkgname}-%{version}
|
||||||
|
|
||||||
|
# The pure plugin requires pymaging which is not packaged in Fedora.
|
||||||
|
rm qrcode/image/pure.py*
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__python} setup.py build
|
%{__python} setup.py build
|
||||||
@ -37,8 +43,14 @@ Core Python module for QR code generation. Does not contain image rendering.
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
||||||
%{__mv} %{buildroot}%{_bindir}/qr{,code}
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# in lieue of a real test suite
|
# in lieue of a real test suite
|
||||||
@ -53,7 +65,9 @@ done
|
|||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
%{_bindir}/qr
|
||||||
%{_bindir}/qrcode
|
%{_bindir}/qrcode
|
||||||
|
%{_mandir}/man1/qr.1*
|
||||||
%{python_sitelib}/%{pkgname}/image/svg.py*
|
%{python_sitelib}/%{pkgname}/image/svg.py*
|
||||||
%{python_sitelib}/%{pkgname}/image/pil.py*
|
%{python_sitelib}/%{pkgname}/image/pil.py*
|
||||||
|
|
||||||
@ -69,6 +83,9 @@ done
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Sep 10 2014 Nathaniel McCallum <npmccallum@redhat.com> - 5.0.1-1
|
||||||
|
- Update to 5.0.1
|
||||||
|
|
||||||
* Tue Sep 09 2014 Nathaniel McCallum <npmccallum@redhat.com> - 2.4.1-7
|
* Tue Sep 09 2014 Nathaniel McCallum <npmccallum@redhat.com> - 2.4.1-7
|
||||||
- Create -core subpackage for minimal dependencies
|
- Create -core subpackage for minimal dependencies
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user