forked from lains/pydhcplib
-
Notifications
You must be signed in to change notification settings - Fork 1
/
python-pydhcplib.spec
54 lines (42 loc) · 1.47 KB
/
python-pydhcplib.spec
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
44
45
46
47
48
49
50
51
52
53
54
%define __python python2.6
%define __pyver 2.6
%define debug_package %{nil}
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
Name: python-pydhcplib
Version: 0.6.2
Release: 1%{?dist}
Summary: Python dhcp library
Group: Network
License: ASL 2.0
URL: http://code.locaweb.com.br/iaas/motoko
Source0: pydhcplib-%{version}.tar.gz
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: python
Requires: python
%description
Pydhcplib is a python library to read/write and encode/decode dhcp packet on network.
%prep
%setup -q -n pydhcplib-%{version}
%build
echo -n
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install --root $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_bindir}/pydhcp
/usr/lib/python%{__pyver}/site-packages/pydhcplib-%{version}-py%{__pyver}.egg-info
/usr/lib/python%{__pyver}/site-packages/pydhcplib/*
%{_mandir}/fr/man3/pydhcplib.3.gz
%{_mandir}/fr/man3/pydhcplib.DhcpBasicPacket.3.gz
%{_mandir}/fr/man3/pydhcplib.DhcpPacket.3.gz
%{_mandir}/fr/man3/pydhcplib.hwmac.3.gz
%{_mandir}/fr/man3/pydhcplib.ipv4.3.gz
%{_mandir}/fr/man3/pydhcplib.strlist.3.gz
%{_mandir}/man3/pydhcplib.3.gz
%{_mandir}/man3/pydhcplib.ipv4.3.gz
%{_mandir}/man3/pydhcplib.strlist.3.gz
%{_mandir}/man8/pydhcp.8.gz
%changelog
* Sat Mar 15 2014 Andre Ferraz <[email protected]> - 0.6.2-1
- Initial release