From 0b6cacc53e185dd850bab357af261c09a140162650ccb95e1c9d21eb569354b5 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Mon, 18 Jul 2011 17:46:56 +0000 Subject: [PATCH] Accepting request 76390 from home:alina_q:NEPI Hi, I'd like to submit this package here, I found it's a dependency of another project I've been maintaining. devel:languages:python seems to be a good match, prior to submitting it to factory. OBS-URL: https://build.opensuse.org/request/show/76390 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ipaddr?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++++ .gitignore | 1 + _service | 7 ++++++ python-ipaddr.changes | 5 ++++ python-ipaddr.spec | 58 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 94 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 python-ipaddr.changes create mode 100644 python-ipaddr.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..1df3683 --- /dev/null +++ b/_service @@ -0,0 +1,7 @@ + + + ipaddr-py.googlecode.com + http + /files/ipaddr-2.1.9.tar.gz + + \ No newline at end of file diff --git a/python-ipaddr.changes b/python-ipaddr.changes new file mode 100644 index 0000000..1c8ab38 --- /dev/null +++ b/python-ipaddr.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Jul 8 09:47:53 UTC 2011 - klaussfreire@users.sourceforge.net + +- Initial package, upstream ipaddr 2.1.9 + diff --git a/python-ipaddr.spec b/python-ipaddr.spec new file mode 100644 index 0000000..c2c2a1f --- /dev/null +++ b/python-ipaddr.spec @@ -0,0 +1,58 @@ +# norootforbuild + +Name: python-ipaddr +Version: 2.1.9 +Release: 1 +Summary: Python IP address manipulation library +Group: Development/Libraries/Python +License: Apache 2.0 +URL: http://code.google.com/p/ipaddr-py/ +Source0: http://ipaddr-py.googlecode.com/files/ipaddr-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build +Requires: python +BuildRequires: python-devel python-setuptools +%if 0%{?suse_version} +BuildRequires: fdupes +%endif +%if (0%{?suse_version} < 1130) && (0%{?suse_version} > 0) +# py_requires is no longer needed since 11.3 +%{py_requires} +%endif +Autoreqprov: on +%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1} +BuildArchitectures: noarch +%endif + +%description +An IPv4/IPv6 manipulation library in Python. This library is used to create/poke/manipulate IPv4 and IPv6 addresses and prefixes. + +%prep +%setup -q -n ipaddr-%{version} + +%build +%{__python} setup.py build + +%install +%if 0%{?suse_version} +%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --compile --optimize=2 --record-rpm=INSTALLED_FILES +%else +%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --compile --optimize=2 --record=INSTALLED_FILES +%endif +%if 0%{?suse_version} +%fdupes %{buildroot}%{py_sitedir} +%endif +%if 0%{?mdkversion} >= 201001 +# Mandriva 2010.1 has some issues with byte compiling +# It refuses to, but it still outputs the .py[co] to the INSTALLED_FILES list +grep -v '[.]py[co]$' INSTALLED_FILES > INSTALLED_FILES_MDK +mv -f INSTALLED_FILES_MDK INSTALLED_FILES +%endif + +%clean +rm -rf %{buildroot} + +%files -f INSTALLED_FILES +%defattr(-,root,root) +%doc README + +%changelog