summaryrefslogtreecommitdiff
path: root/rpm/python-tftpy.spec
blob: c2e4909538fe6efdd2b819b07c618cf816cc69f6 (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
44
45
46
47
48
49
50
51
52
Name: python-tftpy
Version: 0.7.0
Release: 01
Packager: Michael P. Soulier <michael_soulier@mitel.com>
Summary: A pure python TFTP library.
License: BSD
Group: Libraries/Net
URL: http://tftpy.sf.net/
Source0: tftpy-%{version}.tar.gz
BuildRequires: python-devel
Requires: python
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildArch: noarch

AutoReqProv: no
%define debug_package %{nil}
%define __os_install_post %{nil}

%description
This module is a pure Python implementation of the TFTP protocol, RFCs 1350,
2347, 2348 and the tsize option from 2349.

%changelog
* Tue Feb 15 2011 Michael P. Soulier <michael_soulier@mitel.com>
- [0.5.1-01]
- Initial rpm build.

%prep
%setup -q -n tftpy-%{version}

%build
%{__python} setup.py build

%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install \
    --prefix=$RPM_BUILD_ROOT/usr \
    --record=filelist-%{name}-%{version}-%{release}-temp

cat filelist-%{name}-%{version}-%{release}-temp | \
    sed -e "s;^$RPM_BUILD_ROOT;;" \
    > filelist-%{name}-%{version}-%{release}

%clean
rm -rf $RPM_BUILD_ROOT

%files -f filelist-%{name}-%{version}-%{release}
%defattr(-,root,root)
%doc COPYING
%doc README
%doc ChangeLog
%doc PKG-INFO