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