]>
Commit | Line | Data |
---|---|---|
c5e6269b JB |
1 | Summary: Gaia Common Graphics support |
2 | Summary(pl.UTF-8): Obsługa grafiki wspólna dla projektu Gaia | |
3 | Name: libgaiagraphics | |
d6f41e71 | 4 | Version: 0.5 |
a02dfe66 | 5 | Release: 6 |
c5e6269b JB |
6 | License: LGPL v3+ |
7 | Group: Libraries | |
8 | Source0: http://www.gaia-gis.it/gaia-sins/gaiagraphics-sources/%{name}-%{version}.tar.gz | |
d6f41e71 | 9 | # Source0-md5: 2fdc2f155718e9f20dcdf10e474fc225 |
c5e6269b JB |
10 | URL: https://www.gaia-gis.it/fossil/libgaiagraphics |
11 | BuildRequires: cairo-devel | |
12 | BuildRequires: libgeotiff-devel >= 1.2.5 | |
13 | BuildRequires: libjpeg-devel | |
14 | BuildRequires: libpng-devel | |
15 | BuildRequires: libtiff-devel | |
d6f41e71 | 16 | BuildRequires: libxml2-devel >= 2 |
c5e6269b JB |
17 | BuildRequires: pkgconfig |
18 | BuildRequires: proj-devel >= 4 | |
19 | BuildRequires: zlib-devel | |
20 | Requires: libgeotiff >= 1.2.5 | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | libgaiagraphics is an open source library supporting common-utility | |
25 | raster handling methods. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | libgaiagraphics to mająca otwarte źródła biblioteka obsługująca | |
29 | ogólnonarzędziowe funkcje do obsługi grafiki rastrowej. | |
30 | ||
31 | %package devel | |
32 | Summary: Header files for gaiagraphics library | |
33 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gaiagraphics | |
34 | Group: Development/Libraries | |
35 | Requires: %{name} = %{version}-%{release} | |
36 | Requires: cairo-devel | |
37 | Requires: libgeotiff-devel >= 1.2.5 | |
38 | Requires: libjpeg-devel | |
39 | Requires: libpng-devel | |
40 | Requires: libtiff-devel | |
d6f41e71 | 41 | Requires: libxml2-devel >= 2 |
c5e6269b JB |
42 | Requires: proj-devel >= 4 |
43 | Requires: zlib-devel | |
44 | ||
45 | %description devel | |
46 | Header files for gaiagraphics library. | |
47 | ||
48 | %description devel -l pl.UTF-8 | |
49 | Pliki nagłówkowe biblioteki gaiagraphics. | |
50 | ||
51 | %package static | |
52 | Summary: Static gaiagraphics library | |
53 | Summary(pl.UTF-8): Statyczna biblioteka gaiagraphics | |
54 | Group: Development/Libraries | |
55 | Requires: %{name}-devel = %{version}-%{release} | |
56 | ||
57 | %description static | |
58 | Static gaiagraphics library. | |
59 | ||
60 | %description static -l pl.UTF-8 | |
61 | Statyczna biblioteka gaiagraphics. | |
62 | ||
63 | %prep | |
64 | %setup -q | |
65 | ||
66 | %build | |
67 | %configure | |
68 | ||
69 | %{__make} | |
70 | ||
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %{__make} install \ | |
75 | DESTDIR=$RPM_BUILD_ROOT | |
76 | ||
77 | # obsoleted by pkg-config | |
78 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgaiagraphics.la | |
79 | ||
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %post -p /sbin/ldconfig | |
84 | %postun -p /sbin/ldconfig | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
88 | %doc AUTHORS | |
89 | %attr(755,root,root) %{_libdir}/libgaiagraphics.so.*.*.* | |
90 | %attr(755,root,root) %ghost %{_libdir}/libgaiagraphics.so.1 | |
91 | ||
92 | %files devel | |
93 | %defattr(644,root,root,755) | |
94 | %attr(755,root,root) %{_libdir}/libgaiagraphics.so | |
95 | %{_includedir}/gaiagraphics.h | |
96 | %{_pkgconfigdir}/gaiagraphics.pc | |
97 | ||
98 | %files static | |
99 | %defattr(644,root,root,755) | |
100 | %{_libdir}/libgaiagraphics.a |