1 Summary: Geometry Engine - Open Source
2 Summary(pl.UTF-8): GEOS - silnik geometryczny z otwartymi źródłami
8 Source0: http://geos.refractions.net/%{name}-%{version}.tar.bz2
9 # Source0-md5: 440be2b11fd3d711e950a47ea6f1b424
10 Patch0: %{name}-swig.patch
11 URL: http://geos.refractions.net/
12 BuildRequires: automake
13 BuildRequires: libstdc++-devel
14 BuildRequires: python >= 1:2.5
15 BuildRequires: python-devel >= 1:2.5
16 BuildRequires: rpm-pythonprov
17 BuildRequires: ruby-devel
18 BuildRequires: swig-python >= 1.3.29
19 BuildRequires: swig-ruby >= 1.3.29
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 GEOS (Geometry Engine - Open Source) is a C++ port of the Java
24 Topology Suite (JTS). As such, it aims to contain the complete
25 functionality of JTS in C++. This includes all the OpenGIS "Simple
26 Features for SQL" spatial predicate functions and spatial operators,
27 as well as specific JTS topology functions such as IsValid().
29 %description -l pl.UTF-8
30 GEOS (Geometry Engine - Open Source, czyli silnik geometryczny z
31 otwartymi źródłami) to port C++ biblioteki Java Topology Suite (JTS).
32 Celem biblioteki jako takiej jest implementacja pełnej funkcjonalności
33 JTS w C++. Obejmuje to wszystkie funkcje predykatów przestrzennych
34 wg "Simple Features for SQL" OpenGIS oraz operatory przestrzenne, a
35 także specyficzne dla JTS funkcje topologiczne takie jak IsValid().
38 Summary: Header files for GEOS library
39 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GEOS
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
42 Requires: libstdc++-devel
45 Header files for GEOS library.
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe biblioteki GEOS.
51 Summary: Static GEOS library
52 Summary(pl.UTF-8): Statyczna biblioteka GEOS
53 Group: Development/Libraries
54 Requires: %{name}-devel = %{version}-%{release}
59 %description static -l pl.UTF-8
60 Statyczna biblioteka GEOS.
62 %package -n python-geos
63 Summary: Python bindings for Geometry Engine - Open Source
64 Summary(pl.UTF-8): Wiązania Pythona do biblioteki GEOS
65 Group: Development/Languages/Python
66 Requires: %{name} = %{version}-%{release}
68 %description -n python-geos
69 Python bindings for Geometry Engine - Open Source.
71 %description -n python-geos -l pl.UTF-8
72 Wiązania Pythona do biblioteki GEOS.
75 Summary: Ruby bindings for Geometry Engine - Open Source
76 Summary(pl.UTF-8): Wiązania języka Ruby do biblioteki GEOS
77 Group: Development/Languages/Python
78 Requires: %{name} = %{version}-%{release}
80 %description -n ruby-geos
81 Ruby bindings for Geometry Engine - Open Source.
83 %description -n ruby-geos -l pl.UTF-8
84 Wiązania języka Ruby do biblioteki GEOS.
91 cp -f /usr/share/automake/config.* .
97 swig -c++ -python -modern -o geos_wrap.cxx ../geos.i
101 swig -c++ -ruby -autorename -o geos_wrap.cxx ../geos.i
102 %{__cxx} %{rpmcxxflags} -I../../source/headers -I%{ruby_archdir} -c geos_wrap.cxx
103 %{__cxx} -shared -o geos.so geos_wrap.o -lruby -L../../source/geom/.libs -lgeos
106 rm -rf $RPM_BUILD_ROOT
109 DESTDIR=$RPM_BUILD_ROOT \
113 install -D ruby/geos.so $RPM_BUILD_ROOT%{ruby_archdir}/geos.so
116 python setup.py install \
118 --root=$RPM_BUILD_ROOT
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.*.*.*
135 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_bindir}/geos-config
137 %attr(755,root,root) %{_libdir}/libgeos.so
138 %attr(755,root,root) %{_libdir}/libgeos_c.so
139 %{_libdir}/libgeos.la
140 %{_libdir}/libgeos_c.la
142 %{_includedir}/geos.h
143 %{_includedir}/geos_c.h
146 %defattr(644,root,root,755)
148 %{_libdir}/libgeos_c.a
150 %files -n python-geos
151 %defattr(644,root,root,755)
152 %attr(755,root,root) %{py_sitedir}/_geos.so
153 %{py_sitedir}/geos.py[co]
154 %{py_sitedir}/PyGEOS-*.egg-info
157 %defattr(644,root,root,755)
158 %attr(755,root,root) %{ruby_archdir}/geos.so