diff options
author | Nathaniel McCallum <nathaniel@natemccallum.com> | 2010-06-19 16:22:23 -0400 |
---|---|---|
committer | Nathaniel McCallum <nathaniel@natemccallum.com> | 2010-06-19 16:22:23 -0400 |
commit | db340762bb384c6e5971811b586cae8bc51b1c9b (patch) | |
tree | ea071e966dcd853b8b863a2c6064a58e29508046 /python-snpp.spec | |
download | zenoss-db340762bb384c6e5971811b586cae8bc51b1c9b.tar.gz zenoss-db340762bb384c6e5971811b586cae8bc51b1c9b.tar.xz zenoss-db340762bb384c6e5971811b586cae8bc51b1c9b.zip |
initial import
Diffstat (limited to 'python-snpp.spec')
-rw-r--r-- | python-snpp.spec | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/python-snpp.spec b/python-snpp.spec new file mode 100644 index 0000000..7898fca --- /dev/null +++ b/python-snpp.spec @@ -0,0 +1,56 @@ +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} + +Name: python-snpp +Version: 1.1.2 +Release: 2%{?dist} +Summary: Simple Network Paging Protocol + +Group: Development/Libraries +License: GPLv2+ +URL: http://launchpad.net/python-snpp +Source0: http://launchpad.net/%{name}/trunk/%{version}/+download/%{name}-%{version}.tar.gz +Source1: COPYING.python-snpp +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: python-devel +BuildRequires: python-setuptools + +%description +Libraries implementing RFC 1861 - Simple Network Paging Protocol + +%prep +%setup -q +rm -rf python_snpp.egg-info +cp %{SOURCE1} ./COPYING + +%build +sed -i 's/from ez_setup import use_setuptools//' setup.py +sed -i 's/use_setuptools()//' setup.py +%{__python} setup.py build + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc README COPYING +%{python_sitelib}/Pager.py* +%{python_sitelib}/snpplib.py* +%{python_sitelib}/python_snpp*.egg-info + +%changelog +* Sat Jun 19 2010 Nathaniel McCallum - 1.1.2-2 +- Fix egg-info issue +- Add python-setuptools as build requires +- Use more specific files section +- Include COPYING file from upstream bzr +- Fix group and summary + +* Fri Jun 18 2010 Nathaniel McCallum - 1.1.2-1 +- Initial package + |