forked from pool/python-netaddr
- Fixed non-executable script rpmlint warning
- Readded dependency on python-setuptools (with python-distribute): You can't simply remove this, it will break RPMs update mechanism! - Preparatory stuff belongs into the %prep section and the %clean section has a sane default OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-netaddr?expand=0&rev=5
This commit is contained in:
committed by
Git OBS Bridge
parent
27bafd2ce4
commit
2191f785ad
@@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 20 13:40:39 UTC 2011 - saschpe@suse.de
|
||||||
|
|
||||||
|
- Fixed non-executable script rpmlint warning
|
||||||
|
- Readded dependency on python-setuptools (with python-distribute):
|
||||||
|
You can't simply remove this, it will break RPMs update mechanism!
|
||||||
|
- Preparatory stuff belongs into the %prep section and the %clean
|
||||||
|
section has a sane default
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Sep 14 00:32:39 UTC 2011 - alexandre@exatati.com.br
|
Wed Sep 14 00:32:39 UTC 2011 - alexandre@exatati.com.br
|
||||||
|
|
||||||
|
@@ -15,9 +15,6 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
||||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
||||||
|
|
||||||
Name: python-netaddr
|
Name: python-netaddr
|
||||||
Version: 0.7.6
|
Version: 0.7.6
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -28,12 +25,14 @@ Group: Development/Languages/Python
|
|||||||
Source: netaddr-%{version}.tar.bz2
|
Source: netaddr-%{version}.tar.bz2
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
|
BuildRequires: python-distribute
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
%py_requires
|
%py_requires
|
||||||
%if 0%{?suse_version} > 1110
|
%if 0%{?suse_version} > 1110
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A pure Python network address representation and manipulation library.
|
A pure Python network address representation and manipulation library.
|
||||||
@@ -54,17 +53,14 @@ Included are routines for:
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n netaddr-%{version}
|
%setup -q -n netaddr-%{version}
|
||||||
|
sed -i "1d" netaddr/{ip/iana,eui/ieee,tests/__init__}.py # Fix non-executable scripts
|
||||||
|
chmod -x AUTHORS CHANGELOG COPYRIGHT README LICENSE THANKS # Remove executable bit from docs
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
|
||||||
python setup.py build
|
python setup.py build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
%{__chmod} -x AUTHORS CHANGELOG COPYRIGHT README LICENSE THANKS # remove executable bit from docs
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
Reference in New Issue
Block a user