]> git.pld-linux.org Git - packages/geos.git/blob - geos.spec
- cosmetics
[packages/geos.git] / geos.spec
1 Summary:        Geometry Engine - Open Source
2 Summary(pl):    GEOS - silnik geometryczny z otwartymi ¼ród³ami
3 Name:           geos
4 Version:        2.2.1
5 Release:        1
6 License:        LGPL
7 Group:          Libraries
8 Source0:        http://geos.refractions.net/%{name}-%{version}.tar.bz2
9 # Source0-md5:  272132bfb64422915d0f748f5e26932b
10 Patch0:         %{name}-config.patch
11 Patch1:         %{name}-gcc4.patch
12 Patch2:         %{name}-swig.patch
13 URL:            http://geos.refractions.net/
14 BuildRequires:  automake
15 BuildRequires:  libstdc++-devel
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 GEOS (Geometry Engine - Open Source) is a C++ port of the Java
20 Topology Suite (JTS). As such, it aims to contain the complete
21 functionality of JTS in C++. This includes all the OpenGIS "Simple
22 Features for SQL" spatial predicate functions and spatial operators,
23 as well as specific JTS topology functions such as IsValid().
24
25 %description -l pl
26 GEOS (Geometry Engine - Open Source, czyli silnik geometryczny z
27 otwartymi ¼ród³ami) to port C++ biblioteki Java Topology Suite (JTS).
28 Celem biblioteki jako takiej jest implementacja pe³nej funkcjonalno¶ci
29 JTS w C++. Obejmuje to wszystkie funkcje predykatów przestrzennych
30 wg "Simple Features for SQL" OpenGIS oraz operatory przestrzenne, a
31 tak¿e specyficzne dla JTS funkcje topologiczne takie jak IsValid().
32
33 %package devel
34 Summary:        Header files for GEOS library
35 Summary(pl):    Pliki nag³ówkowe biblioteki GEOS
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}-%{release}
38 Requires:       libstdc++-devel
39
40 %description devel
41 Header files for GEOS library.
42
43 %description devel -l pl
44 Pliki nag³ówkowe biblioteki GEOS.
45
46 %package static
47 Summary:        Static GEOS library
48 Summary(pl):    Statyczna biblioteka GEOS
49 Group:          Development/Libraries
50 Requires:       %{name}-devel = %{version}-%{release}
51
52 %description static
53 Static GEOS library.
54
55 %description static -l pl
56 Statyczna biblioteka GEOS.
57
58 %package -n python-geos
59 Summary:        Python bindings for Geometry Engine - Open Source
60 Summary(pl):    Wi±zania Pythona do biblioteki GEOS
61 Group:          Development/Languages/Python
62 Requires:       %{name} = %{version}-%{release}
63
64 %description -n python-geos
65 Python bindings for Geometry Engine - Open Source.
66
67 %description -n python-geos -l pl
68 Wi±zania Pythona do biblioteki GEOS.
69
70 %prep
71 %setup -q
72 %patch0 -p1
73 %patch1 -p1
74 %patch2 -p1
75
76 %build
77 cp -f /usr/share/automake/config.* .
78 %configure
79 %{__make} \
80         pkglibdir=%{_libdir}
81
82 cd swig/python
83 swig -c++ -python -modern -o geos_wrap.cxx ../geos.i
84 python setup.py build
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88
89 %{__make} install \
90         DESTDIR=$RPM_BUILD_ROOT \
91         pkglibdir=%{_libdir}
92
93 cd swig/python
94 python setup.py install --root=$RPM_BUILD_ROOT
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT
98
99 %post   -p /sbin/ldconfig
100 %postun -p /sbin/ldconfig
101
102 %files
103 %defattr(644,root,root,755)
104 %doc AUTHORS TODO
105 %attr(755,root,root) %{_libdir}/libgeos.so.*.*.*
106 %attr(755,root,root) %{_libdir}/libgeos_c.so.*.*.*
107
108 %files devel
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_bindir}/geos-config
111 %attr(755,root,root) %{_libdir}/libgeos.so
112 %attr(755,root,root) %{_libdir}/libgeos_c.so
113 %{_libdir}/libgeos.la
114 %{_libdir}/libgeos_c.la
115 %{_includedir}/geos
116 %{_includedir}/geos.h
117 %{_includedir}/geos_c.h
118
119 %files static
120 %defattr(644,root,root,755)
121 %{_libdir}/libgeos.a
122 %{_libdir}/libgeos_c.a
123
124 %files -n python-geos
125 %defattr(644,root,root,755)
126 %{py_sitedir}/geos.pyc
127 %attr(755,root,root) %{py_sitedir}/_geos.so
This page took 0.065191 seconds and 3 git commands to generate.