From d1e2071224553efc9d45cbf3aaa1c605d9a0ea20 Mon Sep 17 00:00:00 2001 From: John Eckersberg Date: Wed, 18 Feb 2009 19:30:14 +0000 Subject: Update spec file for 0.6 release - Add a few tweaks to make rpmlint clean --- python-netaddr.spec | 21 +++++++++++++++------ 1 file 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 - 0.6-1 +- New upstream version + * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.5.2-2 - Rebuild for Python 2.6 -- cgit