summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael P. Soulier <msoulier@digitaltorque.ca>2011-07-26 03:32:33 -0400
committerMichael P. Soulier <msoulier@digitaltorque.ca>2011-07-26 03:32:33 -0400
commit64478a31a66dca1e64448cfbd7a24b8f81a9ad12 (patch)
treea2d08d8e2bfc21f2f4ef1084f218c1ad2d7d0096
parenta5a42a3cc4949538fb83b55822d2df7398eb0771 (diff)
downloadtftpy-64478a31a66dca1e64448cfbd7a24b8f81a9ad12.tar.gz
Makefile update, and adding rpm specfile.
-rw-r--r--Makefile8
-rw-r--r--rpm/python-tftpy.spec52
-rwxr-xr-xrun_tests3
3 files changed, 52 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 811bdff..7c2e735 100644
--- a/Makefile
+++ b/Makefile
@@ -9,14 +9,6 @@ sdist:
test:
PYTHONPATH=$(PYTHONPATH) $(PY) t/test.py
-doc: apidocs
-
-apidocs: tftpy-doc
-
-tftpy-doc:
- rm -rf html/tftpy-doc
- PYTHONPATH=$(PYTHONPATH) epydoc --html -o html/tftpy-doc tftpy
-
clean:
rm -rf dist src tftpy-doc* MANIFEST
diff --git a/rpm/python-tftpy.spec b/rpm/python-tftpy.spec
new file mode 100644
index 0000000..3e81e12
--- /dev/null
+++ b/rpm/python-tftpy.spec
@@ -0,0 +1,52 @@
+Name: python-tftpy
+Version: 0.5.1
+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
diff --git a/run_tests b/run_tests
deleted file mode 100755
index 3dc0ecd..0000000
--- a/run_tests
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-PYTHONPATH=. python t/test.py