Update spec file for 0.6 release

- Add a few tweaks to make rpmlint clean
This commit is contained in:
John Eckersberg 2009-02-18 19:30:14 +00:00
parent f33dfadf56
commit d1e2071224

View File

@ -1,8 +1,8 @@
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: python-netaddr Name: python-netaddr
Version: 0.5.2 Version: 0.6
Release: 2%{?dist} Release: 1%{?dist}
Summary: Network address manipulation, done Pythonically Summary: Network address manipulation, done Pythonically
Group: Development/Libraries Group: Development/Libraries
@ -39,9 +39,8 @@ chmod 644 tests/*
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_bindir} mkdir -p $RPM_BUILD_ROOT/%{_bindir}
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
chmod 755 $RPM_BUILD_ROOT%{python_sitelib}/netaddr/__init__.py dos2unix $RPM_BUILD_ROOT%{python_sitelib}/netaddr/core.py
chmod 755 $RPM_BUILD_ROOT%{python_sitelib}/netaddr/strategy.py dos2unix $RPM_BUILD_ROOT%{python_sitelib}/netaddr/ip/__init__.py
chmod 755 $RPM_BUILD_ROOT%{python_sitelib}/netaddr/address.py
%clean %clean
@ -49,12 +48,22 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %defattr(0644,root,root,0755)
%doc GLOSSARY INSTALL LICENSE PKG-INFO README docs/api/ tests %doc GLOSSARY INSTALL LICENSE PKG-INFO README docs/api/ tests
%{python_sitelib}/* %{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 %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 * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.5.2-2
- Rebuild for Python 2.6 - Rebuild for Python 2.6