Author: jpc Date: Sat Mar 5 18:10:31 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new spec
---- Files affected:
SPECS:
python-pyserial.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/python-pyserial.spec
diff -u /dev/null SPECS/python-pyserial.spec:1.1
--- /dev/null Sat Mar 5 19:10:31 2005
+++ SPECS/python-pyserial.spec Sat Mar 5 19:10:25 2005
@@ -0,0 +1,77 @@
+# $Revision$, $Date$
+%define module pyserial
+#
+Summary: Python module for handling the serial port
+#Summary(pl): -
+Name: python-%{module}
+Version: 2.1
+Release: 1
+License: PSF
+Group: Development/Languages/Python
+Source0: http://dl.sourceforge.net/%{module}/%{module}-%{version}.zip
+# Source0-md5: b2e11ffa387801f5f24b4aea0fa7d742
+URL: http://pyserial.sourceforge.net/
+BuildRequires: python
+%pyrequires_eq python-modules
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module encapsulates the access for the serial port. It provides
+backends for Python running on Windows, Linux, BSD (possibly any POSIX
+compilant system) and Jython. The module named "serial" automatically
+selects the appropriate backend.
+
+#%description -l pl
+
+%package examples
+Summary: Example programs using pySerial
+Summary(pl): Przykładowe programy w Pythonie używające pySerial
+Group: Libraries/Python
+Requires: %{name} = %{version}-%{release}
+
+%description examples
+Example programs using pySerial.
+
+%description -l pl examples
+Przykładowe programy w Pythonie używające pySerial.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+python setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_examplesdir}
+
+python setup.py install \
+ --root=$RPM_BUILD_ROOT \
+ --optimize=2
+
+cp -ar examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+rm $RPM_BUILD_ROOT%{py_sitescriptdir}/serial/*.py
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.txt README.txt
+%{py_sitescriptdir}/serial
+
+%files examples
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[EMAIL PROTECTED]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2005/03/05 18:10:25 jpc
+- new spec
+
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit