summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Eckersberg <jeckersb@fedoraproject.org>2009-02-18 19:30:14 +0000
committerJohn Eckersberg <jeckersb@fedoraproject.org>2009-02-18 19:30:14 +0000
commitd1e2071224553efc9d45cbf3aaa1c605d9a0ea20 (patch)
tree933cb5f59ec3036d3bbc1d5f069fdbc45c0658bf
parentf33dfadf56436dd271dc72a5dff9439d2200a612 (diff)
downloadnetaddr-d1e2071224553efc9d45cbf3aaa1c605d9a0ea20.tar.gz
netaddr-d1e2071224553efc9d45cbf3aaa1c605d9a0ea20.tar.xz
netaddr-d1e2071224553efc9d45cbf3aaa1c605d9a0ea20.zip
Update spec file for 0.6 releasepython-netaddr-0_6-1_fc11
- Add a few tweaks to make rpmlint clean
-rw-r--r--python-netaddr.spec21
1 files changed, 15 insertions, 6 deletions
diff --git a/python-netaddr.spec b/python-netaddr.spec
index a57e831..08dc7b4 100644
--- a/python-netaddr.spec
+++ b/python-netaddr.spec
@@ -1,8 +1,8 @@
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: python-netaddr
-Version: 0.5.2
-Release: 2%{?dist}
+Version: 0.6
+Release: 1%{?dist}
Summary: Network address manipulation, done Pythonically
Group: Development/Libraries
@@ -39,9 +39,8 @@ chmod 644 tests/*
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
-chmod 755 $RPM_BUILD_ROOT%{python_sitelib}/netaddr/__init__.py
-chmod 755 $RPM_BUILD_ROOT%{python_sitelib}/netaddr/strategy.py
-chmod 755 $RPM_BUILD_ROOT%{python_sitelib}/netaddr/address.py
+dos2unix $RPM_BUILD_ROOT%{python_sitelib}/netaddr/core.py
+dos2unix $RPM_BUILD_ROOT%{python_sitelib}/netaddr/ip/__init__.py
%clean
@@ -49,12 +48,22 @@ rm -rf $RPM_BUILD_ROOT
%files
-%defattr(-,root,root,-)
+%defattr(0644,root,root,0755)
%doc GLOSSARY INSTALL LICENSE PKG-INFO README docs/api/ tests
%{python_sitelib}/*
+#These libraries have shebangs thus should be +x
+%attr(0755,root,root) %{python_sitelib}/netaddr/core.py
+%attr(0755,root,root) %{python_sitelib}/netaddr/eui/__init__.py
+%attr(0755,root,root) %{python_sitelib}/netaddr/strategy.py
+%attr(0755,root,root) %{python_sitelib}/netaddr/address.py
+%attr(0755,root,root) %{python_sitelib}/netaddr/ip/__init__.py
+%attr(0755,root,root) %{python_sitelib}/netaddr/__init__.py
%changelog
+* Wed Feb 18 2009 John Eckersberg <jeckersb@redhat.com> - 0.6-1
+- New upstream version
+
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.5.2-2
- Rebuild for Python 2.6