2 # - unpackaged: /usr/bin/XMLTester
5 %bcond_without ruby # ruby binding
7 Summary: Geometry Engine - Open Source
8 Summary(pl.UTF-8): GEOS - silnik geometryczny z otwartymi źródłami
14 Source0: http://download.osgeo.org/geos/%{name}-%{version}.tar.bz2
15 # Source0-md5: c5d264acac22fe7720f85dadc1fc17c6
16 Patch0: %{name}-ruby1.9.patch
17 Patch1: %{name}-swig2.patch
18 URL: http://trac.osgeo.org/geos/
19 BuildRequires: autoconf >= 2.52
20 BuildRequires: automake
21 BuildRequires: libstdc++-devel
23 BuildRequires: python-devel
24 BuildRequires: rpm-pythonprov
25 BuildRequires: rpmbuild(macros) >= 1.219
26 %{?with_ruby:BuildRequires: ruby-devel}
27 BuildRequires: swig-python >= 1.3.29
28 %{?with_ruby:BuildRequires: swig-ruby >= 1.3.40-3}
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 GEOS (Geometry Engine - Open Source) is a C++ port of the Java
33 Topology Suite (JTS). As such, it aims to contain the complete
34 functionality of JTS in C++. This includes all the OpenGIS "Simple
35 Features for SQL" spatial predicate functions and spatial operators,
36 as well as specific JTS topology functions such as IsValid().
38 %description -l pl.UTF-8
39 GEOS (Geometry Engine - Open Source, czyli silnik geometryczny z
40 otwartymi źródłami) to port C++ biblioteki Java Topology Suite (JTS).
41 Celem biblioteki jako takiej jest implementacja pełnej funkcjonalności
42 JTS w C++. Obejmuje to wszystkie funkcje predykatów przestrzennych
43 wg "Simple Features for SQL" OpenGIS oraz operatory przestrzenne, a
44 także specyficzne dla JTS funkcje topologiczne takie jak IsValid().
47 Summary: Header files for GEOS library
48 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GEOS
49 Group: Development/Libraries
50 Requires: %{name} = %{version}-%{release}
51 Requires: libstdc++-devel
54 Header files for GEOS library.
56 %description devel -l pl.UTF-8
57 Pliki nagłówkowe biblioteki GEOS.
60 Summary: Static GEOS library
61 Summary(pl.UTF-8): Statyczna biblioteka GEOS
62 Group: Development/Libraries
63 Requires: %{name}-devel = %{version}-%{release}
68 %description static -l pl.UTF-8
69 Statyczna biblioteka GEOS.
71 %package -n python-geos
72 Summary: Python bindings for Geometry Engine - Open Source
73 Summary(pl.UTF-8): Wiązania Pythona do biblioteki GEOS
74 Group: Development/Languages/Python
75 Requires: %{name} = %{version}-%{release}
77 %description -n python-geos
78 Python bindings for Geometry Engine - Open Source.
80 %description -n python-geos -l pl.UTF-8
81 Wiązania Pythona do biblioteki GEOS.
84 Summary: Ruby bindings for Geometry Engine - Open Source
85 Summary(pl.UTF-8): Wiązania języka Ruby do biblioteki GEOS
86 Group: Development/Languages/Python
87 Requires: %{name} = %{version}-%{release}
89 %description -n ruby-geos
90 Ruby bindings for Geometry Engine - Open Source.
92 %description -n ruby-geos -l pl.UTF-8
93 Wiązania języka Ruby do biblioteki GEOS.
101 %{__aclocal} -I macros
107 %{?with_ruby:--enable-ruby}
114 rm -rf $RPM_BUILD_ROOT
117 DESTDIR=$RPM_BUILD_ROOT
119 %{?with_ruby:rm -f $RPM_BUILD_ROOT%{ruby_sitearchdir}/*.{la,a}}
120 rm -f $RPM_BUILD_ROOT%{py_sitedir}/geos/*.{la,a}
125 rm -rf $RPM_BUILD_ROOT
127 %post -p /sbin/ldconfig
128 %postun -p /sbin/ldconfig
131 %defattr(644,root,root,755)
132 %doc AUTHORS ChangeLog NEWS README TODO
133 %attr(755,root,root) %{_libdir}/libgeos-*.so
134 %attr(755,root,root) %{_libdir}/libgeos_c.so.*.*.*
135 %attr(755,root,root) %ghost %{_libdir}/libgeos_c.so.1
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_bindir}/geos-config
140 %attr(755,root,root) %{_libdir}/libgeos.so
141 %attr(755,root,root) %{_libdir}/libgeos_c.so
142 %{_libdir}/libgeos.la
143 %{_libdir}/libgeos_c.la
145 %{_includedir}/geos.h
146 %{_includedir}/geos_c.h
149 %defattr(644,root,root,755)
151 %{_libdir}/libgeos_c.a
153 %files -n python-geos
154 %defattr(644,root,root,755)
155 %dir %{py_sitedir}/geos
156 %attr(755,root,root) %{py_sitedir}/geos/_geos.so
157 %{py_sitescriptdir}/geos
158 %{py_sitescriptdir}/geos.pth
162 %defattr(644,root,root,755)
163 %attr(755,root,root) %{ruby_sitearchdir}/geos.so