SPECS: python-ctypesgen.spec (NEW) - initial
arekm
arekm at pld-linux.org
Thu Mar 12 10:25:46 CET 2009
Author: arekm Date: Thu Mar 12 09:25:46 2009 GMT
Module: SPECS Tag: HEAD
---- Log message:
- initial
---- Files affected:
SPECS:
python-ctypesgen.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/python-ctypesgen.spec
diff -u /dev/null SPECS/python-ctypesgen.spec:1.1
--- /dev/null Thu Mar 12 10:25:46 2009
+++ SPECS/python-ctypesgen.spec Thu Mar 12 10:25:40 2009
@@ -0,0 +1,61 @@
+# $Revision$, $Date$
+
+%define module ctypesgen
+%define snap r68
+Summary: A pure-python wrapper generator for ctypes
+Name: python-%{module}
+Version: 0.0
+Release: 0.%{snap}.1
+License: BSD
+Group: Libraries/Python
+Source0: %{module}-%{snap}.tar.bz2
+# Source0-md5: 5deda4849c2677beb054ec1b59aba5a9
+URL: http://code.google.com/p/ctypesgen/
+BuildRequires: python
+BuildRequires: python-devel >= 1:2.3
+%pyrequires_eq python-modules
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This project automatically generates ctypes wrappers for header files
+written in C.
+
+%prep
+%setup -q -n %{module}
+
+%build
+python setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+python setup.py install \
+ --root=$RPM_BUILD_ROOT \
+ --optimize=2
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{py_sitescriptdir}/*.egg-info
+%dir %{py_sitescriptdir}/ctypesgencore
+%{py_sitescriptdir}/ctypesgencore/*.py[co]
+%dir %{py_sitescriptdir}/ctypesgencore/parser
+%{py_sitescriptdir}/ctypesgencore/parser/*.py[co]
+%dir %{py_sitescriptdir}/ctypesgencore/printer
+%{py_sitescriptdir}/ctypesgencore/printer/*.py[co]
+%dir %{py_sitescriptdir}/ctypesgencore/processor
+%{py_sitescriptdir}/ctypesgencore/processor/*.py[co]
+%attr(755,root,root) %{_bindir}/ctypesgen.py
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2009/03/12 09:25:40 arekm
+- initial
+
================================================================
More information about the pld-cvs-commit
mailing list