# Conditional build:
%bcond_without php # PHP binding
%bcond_without ruby # ruby binding
-#
+
Summary: Geometry Engine - Open Source
Summary(pl.UTF-8): GEOS - silnik geometryczny z otwartymi źródłami
Name: geos
-Version: 3.3.8
-Release: 2
+Version: 3.4.2
+Release: 5
License: LGPL v2.1
Group: Libraries
Source0: http://download.osgeo.org/geos/%{name}-%{version}.tar.bz2
-# Source0-md5: 75be476d0831a2d14958fed76ca266de
+# Source0-md5: fc5df2d926eb7e67f988a43a92683bae
Patch0: %{name}-ruby1.9.patch
-Patch1: %{name}-am.patch
+Patch1: rubydir.patch
URL: http://trac.osgeo.org/geos/
BuildRequires: autoconf >= 2.52
BuildRequires: automake
BuildRequires: libstdc++-devel
-%{?with_php:BuildRequires: php-devel}
+%{?with_php:BuildRequires: %{php_name}-devel}
BuildRequires: python
BuildRequires: python-devel
BuildRequires: rpm-pythonprov
%description static -l pl.UTF-8
Statyczna biblioteka GEOS.
-%package -n php-geos
+%package -n %{php_name}-geos
Summary: PHP bindings for Geometry Engine - Open Source
Summary(pl.UTF-8): Wiązania PHP do biblioteki GEOS
Group: Development/Languages/PHP
Requires: %{name} = %{version}-%{release}
%{?requires_php_extension}
-%description -n php-geos
+%description -n %{php_name}-geos
PHP bindings for Geometry Engine - Open Source.
-%description -n php-geos -l pl.UTF-8
+%description -n %{php_name}-geos -l pl.UTF-8
Wiązania PHP do biblioteki GEOS.
%package -n python-geos
%configure \
%{?with_php:--enable-php} \
--enable-python \
-%if %{with ruby}
- RUBY_EXTENSION_DIR=%{ruby_vendorarchdir} \
- --enable-ruby \
-%endif
-
+ %{?with_ruby:--enable-ruby}
%{__make} \
pkglibdir=%{_libdir}
EOF
%endif
-%{?with_ruby:%{__rm} $RPM_BUILD_ROOT%{ruby_sitearchdir}/*.{la,a}}
+%{?with_ruby:%{__rm} $RPM_BUILD_ROOT%{ruby_vendorarchdir}/*.{la,a}}
%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/geos/*.{la,a}
%py_postclean
%{_libdir}/libgeos_c.a
%if %{with php}
-%files -n php-geos
+%files -n %{php_name}-geos
%defattr(644,root,root,755)
%doc php/{README,TODO}
%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/geos.ini