blob: 520e2452b73b553d948f3895364142a050633422 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
%global shortname spatialindex
Name: libspatialindex
Version: 1.6.1
Release: 1%{?dist}
Summary: Spatial index library
Group: System Environment/Libraries
License: LGPL
URL: http://trac.gispython.org/spatialindex
Source0: http://download.osgeo.org/libspatialindex/%{shortname}-src-%{version}.tar.bz2
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: chrpath
%description
Spatialindex provides a general framework for developing spatial indices.
Currently it defines generic interfaces, provides simple main memory and
disk based storage managers and a robust implementation of an R*-tree,
an MVR-tree and a TPR-tree.
%package devel
Summary: Development Libraries for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Development files for %{name}.
%prep
%setup -qn %{shortname}-src-%{version}
%build
%configure
# --enable-doxygen-man=NO
## WARNING
## disable %{?_smp_mflags}
## it breaks compile
# Can't prove that true.
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
chrpath --delete %{buildroot}%{_libdir}/%{name}_c.so.1.0.0
# Delete libtool archives, because we don't ship them.
pushd %{buildroot}%{_libdir}
rm -f *.a *.la
popd
#Tests?
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README
%{_libdir}/%{name}*.so
%{_libdir}/%{name}*.so.1
%files devel
%defattr(-,root,root,-)
%{_includedir}/%{shortname}
%{_libdir}/%{name}*.so.1.*
%changelog
* Sun Feb 06 2011 Volker Fröhlich <volker27@gmx.at> - 1.6.1-1
- Initial packaging
|