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: bfad7129680f0107b6ca9a2b92a2c440
16 Patch0: %{name}-ruby1.9.patch
17 URL: http://trac.osgeo.org/geos/
18 BuildRequires: autoconf
19 BuildRequires: automake
20 BuildRequires: libstdc++-devel
22 BuildRequires: python-devel
23 BuildRequires: rpm-pythonprov
24 BuildRequires: rpmbuild(macros) >= 1.219
25 %{?with_ruby:BuildRequires: ruby-devel}
26 BuildRequires: swig-python >= 1.3.29
27 %{?with_ruby:BuildRequires: swig-ruby >= 1.3.40-3}
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 GEOS (Geometry Engine - Open Source) is a C++ port of the Java
32 Topology Suite (JTS). As such, it aims to contain the complete
33 functionality of JTS in C++. This includes all the OpenGIS "Simple
34 Features for SQL" spatial predicate functions and spatial operators,
35 as well as specific JTS topology functions such as IsValid().
37 %description -l pl.UTF-8
38 GEOS (Geometry Engine - Open Source, czyli silnik geometryczny z
39 otwartymi źródłami) to port C++ biblioteki Java Topology Suite (JTS).
40 Celem biblioteki jako takiej jest implementacja pełnej funkcjonalności
41 JTS w C++. Obejmuje to wszystkie funkcje predykatów przestrzennych
42 wg "Simple Features for SQL" OpenGIS oraz operatory przestrzenne, a
43 także specyficzne dla JTS funkcje topologiczne takie jak IsValid().
46 Summary: Header files for GEOS library
47 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GEOS
48 Group: Development/Libraries
49 Requires: %{name} = %{version}-%{release}
50 Requires: libstdc++-devel
53 Header files for GEOS library.
55 %description devel -l pl.UTF-8
56 Pliki nagłówkowe biblioteki GEOS.
59 Summary: Static GEOS library
60 Summary(pl.UTF-8): Statyczna biblioteka GEOS
61 Group: Development/Libraries
62 Requires: %{name}-devel = %{version}-%{release}
67 %description static -l pl.UTF-8
68 Statyczna biblioteka GEOS.
70 %package -n python-geos
71 Summary: Python bindings for Geometry Engine - Open Source
72 Summary(pl.UTF-8): Wiązania Pythona do biblioteki GEOS
73 Group: Development/Languages/Python
74 Requires: %{name} = %{version}-%{release}
76 %description -n python-geos
77 Python bindings for Geometry Engine - Open Source.
79 %description -n python-geos -l pl.UTF-8
80 Wiązania Pythona do biblioteki GEOS.
83 Summary: Ruby bindings for Geometry Engine - Open Source
84 Summary(pl.UTF-8): Wiązania języka Ruby do biblioteki GEOS
85 Group: Development/Languages/Python
86 Requires: %{name} = %{version}-%{release}
88 %description -n ruby-geos
89 Ruby bindings for Geometry Engine - Open Source.
91 %description -n ruby-geos -l pl.UTF-8
92 Wiązania języka Ruby do biblioteki GEOS.
99 %{__aclocal} -I macros
105 %{?with_ruby:--enable-ruby}
112 rm -rf $RPM_BUILD_ROOT
115 DESTDIR=$RPM_BUILD_ROOT
117 %{?with_ruby:rm -f $RPM_BUILD_ROOT%{ruby_sitearchdir}/*.{la,a}}
118 rm -f $RPM_BUILD_ROOT%{py_sitedir}/geos/*.{la,a}
123 rm -rf $RPM_BUILD_ROOT
125 %post -p /sbin/ldconfig
126 %postun -p /sbin/ldconfig
129 %defattr(644,root,root,755)
130 %doc AUTHORS ChangeLog NEWS README TODO
131 %attr(755,root,root) %{_libdir}/libgeos-*.so
132 %attr(755,root,root) %{_libdir}/libgeos_c.so.*.*.*
133 %attr(755,root,root) %ghost %{_libdir}/libgeos_c.so.1
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_bindir}/geos-config
138 %attr(755,root,root) %{_libdir}/libgeos.so
139 %attr(755,root,root) %{_libdir}/libgeos_c.so
140 %{_libdir}/libgeos.la
141 %{_libdir}/libgeos_c.la
143 %{_includedir}/geos.h
144 %{_includedir}/geos_c.h
147 %defattr(644,root,root,755)
149 %{_libdir}/libgeos_c.a
151 %files -n python-geos
152 %defattr(644,root,root,755)
153 %dir %{py_sitedir}/geos
154 %attr(755,root,root) %{py_sitedir}/geos/_geos.so
155 %{py_sitescriptdir}/geos
156 %{py_sitescriptdir}/geos.pth
160 %defattr(644,root,root,755)
161 %attr(755,root,root) %{ruby_sitearchdir}/geos.so