]>
Commit | Line | Data |
---|---|---|
33332b8a | 1 | # |
38386277 | 2 | # Conditional build: |
33332b8a | 3 | %bcond_without ruby # ruby binding |
6571feb9 | 4 | |
7070463c | 5 | Summary: Geometry Engine - Open Source |
fd0ef9fd | 6 | Summary(pl.UTF-8): GEOS - silnik geometryczny z otwartymi źródłami |
7070463c | 7 | Name: geos |
3f958661 JB |
8 | Version: 3.8.3 |
9 | Release: 1 | |
33332b8a | 10 | License: LGPL v2.1 |
7070463c | 11 | Group: Libraries |
a58867fa | 12 | Source0: http://download.osgeo.org/geos/%{name}-%{version}.tar.bz2 |
3f958661 | 13 | # Source0-md5: 57e4bde34a4f8aabed096e06a2002c4d |
664cfaa0 | 14 | Patch0: rubydir.patch |
82e55ccc | 15 | Patch1: %{name}-x32.patch |
3f958661 | 16 | URL: https://trac.osgeo.org/geos/ |
6aa353af | 17 | BuildRequires: autoconf >= 2.63 |
7070463c | 18 | BuildRequires: automake |
6aa353af | 19 | BuildRequires: libstdc++-devel >= 6:4.7 |
cfd118c2 ER |
20 | BuildRequires: python |
21 | BuildRequires: python-devel | |
68bc5314 | 22 | BuildRequires: rpm-pythonprov |
424c3af6 | 23 | BuildRequires: rpmbuild(macros) >= 1.519 |
38386277 | 24 | %{?with_ruby:BuildRequires: ruby-devel} |
68bc5314 | 25 | BuildRequires: swig-python >= 1.3.29 |
01dd35cb | 26 | %{?with_ruby:BuildRequires: swig-ruby >= 1.3.40-3} |
7070463c JB |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
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(). | |
35 | ||
e0dd9005 | 36 | %description -l pl.UTF-8 |
7070463c | 37 | GEOS (Geometry Engine - Open Source, czyli silnik geometryczny z |
e0dd9005 JR |
38 | otwartymi źródłami) to port C++ biblioteki Java Topology Suite (JTS). |
39 | Celem biblioteki jako takiej jest implementacja pełnej funkcjonalności | |
c12a77e5 ER |
40 | JTS w C++. Obejmuje to wszystkie funkcje predykatów przestrzennych wg |
41 | "Simple Features for SQL" OpenGIS oraz operatory przestrzenne, a także | |
42 | specyficzne dla JTS funkcje topologiczne takie jak IsValid(). | |
7070463c JB |
43 | |
44 | %package devel | |
45 | Summary: Header files for GEOS library | |
fd0ef9fd | 46 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GEOS |
7070463c JB |
47 | Group: Development/Libraries |
48 | Requires: %{name} = %{version}-%{release} | |
6aa353af | 49 | Requires: libstdc++-devel >= 6:4.7 |
7070463c JB |
50 | |
51 | %description devel | |
52 | Header files for GEOS library. | |
53 | ||
e0dd9005 JR |
54 | %description devel -l pl.UTF-8 |
55 | Pliki nagłówkowe biblioteki GEOS. | |
7070463c JB |
56 | |
57 | %package static | |
58 | Summary: Static GEOS library | |
fd0ef9fd | 59 | Summary(pl.UTF-8): Statyczna biblioteka GEOS |
7070463c JB |
60 | Group: Development/Libraries |
61 | Requires: %{name}-devel = %{version}-%{release} | |
62 | ||
63 | %description static | |
64 | Static GEOS library. | |
65 | ||
e0dd9005 | 66 | %description static -l pl.UTF-8 |
7070463c JB |
67 | Statyczna biblioteka GEOS. |
68 | ||
2172c3d9 | 69 | %package -n python-geos |
70 | Summary: Python bindings for Geometry Engine - Open Source | |
fd0ef9fd | 71 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki GEOS |
adc066a8 | 72 | Group: Development/Languages/Python |
2172c3d9 | 73 | Requires: %{name} = %{version}-%{release} |
74 | ||
75 | %description -n python-geos | |
adc066a8 | 76 | Python bindings for Geometry Engine - Open Source. |
2172c3d9 | 77 | |
e0dd9005 JR |
78 | %description -n python-geos -l pl.UTF-8 |
79 | Wiązania Pythona do biblioteki GEOS. | |
2172c3d9 | 80 | |
68bc5314 JB |
81 | %package -n ruby-geos |
82 | Summary: Ruby bindings for Geometry Engine - Open Source | |
fd0ef9fd | 83 | Summary(pl.UTF-8): Wiązania języka Ruby do biblioteki GEOS |
68bc5314 JB |
84 | Group: Development/Languages/Python |
85 | Requires: %{name} = %{version}-%{release} | |
86 | ||
87 | %description -n ruby-geos | |
88 | Ruby bindings for Geometry Engine - Open Source. | |
89 | ||
e0dd9005 JR |
90 | %description -n ruby-geos -l pl.UTF-8 |
91 | Wiązania języka Ruby do biblioteki GEOS. | |
68bc5314 | 92 | |
7070463c | 93 | %prep |
33332b8a | 94 | %setup -q |
01dd35cb | 95 | %patch0 -p1 |
82e55ccc | 96 | %patch1 -p1 |
7070463c JB |
97 | |
98 | %build | |
01dd35cb JR |
99 | %{__aclocal} -I macros |
100 | %{__autoconf} | |
101 | %{__autoheader} | |
102 | %{__automake} | |
11971862 | 103 | %configure \ |
104 | --enable-python \ | |
ce6851f1 | 105 | %{?with_ruby:--enable-ruby} |
11971862 | 106 | |
7070463c JB |
107 | %{__make} \ |
108 | pkglibdir=%{_libdir} | |
109 | ||
110 | %install | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
113 | %{__make} install \ | |
ccc0fb6d JB |
114 | DESTDIR=$RPM_BUILD_ROOT \ |
115 | pythondir=%{py_sitescriptdir} | |
33332b8a | 116 | |
ce6851f1 | 117 | %{?with_ruby:%{__rm} $RPM_BUILD_ROOT%{ruby_vendorarchdir}/*.{la,a}} |
424c3af6 | 118 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/geos/*.{la,a} |
7070463c | 119 | |
02cf38a4 | 120 | %py_postclean |
68bc5314 | 121 | |
7070463c JB |
122 | %clean |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
125 | %post -p /sbin/ldconfig | |
126 | %postun -p /sbin/ldconfig | |
127 | ||
128 | %files | |
129 | %defattr(644,root,root,755) | |
3f958661 | 130 | %doc AUTHORS NEWS README.md |
ccc0fb6d | 131 | %attr(755,root,root) %{_libdir}/libgeos-%{version}.so |
6a9f7429 | 132 | %attr(755,root,root) %{_libdir}/libgeos_c.so.*.*.* |
33332b8a | 133 | %attr(755,root,root) %ghost %{_libdir}/libgeos_c.so.1 |
7070463c JB |
134 | |
135 | %files devel | |
136 | %defattr(644,root,root,755) | |
137 | %attr(755,root,root) %{_bindir}/geos-config | |
6a9f7429 JB |
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 | |
7070463c | 142 | %{_includedir}/geos |
413fb971 | 143 | %{_includedir}/geos.h |
6a9f7429 | 144 | %{_includedir}/geos_c.h |
7070463c JB |
145 | |
146 | %files static | |
147 | %defattr(644,root,root,755) | |
6a9f7429 JB |
148 | %{_libdir}/libgeos.a |
149 | %{_libdir}/libgeos_c.a | |
2172c3d9 | 150 | |
151 | %files -n python-geos | |
152 | %defattr(644,root,root,755) | |
11971862 | 153 | %dir %{py_sitedir}/geos |
154 | %attr(755,root,root) %{py_sitedir}/geos/_geos.so | |
33332b8a JB |
155 | %{py_sitescriptdir}/geos |
156 | %{py_sitescriptdir}/geos.pth | |
68bc5314 | 157 | |
38386277 | 158 | %if %{with ruby} |
68bc5314 JB |
159 | %files -n ruby-geos |
160 | %defattr(644,root,root,755) | |
71f7add8 | 161 | %attr(755,root,root) %{ruby_vendorarchdir}/geos.so |
38386277 | 162 | %endif |