diff --git a/.gitignore b/.gitignore index e69de29..907fdb3 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/gntp-1.0.1.tar.gz diff --git a/python-gntp.spec b/python-gntp.spec new file mode 100644 index 0000000..f02719a --- /dev/null +++ b/python-gntp.spec @@ -0,0 +1,61 @@ +Name: python-gntp +Version: 1.0.1 +Release: 3%{?dist} +Summary: Growl Notification Transport Protocol for Python +License: MIT +URL: https://pypi.python.org/pypi/gntp +Source0: https://pypi.python.org/packages/source/g/gntp/gntp-%{version}.tar.gz +BuildArch: noarch +BuildRequires: python2-devel +BuildRequires: python-setuptools + + +%description +This is a Python library for working with the Growl Notification Transport +Protocol. + +It should work as a drop-in replacement for the older Python bindings. + + +%prep +%setup -q -n gntp-%{version} + +# Remove executable bit, shabang line from library source: +chmod -x gntp/cli.py +sed -i '/#!\/usr\/bin\/env python/,/^$/d' gntp/cli.py + +# Remove bundled egg-info +rm -rf gntp.egg-info + + +%build +python setup.py build + + +%install +python setup.py install -O1 --skip-build --root %{buildroot} + + +%files +%doc README.rst +%{python_sitelib}/gntp* +%{_bindir}/gntp + + +%changelog +* Sat Jun 15 2013 Conrad Meyer - 1.0.1-3 +- Remove bundled egg (as per rh #917328 review) + +* Sat Jun 15 2013 Conrad Meyer - 1.0.1-2 +- Add dependency on python-setuptools to avoid buggy python-distutils fallback + +* Mon Apr 29 2013 Conrad Meyer - 1.0.1-1 +- Bump to latest upstream + +* Mon Apr 29 2013 Conrad Meyer - 0.9-2 +- New-world spec cleanups (python_sitelib is already defined, don't need to + nuke buildroot during install) +- BR python2-devel, not python-devel + +* Sat Mar 2 2013 Conrad Meyer - 0.9-1 +- Initial package diff --git a/sources b/sources index e69de29..f44e400 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1876dbf458f5619e41c7cea1e437e6d6 gntp-1.0.1.tar.gz