SPECS: geos.spec - updated to 2.2.2, removed config, gcc4 patches -...
qboosh
qboosh at pld-linux.org
Mon May 29 00:46:20 CEST 2006
Author: qboosh Date: Sun May 28 22:46:20 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- updated to 2.2.2, removed config,gcc4 patches
- updated swig patch, added ruby binding
---- Files affected:
SPECS:
geos.spec (1.10 -> 1.11)
---- Diffs:
================================================================
Index: SPECS/geos.spec
diff -u SPECS/geos.spec:1.10 SPECS/geos.spec:1.11
--- SPECS/geos.spec:1.10 Wed Dec 21 12:34:35 2005
+++ SPECS/geos.spec Mon May 29 00:46:15 2006
@@ -2,18 +2,22 @@
Summary: Geometry Engine - Open Source
Summary(pl): GEOS - silnik geometryczny z otwartymi źródłami
Name: geos
-Version: 2.2.1
+Version: 2.2.2
Release: 1
License: LGPL
Group: Libraries
Source0: http://geos.refractions.net/%{name}-%{version}.tar.bz2
-# Source0-md5: 272132bfb64422915d0f748f5e26932b
-Patch0: %{name}-config.patch
-Patch1: %{name}-gcc4.patch
-Patch2: %{name}-swig.patch
+# Source0-md5: daf1f2d863103cc08b17747590af2cef
+Patch0: %{name}-swig.patch
URL: http://geos.refractions.net/
BuildRequires: automake
BuildRequires: libstdc++-devel
+BuildRequires: python
+BuildRequires: python-devel
+BuildRequires: rpm-pythonprov
+BuildRequires: ruby-devel
+BuildRequires: swig-python >= 1.3.29
+BuildRequires: swig-ruby >= 1.3.29
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -68,11 +72,21 @@
%description -n python-geos -l pl
Wiązania Pythona do biblioteki GEOS.
+%package -n ruby-geos
+Summary: Ruby bindings for Geometry Engine - Open Source
+Summary(pl): Wiązania języka Ruby do biblioteki GEOS
+Group: Development/Languages/Python
+Requires: %{name} = %{version}-%{release}
+
+%description -n ruby-geos
+Ruby bindings for Geometry Engine - Open Source.
+
+%description -n ruby-geos -l pl
+Wiązania języka Ruby do biblioteki GEOS.
+
%prep
%setup -q
%patch0 -p1
-%patch1 -p1
-%patch2 -p1
%build
cp -f /usr/share/automake/config.* .
@@ -84,6 +98,11 @@
swig -c++ -python -modern -o geos_wrap.cxx ../geos.i
python setup.py build
+cd ../ruby
+swig -c++ -ruby -autorename -o geos_wrap.cxx ../geos.i
+%{__cxx} %{rpmcxxflags} -I../../source/headers -I%{ruby_archdir} -c geos_wrap.cxx
+%{__cxx} -shared -o geos.so geos_wrap.o -lruby -L../../source/geom/.libs -lgeos
+
%install
rm -rf $RPM_BUILD_ROOT
@@ -94,6 +113,9 @@
cd swig/python
python setup.py install --root=$RPM_BUILD_ROOT
+cd ../ruby
+install -D geos.so $RPM_BUILD_ROOT%{ruby_archdir}/geos.so
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -127,12 +149,20 @@
%{py_sitedir}/geos.pyc
%attr(755,root,root) %{py_sitedir}/_geos.so
+%files -n ruby-geos
+%defattr(644,root,root,755)
+%attr(755,root,root) %{ruby_archdir}/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.11 2006/05/28 22:46:15 qboosh
+- updated to 2.2.2, removed config,gcc4 patches
+- updated swig patch, added ruby binding
+
Revision 1.10 2005/12/21 11:34:35 qboosh
- cosmetics
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/geos.spec?r1=1.10&r2=1.11&f=u
More information about the pld-cvs-commit
mailing list