summaryrefslogtreecommitdiffstats
path: root/healthcare
diff options
context:
space:
mode:
authorMichel Alexandre Salim <salimma@fedoraproject.org>2012-06-06 16:18:13 +0700
committerMichel Alexandre Salim <salimma@fedoraproject.org>2012-06-06 16:18:13 +0700
commit790554de55d4fced437aaa15b21c80d680514485 (patch)
tree62f50d0adebec1e8809debb1b2153e921dbd529c /healthcare
parent5ef19e8e9b76dc0de903e7fb8da32d0a7507e3f2 (diff)
downloadspecs-790554de55d4fced437aaa15b21c80d680514485.tar.gz
specs-790554de55d4fced437aaa15b21c80d680514485.tar.xz
specs-790554de55d4fced437aaa15b21c80d680514485.zip
python-qrcode: clean up spec and rename launcher
Diffstat (limited to 'healthcare')
-rw-r--r--healthcare/python-qrcode.spec18
1 files changed, 8 insertions, 10 deletions
diff --git a/healthcare/python-qrcode.spec b/healthcare/python-qrcode.spec
index 9b8930c..2104d57 100644
--- a/healthcare/python-qrcode.spec
+++ b/healthcare/python-qrcode.spec
@@ -1,12 +1,8 @@
-# sitelib for noarch packages, sitearch for others (remove the unneeded one)
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
-%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
-
%global pkgname qrcode
Name: python-%{pkgname}
Version: 2.4.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Python QR Code image generator
License: BSD
@@ -28,13 +24,12 @@ generation of QR Codes.
%build
-# Remove CFLAGS=... for noarch packages (unneeded)
-CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
+%{__python} setup.py build
%install
-rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/qr{,code}
%check
@@ -51,11 +46,14 @@ done
%files
%doc LICENSE README.rst CHANGES.rst
-# For noarch packages: sitelib
%{python_sitelib}/*
-%{_bindir}/qr
+%{_bindir}/qrcode
%changelog
+* 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