]> git.pld-linux.org Git - packages/geos.git/blame - geos.spec
- updated to final 3.0.0
[packages/geos.git] / geos.spec
CommitLineData
33332b8a 1#
38386277 2# Conditional build:
33332b8a 3%bcond_without ruby # ruby binding
38386277 4#
7070463c 5Summary: Geometry Engine - Open Source
fd0ef9fd 6Summary(pl.UTF-8): GEOS - silnik geometryczny z otwartymi źródłami
7070463c 7Name: geos
11971862 8Version: 3.0.0
33332b8a
JB
9Release: 1
10License: LGPL v2.1
7070463c 11Group: Libraries
33332b8a
JB
12Source0: http://geos.refractions.net/downloads/%{name}-%{version}.tar.bz2
13# Source0-md5: 3f7940abee9fec69a9787878cd3ae771
7070463c
JB
14URL: http://geos.refractions.net/
15BuildRequires: automake
16BuildRequires: libstdc++-devel
08e05e00
JB
17BuildRequires: python >= 1:2.5
18BuildRequires: python-devel >= 1:2.5
68bc5314 19BuildRequires: rpm-pythonprov
33332b8a 20BuildRequires: rpmbuild(macros) >= 1.219
38386277 21%{?with_ruby:BuildRequires: ruby-devel}
68bc5314 22BuildRequires: swig-python >= 1.3.29
38386277 23%{?with_ruby:BuildRequires: swig-ruby >= 1.3.29}
7070463c
JB
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27GEOS (Geometry Engine - Open Source) is a C++ port of the Java
28Topology Suite (JTS). As such, it aims to contain the complete
29functionality of JTS in C++. This includes all the OpenGIS "Simple
30Features for SQL" spatial predicate functions and spatial operators,
31as well as specific JTS topology functions such as IsValid().
32
e0dd9005 33%description -l pl.UTF-8
7070463c 34GEOS (Geometry Engine - Open Source, czyli silnik geometryczny z
e0dd9005
JR
35otwartymi źródłami) to port C++ biblioteki Java Topology Suite (JTS).
36Celem biblioteki jako takiej jest implementacja pełnej funkcjonalności
37JTS w C++. Obejmuje to wszystkie funkcje predykatów przestrzennych
7070463c 38wg "Simple Features for SQL" OpenGIS oraz operatory przestrzenne, a
e0dd9005 39także specyficzne dla JTS funkcje topologiczne takie jak IsValid().
7070463c
JB
40
41%package devel
42Summary: Header files for GEOS library
fd0ef9fd 43Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GEOS
7070463c
JB
44Group: Development/Libraries
45Requires: %{name} = %{version}-%{release}
46Requires: libstdc++-devel
47
48%description devel
49Header files for GEOS library.
50
e0dd9005
JR
51%description devel -l pl.UTF-8
52Pliki nagłówkowe biblioteki GEOS.
7070463c
JB
53
54%package static
55Summary: Static GEOS library
fd0ef9fd 56Summary(pl.UTF-8): Statyczna biblioteka GEOS
7070463c
JB
57Group: Development/Libraries
58Requires: %{name}-devel = %{version}-%{release}
59
60%description static
61Static GEOS library.
62
e0dd9005 63%description static -l pl.UTF-8
7070463c
JB
64Statyczna biblioteka GEOS.
65
2172c3d9 66%package -n python-geos
67Summary: Python bindings for Geometry Engine - Open Source
fd0ef9fd 68Summary(pl.UTF-8): Wiązania Pythona do biblioteki GEOS
adc066a8 69Group: Development/Languages/Python
2172c3d9 70Requires: %{name} = %{version}-%{release}
71
72%description -n python-geos
adc066a8 73Python bindings for Geometry Engine - Open Source.
2172c3d9 74
e0dd9005
JR
75%description -n python-geos -l pl.UTF-8
76Wiązania Pythona do biblioteki GEOS.
2172c3d9 77
68bc5314
JB
78%package -n ruby-geos
79Summary: Ruby bindings for Geometry Engine - Open Source
fd0ef9fd 80Summary(pl.UTF-8): Wiązania języka Ruby do biblioteki GEOS
68bc5314
JB
81Group: Development/Languages/Python
82Requires: %{name} = %{version}-%{release}
83
84%description -n ruby-geos
85Ruby bindings for Geometry Engine - Open Source.
86
e0dd9005
JR
87%description -n ruby-geos -l pl.UTF-8
88Wiązania języka Ruby do biblioteki GEOS.
68bc5314 89
7070463c 90%prep
33332b8a 91%setup -q
7070463c
JB
92
93%build
94cp -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
104rm -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}}
110rm -f $RPM_BUILD_ROOT%{py_sitedir}/geos/*.{la,a}
7070463c 111
02cf38a4 112%py_postclean
68bc5314 113
7070463c
JB
114%clean
115rm -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
This page took 0.110193 seconds and 4 git commands to generate.