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