Update spec file for 0.6 release
- Add a few tweaks to make rpmlint clean
This commit is contained in:
parent
f33dfadf56
commit
d1e2071224
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user