]> git.pld-linux.org Git - SPECS.git/blob - shapelib.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / shapelib.spec
1 Summary:        Shapefile C Library
2 Summary(pl.UTF-8):      Biblioteka Shapefile dla C
3 Name:           shapelib
4 Version:        1.5.0
5 Release:        1
6 License:        MIT or LGPL
7 Group:          Libraries
8 Source0:        http://download.osgeo.org/shapelib/%{name}-%{version}.tar.gz
9 # Source0-md5:  e397d4e7e734537ec36d0491d524b4ea
10 URL:            http://shapelib.maptools.org/
11 BuildRequires:  autoconf >= 2.62
12 BuildRequires:  automake >= 1:1.11
13 BuildRequires:  libtool >= 2:2
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 The Shapefile C Library provides the ability to write simple C
18 programs for reading, writing and updating (to a limited extent) ESRI
19 Shapefiles, and the associated attribute file (.dbf).
20
21 %description -l pl.UTF-8
22 Biblioteka C Shapefile daje możliwość pisania prostych programów w C
23 do odczytu, zapisu i uaktualniania (w pewnym zakresie) plików ESRI
24 oraz związanych z nimi plików atrybutów (.dbf).
25
26 %package devel
27 Summary:        Header files for shapelib library
28 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki shapelib
29 Group:          Development/Libraries
30 Requires:       %{name} = %{version}-%{release}
31
32 %description devel
33 Header files for shapelib library.
34
35 %description devel -l pl.UTF-8
36 Pliki nagłówkowe biblioteki shapelib.
37
38 %package static
39 Summary:        Static shapelib library
40 Summary(pl.UTF-8):      Statyczna biblioteka shapelib
41 Group:          Development/Libraries
42 Requires:       %{name}-devel = %{version}-%{release}
43
44 %description static
45 Static shapelib library.
46
47 %description static -l pl.UTF-8
48 Statyczna biblioteka shapelib.
49
50 %prep
51 %setup -q
52
53 %build
54 %{__libtoolize}
55 %{__aclocal} -I m4
56 %{__autoconf}
57 %{__automake}
58 %configure \
59         --disable-silent-rules
60 %{__make}
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64
65 %{__make} install \
66         DESTDIR=$RPM_BUILD_ROOT
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %post   -p /sbin/ldconfig
72 %postun -p /sbin/ldconfig
73
74 %files
75 %defattr(644,root,root,755)
76 %doc ChangeLog README* web/*.html
77 %attr(755,root,root) %{_bindir}/Shape_PointInPoly
78 %attr(755,root,root) %{_bindir}/dbf*
79 %attr(755,root,root) %{_bindir}/shp*
80 %attr(755,root,root) %{_libdir}/libshp.so.*.*.*
81 %attr(755,root,root) %ghost %{_libdir}/libshp.so.2
82
83 %files devel
84 %defattr(644,root,root,755)
85 %attr(755,root,root) %{_libdir}/libshp.so
86 %{_libdir}/libshp.la
87 %{_includedir}/shapefil.h
88 %{_pkgconfigdir}/shapelib.pc
89
90 %files static
91 %defattr(644,root,root,755)
92 %{_libdir}/libshp.a
This page took 0.381726 seconds and 3 git commands to generate.