From c39ae3553905e5ebd2d14c1c02be8e65b71cd691 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Fri, 8 Jun 2012 21:24:33 +0700 Subject: [PATCH] Initial import --- .gitignore | 1 + python-qrcode.spec | 59 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 61 insertions(+) create mode 100644 python-qrcode.spec diff --git a/.gitignore b/.gitignore index e69de29..4c9fb94 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/qrcode-2.4.1.tar.gz diff --git a/python-qrcode.spec b/python-qrcode.spec new file mode 100644 index 0000000..33be75a --- /dev/null +++ b/python-qrcode.spec @@ -0,0 +1,59 @@ +%global pkgname qrcode + +Name: python-%{pkgname} +Version: 2.4.1 +Release: 2%{?dist} +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 + +%description +This module uses the Python Imaging Library (PIL) to allow for the +generation of QR Codes. + + +%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 +%doc LICENSE README.rst CHANGES.rst +%{python_sitelib}/* +%{_bindir}/qrcode + + +%changelog +* Wed Jun 6 2012 Michel Salim - 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 - 2.4.1-1 +- Initial package diff --git a/sources b/sources index e69de29..5951295 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +23cc19394010c74d226b6ab8797957ac qrcode-2.4.1.tar.gz