Summary: Geometry Engine - Open Source
Summary(pl.UTF-8): GEOS - silnik geometryczny z otwartymi źródłami
Name: geos
-Version: 3.3.2
-Release: 1
+Version: 3.3.8
+Release: 2
License: LGPL v2.1
Group: Libraries
Source0: http://download.osgeo.org/geos/%{name}-%{version}.tar.bz2
-# Source0-md5: 5b7270c73fd1c516f368af8fd1962323
+# Source0-md5: 75be476d0831a2d14958fed76ca266de
Patch0: %{name}-ruby1.9.patch
+Patch1: %{name}-am.patch
URL: http://trac.osgeo.org/geos/
BuildRequires: autoconf >= 2.52
BuildRequires: automake
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%{__aclocal} -I macros
%configure \
%{?with_php:--enable-php} \
--enable-python \
- %{?with_ruby:--enable-ruby}
+%if %{with ruby}
+ RUBY_EXTENSION_DIR=%{ruby_vendorarchdir} \
+ --enable-ruby \
+%endif
+
%{__make} \
pkglibdir=%{_libdir}
%if %{with ruby}
%files -n ruby-geos
%defattr(644,root,root,755)
-%attr(755,root,root) %{ruby_sitearchdir}/geos.so
+%attr(755,root,root) %{ruby_vendorarchdir}/geos.so
%endif