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 biblioteki 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 biblioteki GEOS.
77 cp -f /usr/share/automake/config.* .
83 swig -c++ -python -modern -o geos_wrap.cxx ../geos.i
87 rm -rf $RPM_BUILD_ROOT
90 DESTDIR=$RPM_BUILD_ROOT \
94 python setup.py install --root=$RPM_BUILD_ROOT
97 rm -rf $RPM_BUILD_ROOT
99 %post -p /sbin/ldconfig
100 %postun -p /sbin/ldconfig
103 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_libdir}/libgeos.so.*.*.*
106 %attr(755,root,root) %{_libdir}/libgeos_c.so.*.*.*
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_bindir}/geos-config
111 %attr(755,root,root) %{_libdir}/libgeos.so
112 %attr(755,root,root) %{_libdir}/libgeos_c.so
113 %{_libdir}/libgeos.la
114 %{_libdir}/libgeos_c.la
116 %{_includedir}/geos.h
117 %{_includedir}/geos_c.h
120 %defattr(644,root,root,755)
122 %{_libdir}/libgeos_c.a
124 %files -n python-geos
125 %defattr(644,root,root,755)
126 %{py_sitedir}/geos.pyc
127 %attr(755,root,root) %{py_sitedir}/_geos.so