]> git.pld-linux.org Git - packages/python-pyusb.git/commitdiff
- new
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 4 Aug 2005 21:24:29 +0000 (21:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python-pyusb.spec -> 1.1

python-pyusb.spec [new file with mode: 0644]

diff --git a/python-pyusb.spec b/python-pyusb.spec
new file mode 100644 (file)
index 0000000..bc121dd
--- /dev/null
@@ -0,0 +1,39 @@
+%define        module  pyusb
+Summary:       PyUSB provides USB access on the Python language
+Name:          python-%{module}
+Version:       0.1
+Release:       1
+License:       GPL
+Group:         Development/Languages/Python
+Source0:       http://dl.sourceforge.net/%{module}/%{module}-%{version}-src.tar.gz
+# Source0-md5: b2e11ffa387801f5f24b4aea0fa7d742
+URL:           http://pyusb.sf.net/
+%pyrequires_eq python
+BuildRequires: python-devel
+BuildRequires: libusb-devel
+BuildRequires: unzip
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+PyUSB provides USB access on the Python language.
+
+%prep
+%setup  -q -n %{module}
+
+%build
+python ./setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+python ./setup.py install \
+       --optimize 2 \
+       --root=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{py_sitedir}/*.so
This page took 0.156371 seconds and 4 git commands to generate.