[packages/python-ctypesgen] - updated URLs, updated to 20150512 snap (release 1.snap.1 because of snap numbering change from svn

qboosh qboosh at pld-linux.org
Sat Apr 2 21:48:29 CEST 2016


commit 9ea10f041d8a6cc68410fd4b7cdb47c825980e7c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Apr 2 21:48:35 2016 +0200

    - updated URLs, updated to 20150512 snap (release 1.snap.1 because of snap numbering change from svn rev to date)

 python-ctypesgen.spec | 42 ++++++++++++++++++++++--------------------
 1 file changed, 22 insertions(+), 20 deletions(-)
---
diff --git a/python-ctypesgen.spec b/python-ctypesgen.spec
index 57b2f4f..d15c173 100644
--- a/python-ctypesgen.spec
+++ b/python-ctypesgen.spec
@@ -1,23 +1,23 @@
 # TODO: programs shouldn't have ".py" extension
 %define 	module	ctypesgen
-%define		snap	r69
-%define		rel	6
+%define		snap	20150512
+%define		gitref	3d2d9803339503d2988382aa861b47a6a4872c32
+%define		rel	1
 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}
+Release:	1.%{snap}.%{rel}
 License:	BSD
 Group:		Libraries/Python
-# svn export http://ctypesgen.googlecode.com/svn/trunk/ ctypesgen
-Source0:	%{module}-%{snap}.tar.bz2
-# Source0-md5:	73192491f45126a1681bd1a7553506d1
-URL:		http://code.google.com/p/ctypesgen/
-BuildRequires:	rpmbuild(macros) >= 1.710
-BuildRequires:	python
+Source0:	https://github.com/davidjamesca/ctypesgen/archive/%{gitref}/%{module}-%{snap}.tar.gz
+# Source0-md5:	abbc70e2fb7c5391ade6b56bd503c6ed
+URL:		https://github.com/davidjamesca/ctypesgen
+BuildRequires:	python >= 1:2.3
 BuildRequires:	python-devel >= 1:2.3
-BuildRequires:	python-modules
+BuildRequires:	python-modules >= 1:2.3
 BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.710
 %pyrequires_eq	python-modules
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -31,7 +31,7 @@ Ten program automatycznie generuje wrappery ctypes dla plików
 nagłówkowych w C.
 
 %prep
-%setup -q -n %{module}
+%setup -q -n %{module}-%{gitref}
 
 %build
 %py_build
@@ -42,10 +42,10 @@ rm -rf $RPM_BUILD_ROOT
 %py_install
 
 # defaultheader.py and preamble.py are templates not modules, so .py files
-# are required instead of compiled versions (and py_postclean cannot be used)
+# are required instead of compiled versions
 # 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]
+%py_postclean -x defaultheader.py,preamble.py,libraryloader.py
+%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/ctypesgencore/printer_python/{defaultheader,preamble}.py[co]
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -60,11 +60,13 @@ rm -rf $RPM_BUILD_ROOT
 %{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/printer_json
+%{py_sitescriptdir}/ctypesgencore/printer_json/*.py[co]
+%dir %{py_sitescriptdir}/ctypesgencore/printer_python
+%{py_sitescriptdir}/ctypesgencore/printer_python/__init__.py[co]
+%{py_sitescriptdir}/ctypesgencore/printer_python/printer.py[co]
+%{py_sitescriptdir}/ctypesgencore/printer_python/test.py[co]
+%{py_sitescriptdir}/ctypesgencore/printer_python/defaultheader.py
+%{py_sitescriptdir}/ctypesgencore/printer_python/preamble.py
 %dir %{py_sitescriptdir}/ctypesgencore/processor
 %{py_sitescriptdir}/ctypesgencore/processor/*.py[co]
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-ctypesgen.git/commitdiff/9ea10f041d8a6cc68410fd4b7cdb47c825980e7c



More information about the pld-cvs-commit mailing list