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://geos.refractions.net/downloads/%{name}-%{version}.tar.bz2
15 # Source0-md5: 3f7940abee9fec69a9787878cd3ae771
16 Patch0: %{name}-gcc43.patch
17 URL: http://geos.refractions.net/
18 BuildRequires: automake
19 BuildRequires: libstdc++-devel
21 BuildRequires: python-devel
22 BuildRequires: rpm-pythonprov
23 BuildRequires: rpmbuild(macros) >= 1.219
24 %{?with_ruby:BuildRequires: ruby-devel}
25 BuildRequires: swig-python >= 1.3.29
26 %{?with_ruby:BuildRequires: swig-ruby >= 1.3.29}
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 GEOS (Geometry Engine - Open Source) is a C++ port of the Java
31 Topology Suite (JTS). As such, it aims to contain the complete
32 functionality of JTS in C++. This includes all the OpenGIS "Simple
33 Features for SQL" spatial predicate functions and spatial operators,
34 as well as specific JTS topology functions such as IsValid().
36 %description -l pl.UTF-8
37 GEOS (Geometry Engine - Open Source, czyli silnik geometryczny z
38 otwartymi źródłami) to port C++ biblioteki Java Topology Suite (JTS).
39 Celem biblioteki jako takiej jest implementacja pełnej funkcjonalności
40 JTS w C++. Obejmuje to wszystkie funkcje predykatów przestrzennych
41 wg "Simple Features for SQL" OpenGIS oraz operatory przestrzenne, a
42 także specyficzne dla JTS funkcje topologiczne takie jak IsValid().
45 Summary: Header files for GEOS library
46 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GEOS
47 Group: Development/Libraries
48 Requires: %{name} = %{version}-%{release}
49 Requires: libstdc++-devel
52 Header files for GEOS library.
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe biblioteki GEOS.
58 Summary: Static GEOS library
59 Summary(pl.UTF-8): Statyczna biblioteka GEOS
60 Group: Development/Libraries
61 Requires: %{name}-devel = %{version}-%{release}
66 %description static -l pl.UTF-8
67 Statyczna biblioteka GEOS.
69 %package -n python-geos
70 Summary: Python bindings for Geometry Engine - Open Source
71 Summary(pl.UTF-8): Wiązania Pythona do biblioteki GEOS
72 Group: Development/Languages/Python
73 Requires: %{name} = %{version}-%{release}
75 %description -n python-geos
76 Python bindings for Geometry Engine - Open Source.
78 %description -n python-geos -l pl.UTF-8
79 Wiązania Pythona do biblioteki GEOS.
82 Summary: Ruby bindings for Geometry Engine - Open Source
83 Summary(pl.UTF-8): Wiązania języka Ruby do biblioteki GEOS
84 Group: Development/Languages/Python
85 Requires: %{name} = %{version}-%{release}
87 %description -n ruby-geos
88 Ruby bindings for Geometry Engine - Open Source.
90 %description -n ruby-geos -l pl.UTF-8
91 Wiązania języka Ruby do biblioteki GEOS.
98 cp -f /usr/share/automake/config.* .
101 %{?with_ruby:--enable-ruby}
108 rm -rf $RPM_BUILD_ROOT
111 DESTDIR=$RPM_BUILD_ROOT
113 %{?with_ruby:rm -f $RPM_BUILD_ROOT%{ruby_sitearchdir}/*.{la,a}}
114 rm -f $RPM_BUILD_ROOT%{py_sitedir}/geos/*.{la,a}
119 rm -rf $RPM_BUILD_ROOT
121 %post -p /sbin/ldconfig
122 %postun -p /sbin/ldconfig
125 %defattr(644,root,root,755)
126 %doc AUTHORS ChangeLog NEWS README TODO
127 %attr(755,root,root) %{_libdir}/libgeos-3.0.0.so
128 %attr(755,root,root) %{_libdir}/libgeos_c.so.*.*.*
129 %attr(755,root,root) %ghost %{_libdir}/libgeos_c.so.1
132 %defattr(644,root,root,755)
133 %attr(755,root,root) %{_bindir}/geos-config
134 %attr(755,root,root) %{_libdir}/libgeos.so
135 %attr(755,root,root) %{_libdir}/libgeos_c.so
136 %{_libdir}/libgeos.la
137 %{_libdir}/libgeos_c.la
139 %{_includedir}/geos.h
140 %{_includedir}/geos_c.h
143 %defattr(644,root,root,755)
145 %{_libdir}/libgeos_c.a
147 %files -n python-geos
148 %defattr(644,root,root,755)
149 %dir %{py_sitedir}/geos
150 %attr(755,root,root) %{py_sitedir}/geos/_geos.so
151 %{py_sitescriptdir}/geos
152 %{py_sitescriptdir}/geos.pth
156 %defattr(644,root,root,755)
157 %attr(755,root,root) %{ruby_sitearchdir}/geos.so