summaryrefslogtreecommitdiff
path: root/python-IPy.spec
blob: 406130a1c07b4700c3b14d0ff406c411a0a7e754 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

%define 	module	IPy

Summary:	A Python module for handling IPv4 and IPv6 Addresses and Networks
Summary(pl):	Moduł języka Python do obsługi adresów i sieci IPv4 oraz IPv6
Name:		python-%{module}
Version:	0.42
Release:	1
License:	GPL
Group:		Libraries/Python
Source0:	http://c0re.23.nu/c0de/IPy/%{module}-%{version}.tar.gz
# Source0-md5:	76bb49482b8c99a49505331558d0eb71
URL:		http://c0re.23.nu/c0de/IPy/
BuildRequires:	python
%pyrequires_eq 	python-modules
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
A Python module for handling IPv4 and IPv6 Addresses and Networks.

%description -l pl
Moduł języka Python do obsługi adresów i sieci IPv4 oraz IPv6.

%prep
%setup -q -n %{module}-%{version}
python setup.py build

%install
rm -rf $RPM_BUILD_ROOT

python setup.py install \
        --root=$RPM_BUILD_ROOT \
        --optimize=2

%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%{py_sitescriptdir}/*.py[co]