]>
Commit | Line | Data |
---|---|---|
cb7bcc24 | 1 | Summary: GeoTIFF library |
354b79ed | 2 | Summary(pl.UTF-8): Biblioteka GeoTIFF |
cb7bcc24 | 3 | Name: libgeotiff |
227d67ad | 4 | Version: 1.2.5 |
a9e9378b | 5 | Release: 3 |
046c9ee5 | 6 | License: MIT, partially Public Domain (see LICENSE) |
cb7bcc24 | 7 | Group: Libraries |
8e0664d0 | 8 | Source0: ftp://ftp.remotesensing.org/geotiff/libgeotiff/%{name}-%{version}.tar.gz |
227d67ad | 9 | # Source0-md5: 000f247a88510f1b38d4b314d1e47048 |
7da70dc6 | 10 | Patch0: %{name}-shared-fix.patch |
227d67ad | 11 | Patch1: %{name}-link.patch |
cb7bcc24 | 12 | URL: http://www.remotesensing.org/geotiff/geotiff.html |
9d97a6dc | 13 | BuildRequires: automake |
cb7bcc24 | 14 | BuildRequires: libjpeg-devel |
7da70dc6 | 15 | BuildRequires: libtiff-devel >= 3.6.0 |
cb7bcc24 JB |
16 | BuildRequires: proj-devel |
17 | BuildRequires: zlib-devel | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | This library is designed to permit the extraction and parsing of the | |
22 | "GeoTIFF" Key directories, as well as definition and installation of | |
23 | GeoTIFF keys in new files. | |
24 | ||
54bae205 JR |
25 | %description -l pl.UTF-8 |
26 | Ta biblioteka pozwala na odczytywanie i analizowanie znaczników | |
27 | "GeoTIFF", a także definiowanie i zapisywanie znaczników w nowych | |
cb7bcc24 JB |
28 | plikach. |
29 | ||
30 | %package devel | |
31 | Summary: GeoTIFF header files | |
354b79ed | 32 | Summary(pl.UTF-8): Pliki nagłówkowe GeoTIFF |
cb7bcc24 | 33 | Group: Development/Libraries |
2f318167 JB |
34 | Requires: %{name} = %{version}-%{release} |
35 | Requires: libtiff-devel >= 3.6.0 | |
cb7bcc24 JB |
36 | |
37 | %description devel | |
38 | Header files for GeoTIFF library. | |
39 | ||
54bae205 JR |
40 | %description devel -l pl.UTF-8 |
41 | Pliki nagłówkowe biblioteki GeoTIFF. | |
cb7bcc24 JB |
42 | |
43 | %package static | |
44 | Summary: GeoTIFF static library | |
354b79ed | 45 | Summary(pl.UTF-8): Statyczna biblioteka GeoTIFF |
cb7bcc24 | 46 | Group: Development/Libraries |
2f318167 | 47 | Requires: %{name}-devel = %{version}-%{release} |
cb7bcc24 JB |
48 | |
49 | %description static | |
50 | GeoTIFF static library. | |
51 | ||
54bae205 | 52 | %description static -l pl.UTF-8 |
cb7bcc24 JB |
53 | Statyczna biblioteka GeoTIFF. |
54 | ||
55 | %prep | |
04804582 | 56 | %setup -q |
cb7bcc24 | 57 | %patch0 -p1 |
227d67ad | 58 | %patch1 -p1 |
cb7bcc24 | 59 | |
5c04383c JB |
60 | # workaround not to rebuild configure on make |
61 | touch configure | |
62 | ||
cb7bcc24 | 63 | %build |
9d97a6dc | 64 | cp -f /usr/share/automake/config.* . |
2f318167 | 65 | %configure |
cb7bcc24 JB |
66 | |
67 | %{__make} | |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
9d97a6dc JB |
72 | %{__make} install \ |
73 | DESTDIR=$RPM_BUILD_ROOT | |
cb7bcc24 JB |
74 | |
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %post -p /sbin/ldconfig | |
79 | %postun -p /sbin/ldconfig | |
80 | ||
81 | %files | |
82 | %defattr(644,root,root,755) | |
7da70dc6 | 83 | %doc ChangeLog LICENSE README docs/*.{html,dox,txt} |
227d67ad JB |
84 | %attr(755,root,root) %{_bindir}/geotifcp |
85 | %attr(755,root,root) %{_bindir}/listgeo | |
d60a338b JB |
86 | %attr(755,root,root) %{_libdir}/libgeotiff.so.*.* |
87 | %attr(755,root,root) %ghost %{_libdir}/libgeotiff.so.1 | |
cb7bcc24 JB |
88 | %{_datadir}/epsg_csv |
89 | ||
90 | %files devel | |
91 | %defattr(644,root,root,755) | |
d60a338b | 92 | %attr(755,root,root) %{_libdir}/libgeotiff.so |
227d67ad JB |
93 | %{_includedir}/cpl_serv.h |
94 | %{_includedir}/geo_*.h | |
95 | %{_includedir}/geokeys.h | |
96 | %{_includedir}/geonames.h | |
97 | %{_includedir}/geotiff.h | |
98 | %{_includedir}/geotiffio.h | |
99 | %{_includedir}/geovalues.h | |
100 | %{_includedir}/xtiffio.h | |
101 | %{_includedir}/epsg_*.inc | |
102 | %{_includedir}/geo_ctrans.inc | |
103 | %{_includedir}/geokeys.inc | |
cb7bcc24 JB |
104 | |
105 | %files static | |
106 | %defattr(644,root,root,755) | |
d60a338b | 107 | %{_libdir}/libgeotiff.a |