From 699c8ec6223c35e1bc9a063c8d465896a8cbf896 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Thu, 4 Aug 2005 21:24:29 +0000 Subject: [PATCH] - new Changed files: python-pyusb.spec -> 1.1 --- python-pyusb.spec | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 python-pyusb.spec diff --git a/python-pyusb.spec b/python-pyusb.spec new file mode 100644 index 0000000..bc121dd --- /dev/null +++ b/python-pyusb.spec @@ -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 -- 2.44.0