]> git.pld-linux.org Git - packages/geos.git/blame - geos.spec
- install ruvy module in vendorarch dir
[packages/geos.git] / geos.spec
CommitLineData
33332b8a 1#
38386277 2# Conditional build:
424c3af6 3%bcond_without php # PHP binding
33332b8a 4%bcond_without ruby # ruby binding
38386277 5#
7070463c 6Summary: Geometry Engine - Open Source
fd0ef9fd 7Summary(pl.UTF-8): GEOS - silnik geometryczny z otwartymi źródłami
7070463c 8Name: geos
4e5f0ee5 9Version: 3.3.8
71f7add8 10Release: 2
33332b8a 11License: LGPL v2.1
7070463c 12Group: Libraries
a58867fa 13Source0: http://download.osgeo.org/geos/%{name}-%{version}.tar.bz2
4e5f0ee5 14# Source0-md5: 75be476d0831a2d14958fed76ca266de
01dd35cb 15Patch0: %{name}-ruby1.9.patch
4f288115 16Patch1: %{name}-am.patch
a58867fa 17URL: http://trac.osgeo.org/geos/
de93cddd 18BuildRequires: autoconf >= 2.52
7070463c
JB
19BuildRequires: automake
20BuildRequires: libstdc++-devel
424c3af6 21%{?with_php:BuildRequires: php-devel}
cfd118c2
ER
22BuildRequires: python
23BuildRequires: python-devel
68bc5314 24BuildRequires: rpm-pythonprov
424c3af6 25BuildRequires: rpmbuild(macros) >= 1.519
38386277 26%{?with_ruby:BuildRequires: ruby-devel}
68bc5314 27BuildRequires: swig-python >= 1.3.29
01dd35cb 28%{?with_ruby:BuildRequires: swig-ruby >= 1.3.40-3}
7070463c
JB
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%description
32GEOS (Geometry Engine - Open Source) is a C++ port of the Java
33Topology Suite (JTS). As such, it aims to contain the complete
34functionality of JTS in C++. This includes all the OpenGIS "Simple
35Features for SQL" spatial predicate functions and spatial operators,
36as well as specific JTS topology functions such as IsValid().
37
e0dd9005 38%description -l pl.UTF-8
7070463c 39GEOS (Geometry Engine - Open Source, czyli silnik geometryczny z
e0dd9005
JR
40otwartymi źródłami) to port C++ biblioteki Java Topology Suite (JTS).
41Celem biblioteki jako takiej jest implementacja pełnej funkcjonalności
42JTS w C++. Obejmuje to wszystkie funkcje predykatów przestrzennych
7070463c 43wg "Simple Features for SQL" OpenGIS oraz operatory przestrzenne, a
e0dd9005 44także specyficzne dla JTS funkcje topologiczne takie jak IsValid().
7070463c
JB
45
46%package devel
47Summary: Header files for GEOS library
fd0ef9fd 48Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GEOS
7070463c
JB
49Group: Development/Libraries
50Requires: %{name} = %{version}-%{release}
51Requires: libstdc++-devel
52
53%description devel
54Header files for GEOS library.
55
e0dd9005
JR
56%description devel -l pl.UTF-8
57Pliki nagłówkowe biblioteki GEOS.
7070463c
JB
58
59%package static
60Summary: Static GEOS library
fd0ef9fd 61Summary(pl.UTF-8): Statyczna biblioteka GEOS
7070463c
JB
62Group: Development/Libraries
63Requires: %{name}-devel = %{version}-%{release}
64
65%description static
66Static GEOS library.
67
e0dd9005 68%description static -l pl.UTF-8
7070463c
JB
69Statyczna biblioteka GEOS.
70
424c3af6
JB
71%package -n php-geos
72Summary: PHP bindings for Geometry Engine - Open Source
73Summary(pl.UTF-8): Wiązania PHP do biblioteki GEOS
74Group: Development/Languages/PHP
75Requires: %{name} = %{version}-%{release}
76%{?requires_php_extension}
77
78%description -n php-geos
79PHP bindings for Geometry Engine - Open Source.
80
81%description -n php-geos -l pl.UTF-8
82Wiązania PHP do biblioteki GEOS.
83
2172c3d9 84%package -n python-geos
85Summary: Python bindings for Geometry Engine - Open Source
fd0ef9fd 86Summary(pl.UTF-8): Wiązania Pythona do biblioteki GEOS
adc066a8 87Group: Development/Languages/Python
2172c3d9 88Requires: %{name} = %{version}-%{release}
89
90%description -n python-geos
adc066a8 91Python bindings for Geometry Engine - Open Source.
2172c3d9 92
e0dd9005
JR
93%description -n python-geos -l pl.UTF-8
94Wiązania Pythona do biblioteki GEOS.
2172c3d9 95
68bc5314
JB
96%package -n ruby-geos
97Summary: Ruby bindings for Geometry Engine - Open Source
fd0ef9fd 98Summary(pl.UTF-8): Wiązania języka Ruby do biblioteki GEOS
68bc5314
JB
99Group: Development/Languages/Python
100Requires: %{name} = %{version}-%{release}
101
102%description -n ruby-geos
103Ruby bindings for Geometry Engine - Open Source.
104
e0dd9005
JR
105%description -n ruby-geos -l pl.UTF-8
106Wiązania języka Ruby do biblioteki GEOS.
68bc5314 107
7070463c 108%prep
33332b8a 109%setup -q
01dd35cb 110%patch0 -p1
4f288115 111%patch1 -p1
7070463c
JB
112
113%build
01dd35cb
JR
114%{__aclocal} -I macros
115%{__autoconf}
116%{__autoheader}
117%{__automake}
11971862 118%configure \
424c3af6 119 %{?with_php:--enable-php} \
11971862 120 --enable-python \
71f7add8
JR
121%if %{with ruby}
122 RUBY_EXTENSION_DIR=%{ruby_vendorarchdir} \
123 --enable-ruby \
124%endif
125
11971862 126
7070463c
JB
127%{__make} \
128 pkglibdir=%{_libdir}
129
68bc5314 130
7070463c
JB
131%install
132rm -rf $RPM_BUILD_ROOT
133
134%{__make} install \
33332b8a
JB
135 DESTDIR=$RPM_BUILD_ROOT
136
424c3af6
JB
137%if %{with php}
138install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
139cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/geos.ini
140; Enable geos extension module
141extension=geos.so
142EOF
143%endif
144
145%{?with_ruby:%{__rm} $RPM_BUILD_ROOT%{ruby_sitearchdir}/*.{la,a}}
146%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/geos/*.{la,a}
7070463c 147
02cf38a4 148%py_postclean
68bc5314 149
7070463c
JB
150%clean
151rm -rf $RPM_BUILD_ROOT
152
153%post -p /sbin/ldconfig
154%postun -p /sbin/ldconfig
155
156%files
157%defattr(644,root,root,755)
02cf38a4 158%doc AUTHORS ChangeLog NEWS README TODO
a58867fa 159%attr(755,root,root) %{_libdir}/libgeos-*.so
6a9f7429 160%attr(755,root,root) %{_libdir}/libgeos_c.so.*.*.*
33332b8a 161%attr(755,root,root) %ghost %{_libdir}/libgeos_c.so.1
7070463c
JB
162
163%files devel
164%defattr(644,root,root,755)
165%attr(755,root,root) %{_bindir}/geos-config
6a9f7429
JB
166%attr(755,root,root) %{_libdir}/libgeos.so
167%attr(755,root,root) %{_libdir}/libgeos_c.so
168%{_libdir}/libgeos.la
169%{_libdir}/libgeos_c.la
7070463c 170%{_includedir}/geos
413fb971 171%{_includedir}/geos.h
6a9f7429 172%{_includedir}/geos_c.h
7070463c
JB
173
174%files static
175%defattr(644,root,root,755)
6a9f7429
JB
176%{_libdir}/libgeos.a
177%{_libdir}/libgeos_c.a
2172c3d9 178
424c3af6
JB
179%if %{with php}
180%files -n php-geos
181%defattr(644,root,root,755)
182%doc php/{README,TODO}
183%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/geos.ini
184%attr(755,root,root) %{php_extensiondir}/geos.so
185%endif
186
2172c3d9 187%files -n python-geos
188%defattr(644,root,root,755)
11971862 189%dir %{py_sitedir}/geos
190%attr(755,root,root) %{py_sitedir}/geos/_geos.so
33332b8a
JB
191%{py_sitescriptdir}/geos
192%{py_sitescriptdir}/geos.pth
68bc5314 193
38386277 194%if %{with ruby}
68bc5314
JB
195%files -n ruby-geos
196%defattr(644,root,root,755)
71f7add8 197%attr(755,root,root) %{ruby_vendorarchdir}/geos.so
38386277 198%endif
This page took 0.086793 seconds and 4 git commands to generate.