3 %bcond_without apidocs # do not build and package API docs
5 Summary: Library to read and write Generic Tagged Arrays (GTAs)
6 Summary(pl.UTF-8): Biblioteka od odczytu i zapisu GTA (ogólnych tablic etykietowanych)
12 Source0: http://download.savannah.nongnu.org/releases/gta/%{name}-%{version}.tar.xz
13 # Source0-md5: d5b6243bbb490a5ad9df148da60c9206
14 URL: http://gta.nongnu.org/libgta.html
15 BuildRequires: bzip2-devel
16 %{?with_apidocs:BuildRequires: doxygen}
17 BuildRequires: tar >= 1:1.22
19 BuildRequires: xz-devel
20 BuildRequires: zlib-devel
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Libgta is a portable library that implements the Generic Tagged Array
25 (GTA) file format. This file format has the following features:
27 * GTAs can store any kind of data in multidimensional arrays
28 * GTAs can optionally use simple tags to store rich metadata
29 * GTAs are streamable, which allows direct reading from and writing to
30 pipes, network sockets, and other non-seekable media
31 * GTAs can use ZLIB, BZIP2, or XZ compression, allowing a tradeoff
32 between compression/decompression speed and compression ratio
33 * Uncompressed GTA files allow easy out-of-core data access for very
36 %description -l pl.UTF-8
37 libgta to przenośna biblioteka zawierająca implementację formatu GTA
38 (Generic Tagged Array - ogólnych tablic etykietowanych). Format ten ma
40 - może przechowywać dowolny rodzaj danych w tablicach wielowymiarowych
41 - opcjonalnie może wykorzystywać proste etykiety do przechowywania
43 - daje się obrabiać strumieniowo, co pozwala na bezpośredni odczyt i
44 zapis do potoków, gniazd sieciowych i innych nośników nie
45 obsługujących przewijania
46 - może wykorzystywać kompresję ZLIB, BZIP2 lub XZ, pozwalając na
47 kompromis między szybkością kompresji/dekompresji a współczynnikiem
49 - w przypadku nieskompresowanych plików możliwy jest łatwy dostęp do
50 danych nawet dla bardzo dużych tablic.
53 Summary: Header files for GTA library
54 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GTA
55 Group: Development/Libraries
56 Requires: %{name} = %{version}-%{release}
62 Header files for GTA library.
64 %description devel -l pl.UTF-8
65 Pliki nagłówkowe biblioteki GTA.
68 Summary: Static GTA library
69 Summary(pl.UTF-8): Statyczna biblioteka GTA
70 Group: Development/Libraries
71 Requires: %{name}-devel = %{version}-%{release}
76 %description static -l pl.UTF-8
77 Statyczna biblioteka GTA.
80 Summary: GTA API documentation
81 Summary(pl.UTF-8): Dokumentacja API biblioteki GTA
85 API and internal documentation for GTA library.
87 %description apidocs -l pl.UTF-8
88 Dokumentacja API biblioteki GTA.
95 %{!?with_apidocs:--disable-reference} \
96 --disable-silent-rules
100 rm -rf $RPM_BUILD_ROOT
103 DESTDIR=$RPM_BUILD_ROOT
105 install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_datadir}/cmake/Modules}
106 mv $RPM_BUILD_ROOT%{_docdir}/%{name}/example-*.c* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
107 mv $RPM_BUILD_ROOT%{_docdir}/%{name}/FindGTA.cmake $RPM_BUILD_ROOT%{_datadir}/cmake/Modules
108 # packaged in -apidocs
109 %{?with_apidocs:%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}/reference}
112 rm -rf $RPM_BUILD_ROOT
114 %post -p /sbin/ldconfig
115 %postun -p /sbin/ldconfig
118 %defattr(644,root,root,755)
119 %doc AUTHORS ChangeLog README
120 %attr(755,root,root) %{_libdir}/libgta.so.*.*.*
121 %attr(755,root,root) %ghost %{_libdir}/libgta.so.0
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_libdir}/libgta.so
127 %{_pkgconfigdir}/gta.pc
128 %{_datadir}/cmake/Modules/FindGTA.cmake
129 %{_examplesdir}/%{name}-%{version}
132 %defattr(644,root,root,755)
137 %defattr(644,root,root,755)
138 %doc doc/reference/*.{css,html,js,png}