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