1 Summary: Geometry Engine - Open Source
2 Summary(pl): GEOS - silnik geometryczny z otwartymi ¼ród³ami
8 Source0: http://geos.refractions.net/%{name}-%{version}.tar.bz2
9 # Source0-md5: 272132bfb64422915d0f748f5e26932b
10 Patch0: %{name}-config.patch
11 Patch1: %{name}-gcc4.patch
12 Patch2: %{name}-swig.patch
13 URL: http://geos.refractions.net/
14 BuildRequires: automake
15 BuildRequires: libstdc++-devel
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 GEOS (Geometry Engine - Open Source) is a C++ port of the Java
20 Topology Suite (JTS). As such, it aims to contain the complete
21 functionality of JTS in C++. This includes all the OpenGIS "Simple
22 Features for SQL" spatial predicate functions and spatial operators,
23 as well as specific JTS topology functions such as IsValid().
26 GEOS (Geometry Engine - Open Source, czyli silnik geometryczny z
27 otwartymi ¼ród³ami) to port C++ biblioteki Java Topology Suite (JTS).
28 Celem biblioteki jako takiej jest implementacja pe³nej funkcjonalno¶ci
29 JTS w C++. Obejmuje to wszystkie funkcje predykatów przestrzennych
30 wg "Simple Features for SQL" OpenGIS oraz operatory przestrzenne, a
31 tak¿e specyficzne dla JTS funkcje topologiczne takie jak IsValid().
34 Summary: Header files for GEOS library
35 Summary(pl): Pliki nag³ówkowe biblioteki GEOS
36 Group: Development/Libraries
37 Requires: %{name} = %{version}-%{release}
38 Requires: libstdc++-devel
41 Header files for GEOS library.
43 %description devel -l pl
44 Pliki nag³ówkowe biblioteki GEOS.
47 Summary: Static GEOS library
48 Summary(pl): Statyczna biblioteka GEOS
49 Group: Development/Libraries
50 Requires: %{name}-devel = %{version}-%{release}
55 %description static -l pl
56 Statyczna biblioteka GEOS.
58 %package -n python-geos
59 Summary: Python bindings for Geometry Engine - Open Source
60 Summary(pl): Wi±zania Pythona do GEOS
61 Group: Development/Languages/Python
62 Requires: %{name} = %{version}-%{release}
64 %description -n python-geos
65 Python bindings for Geometry Engine - Open Source
67 %description -n python-geos -l pl
68 Wi±zania Pythona do GEOS
78 cp -f /usr/share/automake/config.* .
84 swig -c++ -python -modern -o geos_wrap.cxx ../geos.i
88 rm -rf $RPM_BUILD_ROOT
91 DESTDIR=$RPM_BUILD_ROOT \
95 python setup.py install --root=$RPM_BUILD_ROOT
98 rm -rf $RPM_BUILD_ROOT
100 %post -p /sbin/ldconfig
101 %postun -p /sbin/ldconfig
104 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_libdir}/libgeos.so.*.*.*
107 %attr(755,root,root) %{_libdir}/libgeos_c.so.*.*.*
110 %defattr(644,root,root,755)
111 %attr(755,root,root) %{_bindir}/geos-config
112 %attr(755,root,root) %{_libdir}/libgeos.so
113 %attr(755,root,root) %{_libdir}/libgeos_c.so
114 %{_libdir}/libgeos.la
115 %{_libdir}/libgeos_c.la
117 %{_includedir}/geos.h
118 %{_includedir}/geos_c.h
121 %defattr(644,root,root,755)
123 %{_libdir}/libgeos_c.a
125 %files -n python-geos
126 %defattr(644,root,root,755)
127 %{py_sitedir}/geos.pyc
128 %attr(755,root,root) %{py_sitedir}/_geos.so