]>
Commit | Line | Data |
---|---|---|
33332b8a | 1 | # |
38386277 | 2 | # Conditional build: |
33332b8a | 3 | %bcond_without ruby # ruby binding |
38386277 | 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 |
11971862 | 8 | Version: 3.0.0 |
33332b8a JB |
9 | Release: 1 |
10 | License: LGPL v2.1 | |
7070463c | 11 | Group: Libraries |
33332b8a JB |
12 | Source0: http://geos.refractions.net/downloads/%{name}-%{version}.tar.bz2 |
13 | # Source0-md5: 3f7940abee9fec69a9787878cd3ae771 | |
7070463c JB |
14 | URL: http://geos.refractions.net/ |
15 | BuildRequires: automake | |
16 | BuildRequires: libstdc++-devel | |
08e05e00 JB |
17 | BuildRequires: python >= 1:2.5 |
18 | BuildRequires: python-devel >= 1:2.5 | |
68bc5314 | 19 | BuildRequires: rpm-pythonprov |
33332b8a | 20 | BuildRequires: rpmbuild(macros) >= 1.219 |
38386277 | 21 | %{?with_ruby:BuildRequires: ruby-devel} |
68bc5314 | 22 | BuildRequires: swig-python >= 1.3.29 |
38386277 | 23 | %{?with_ruby:BuildRequires: swig-ruby >= 1.3.29} |
7070463c JB |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | GEOS (Geometry Engine - Open Source) is a C++ port of the Java | |
28 | Topology Suite (JTS). As such, it aims to contain the complete | |
29 | functionality of JTS in C++. This includes all the OpenGIS "Simple | |
30 | Features for SQL" spatial predicate functions and spatial operators, | |
31 | as well as specific JTS topology functions such as IsValid(). | |
32 | ||
e0dd9005 | 33 | %description -l pl.UTF-8 |
7070463c | 34 | GEOS (Geometry Engine - Open Source, czyli silnik geometryczny z |
e0dd9005 JR |
35 | otwartymi źródłami) to port C++ biblioteki Java Topology Suite (JTS). |
36 | Celem biblioteki jako takiej jest implementacja pełnej funkcjonalności | |
37 | JTS w C++. Obejmuje to wszystkie funkcje predykatów przestrzennych | |
7070463c | 38 | wg "Simple Features for SQL" OpenGIS oraz operatory przestrzenne, a |
e0dd9005 | 39 | także specyficzne dla JTS funkcje topologiczne takie jak IsValid(). |
7070463c JB |
40 | |
41 | %package devel | |
42 | Summary: Header files for GEOS library | |
fd0ef9fd | 43 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GEOS |
7070463c JB |
44 | Group: Development/Libraries |
45 | Requires: %{name} = %{version}-%{release} | |
46 | Requires: libstdc++-devel | |
47 | ||
48 | %description devel | |
49 | Header files for GEOS library. | |
50 | ||
e0dd9005 JR |
51 | %description devel -l pl.UTF-8 |
52 | Pliki nagłówkowe biblioteki GEOS. | |
7070463c JB |
53 | |
54 | %package static | |
55 | Summary: Static GEOS library | |
fd0ef9fd | 56 | Summary(pl.UTF-8): Statyczna biblioteka GEOS |
7070463c JB |
57 | Group: Development/Libraries |
58 | Requires: %{name}-devel = %{version}-%{release} | |
59 | ||
60 | %description static | |
61 | Static GEOS library. | |
62 | ||
e0dd9005 | 63 | %description static -l pl.UTF-8 |
7070463c JB |
64 | Statyczna biblioteka GEOS. |
65 | ||
2172c3d9 | 66 | %package -n python-geos |
67 | Summary: Python bindings for Geometry Engine - Open Source | |
fd0ef9fd | 68 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki GEOS |
adc066a8 | 69 | Group: Development/Languages/Python |
2172c3d9 | 70 | Requires: %{name} = %{version}-%{release} |
71 | ||
72 | %description -n python-geos | |
adc066a8 | 73 | Python bindings for Geometry Engine - Open Source. |
2172c3d9 | 74 | |
e0dd9005 JR |
75 | %description -n python-geos -l pl.UTF-8 |
76 | Wiązania Pythona do biblioteki GEOS. | |
2172c3d9 | 77 | |
68bc5314 JB |
78 | %package -n ruby-geos |
79 | Summary: Ruby bindings for Geometry Engine - Open Source | |
fd0ef9fd | 80 | Summary(pl.UTF-8): Wiązania języka Ruby do biblioteki GEOS |
68bc5314 JB |
81 | Group: Development/Languages/Python |
82 | Requires: %{name} = %{version}-%{release} | |
83 | ||
84 | %description -n ruby-geos | |
85 | Ruby bindings for Geometry Engine - Open Source. | |
86 | ||
e0dd9005 JR |
87 | %description -n ruby-geos -l pl.UTF-8 |
88 | Wiązania języka Ruby do biblioteki GEOS. | |
68bc5314 | 89 | |
7070463c | 90 | %prep |
33332b8a | 91 | %setup -q |
7070463c JB |
92 | |
93 | %build | |
94 | cp -f /usr/share/automake/config.* . | |
11971862 | 95 | %configure \ |
96 | --enable-python \ | |
97 | %{?with_ruby:--enable-ruby} | |
98 | ||
7070463c JB |
99 | %{__make} \ |
100 | pkglibdir=%{_libdir} | |
101 | ||
68bc5314 | 102 | |
7070463c JB |
103 | %install |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %{__make} install \ | |
33332b8a JB |
107 | DESTDIR=$RPM_BUILD_ROOT |
108 | ||
109 | %{?with_ruby:rm -f $RPM_BUILD_ROOT%{ruby_sitearchdir}/*.{la,a}} | |
110 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/geos/*.{la,a} | |
7070463c | 111 | |
02cf38a4 | 112 | %py_postclean |
68bc5314 | 113 | |
7070463c JB |
114 | %clean |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
117 | %post -p /sbin/ldconfig | |
118 | %postun -p /sbin/ldconfig | |
119 | ||
120 | %files | |
121 | %defattr(644,root,root,755) | |
02cf38a4 | 122 | %doc AUTHORS ChangeLog NEWS README TODO |
33332b8a | 123 | %attr(755,root,root) %{_libdir}/libgeos-3.0.0.so |
6a9f7429 | 124 | %attr(755,root,root) %{_libdir}/libgeos_c.so.*.*.* |
33332b8a | 125 | %attr(755,root,root) %ghost %{_libdir}/libgeos_c.so.1 |
7070463c JB |
126 | |
127 | %files devel | |
128 | %defattr(644,root,root,755) | |
129 | %attr(755,root,root) %{_bindir}/geos-config | |
6a9f7429 JB |
130 | %attr(755,root,root) %{_libdir}/libgeos.so |
131 | %attr(755,root,root) %{_libdir}/libgeos_c.so | |
132 | %{_libdir}/libgeos.la | |
133 | %{_libdir}/libgeos_c.la | |
7070463c | 134 | %{_includedir}/geos |
413fb971 | 135 | %{_includedir}/geos.h |
6a9f7429 | 136 | %{_includedir}/geos_c.h |
7070463c JB |
137 | |
138 | %files static | |
139 | %defattr(644,root,root,755) | |
6a9f7429 JB |
140 | %{_libdir}/libgeos.a |
141 | %{_libdir}/libgeos_c.a | |
2172c3d9 | 142 | |
143 | %files -n python-geos | |
144 | %defattr(644,root,root,755) | |
11971862 | 145 | %dir %{py_sitedir}/geos |
146 | %attr(755,root,root) %{py_sitedir}/geos/_geos.so | |
33332b8a JB |
147 | %{py_sitescriptdir}/geos |
148 | %{py_sitescriptdir}/geos.pth | |
68bc5314 | 149 | |
38386277 | 150 | %if %{with ruby} |
68bc5314 JB |
151 | %files -n ruby-geos |
152 | %defattr(644,root,root,755) | |
33332b8a | 153 | %attr(755,root,root) %{ruby_sitearchdir}/geos.so |
38386277 | 154 | %endif |