SPECS: geos.spec - update to 2.2.1 - add patch1 for python binding...
radzio
radzio at pld-linux.org
Wed Dec 21 09:51:59 CET 2005
Author: radzio Date: Wed Dec 21 08:51:59 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- update to 2.2.1
- add patch1 for python bindings
- add subpackage python-geos
---- Files affected:
SPECS:
geos.spec (1.8 -> 1.9)
---- Diffs:
================================================================
Index: SPECS/geos.spec
diff -u SPECS/geos.spec:1.8 SPECS/geos.spec:1.9
--- SPECS/geos.spec:1.8 Sun Dec 11 01:52:16 2005
+++ SPECS/geos.spec Wed Dec 21 09:51:53 2005
@@ -2,14 +2,15 @@
Summary: Geometry Engine - Open Source
Summary(pl): GEOS - silnik geometryczny z otwartymi źródłami
Name: geos
-Version: 2.2.0
+Version: 2.2.1
Release: 1
License: LGPL
Group: Libraries
Source0: http://geos.refractions.net/%{name}-%{version}.tar.bz2
-# Source0-md5: 444984e8f55ee9084d7c962255f14801
+# Source0-md5: 272132bfb64422915d0f748f5e26932b
Patch0: %{name}-config.patch
Patch1: %{name}-gcc4.patch
+Patch2: %{name}-swig.patch
URL: http://geos.refractions.net/
BuildRequires: automake
BuildRequires: libstdc++-devel
@@ -55,10 +56,24 @@
%description static -l pl
Statyczna biblioteka GEOS.
+%package -n python-geos
+Summary: Python bindings for Geometry Engine - Open Source
+Summary(pl): Wiązania Pythona do GEOS
+Group: Development/Languages/Python
+Requires: %{name} = %{version}-%{release}
+
+%description -n python-geos
+Python bindings for Geometry Engine - Open Source
+
+%description -n python-geos -l pl
+Wiązania Pythona do GEOS
+
+
%prep
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
cp -f /usr/share/automake/config.* .
@@ -66,6 +81,10 @@
%{__make} \
pkglibdir=%{_libdir}
+cd swig/python
+swig -c++ -python -modern -o geos_wrap.cxx ../geos.i
+python setup.py build
+
%install
rm -rf $RPM_BUILD_ROOT
@@ -73,6 +92,9 @@
DESTDIR=$RPM_BUILD_ROOT \
pkglibdir=%{_libdir}
+cd swig/python
+python setup.py install --root=$RPM_BUILD_ROOT
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -101,12 +123,22 @@
%{_libdir}/libgeos.a
%{_libdir}/libgeos_c.a
+%files -n python-geos
+%defattr(644,root,root,755)
+%{py_sitedir}/geos.pyc
+%attr(755,root,root) %{py_sitedir}/_geos.so
+
%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.9 2005/12/21 08:51:53 radzio
+- update to 2.2.1
+- add patch1 for python bindings
+- add subpackage python-geos
+
Revision 1.8 2005/12/11 00:52:16 qboosh
- updated to 2.2.0 (with new C API library)
- added gcc4 patch
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/geos.spec?r1=1.8&r2=1.9&f=u
More information about the pld-cvs-commit
mailing list