packages: python-ctypesgen/python-ctypesgen.spec - pl - choose only needed ...
qboosh
qboosh at pld-linux.org
Sat Oct 15 21:12:53 CEST 2011
Author: qboosh Date: Sat Oct 15 19:12:53 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- pl
- choose only needed .py/.py[co] files
- rel 4
---- Files affected:
packages/python-ctypesgen:
python-ctypesgen.spec (1.6 -> 1.7)
---- Diffs:
================================================================
Index: packages/python-ctypesgen/python-ctypesgen.spec
diff -u packages/python-ctypesgen/python-ctypesgen.spec:1.6 packages/python-ctypesgen/python-ctypesgen.spec:1.7
--- packages/python-ctypesgen/python-ctypesgen.spec:1.6 Sun Jan 23 15:50:16 2011
+++ packages/python-ctypesgen/python-ctypesgen.spec Sat Oct 15 21:12:48 2011
@@ -1,9 +1,10 @@
# $Revision$, $Date$
-
+# TODO: programs shouldn't have ".py" extension
%define module ctypesgen
%define snap r69
-%define rel 3
+%define rel 4
Summary: A pure-python wrapper generator for ctypes
+Summary(pl.UTF-8): Generator wrapperów dla ctypes napisany w czystym Pythonie
Name: python-%{module}
Version: 0.0
Release: 0.%{snap}.%{rel}
@@ -25,36 +26,50 @@
This project automatically generates ctypes wrappers for header files
written in C.
+%description -l pl.UTF-8
+Ten program automatycznie generuje wrappery ctypes dla plików
+nagłówkowych w C.
+
%prep
%setup -q -n %{module}
%build
-python setup.py build
+%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
-python setup.py install \
+%{__python} setup.py install \
--root=$RPM_BUILD_ROOT \
--optimize=2
+# defaultheader.py and preamble.py are templates not modules, so .py files
+# are required instead of compiled versions (and py_postclean cannot be used)
+# libraryloader.py is used both as module and template, so both forms are required
+find $RPM_BUILD_ROOT%{py_sitescriptdir}/ctypesgencore -name '*.py' -a ! -name 'defaultheader.py' -a ! -name 'preamble.py' -a ! -name 'libraryloader.py' -print0 | xargs -0 %{__rm}
+%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/ctypesgencore/printer/{defaultheader,preamble}.py[co]
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
+%doc LICENSE todo.txt
%attr(755,root,root) %{_bindir}/ctypesgen.py
-%{py_sitescriptdir}/*.egg-info
-%{py_sitescriptdir}/ctypesgencore
-
-#%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]
+%{py_sitescriptdir}/ctypesgen-0.0-py*.egg-info
+%dir %{py_sitescriptdir}/ctypesgencore
+%{py_sitescriptdir}/ctypesgencore/*.py[co]
+%{py_sitescriptdir}/ctypesgencore/libraryloader.py
+%dir %{py_sitescriptdir}/ctypesgencore/parser
+%{py_sitescriptdir}/ctypesgencore/parser/*.py[co]
+%dir %{py_sitescriptdir}/ctypesgencore/printer
+%{py_sitescriptdir}/ctypesgencore/printer/__init__.py[co]
+%{py_sitescriptdir}/ctypesgencore/printer/printer.py[co]
+%{py_sitescriptdir}/ctypesgencore/printer/test.py[co]
+%{py_sitescriptdir}/ctypesgencore/printer/defaultheader.py
+%{py_sitescriptdir}/ctypesgencore/printer/preamble.py
+%dir %{py_sitescriptdir}/ctypesgencore/processor
+%{py_sitescriptdir}/ctypesgencore/processor/*.py[co]
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -62,6 +77,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.7 2011/10/15 19:12:48 qboosh
+- pl
+- choose only needed .py/.py[co] files
+- rel 4
+
Revision 1.6 2011/01/23 14:50:16 sparky
- BR: python-modules, rpm-pythonprov
@@ -79,4 +99,3 @@
Revision 1.1 2009/03/12 09:25:40 arekm
- initial
-
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/python-ctypesgen/python-ctypesgen.spec?r1=1.6&r2=1.7&f=u
More information about the pld-cvs-commit
mailing list