]> git.pld-linux.org Git - packages/libgta.git/blame - libgta.spec
- unconditional noarch subpackages
[packages/libgta.git] / libgta.spec
CommitLineData
7b8e8637
JB
1#
2# Conditional build:
3%bcond_without apidocs # do not build and package API docs
e3909c0c 4
7b8e8637
JB
5Summary: Library to read and write Generic Tagged Arrays (GTAs)
6Summary(pl.UTF-8): Biblioteka od odczytu i zapisu GTA (ogólnych tablic etykietowanych)
7Name: libgta
dc34e54e 8Version: 1.2.1
0a9d7d52 9Release: 1
7b8e8637
JB
10License: LGPL v2.1+
11Group: Libraries
dc34e54e
JB
12#Source0Download: https://marlam.de/gta/download/
13Source0: https://marlam.de/gta/releases/%{name}-%{version}.tar.xz
14# Source0-md5: 84fbd03883fb8cdcf7e80d0966f0b1c5
15URL: https://marlam.de/gta/
7b8e8637
JB
16BuildRequires: bzip2-devel
17%{?with_apidocs:BuildRequires: doxygen}
dc34e54e 18BuildRequires: rpmbuild(macros) >= 1.752
7b8e8637
JB
19BuildRequires: tar >= 1:1.22
20BuildRequires: xz
21BuildRequires: xz-devel
22BuildRequires: zlib-devel
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26Libgta is a portable library that implements the Generic Tagged Array
27(GTA) file format. This file format has the following features:
28
e3909c0c
ER
29- GTAs can store any kind of data in multidimensional arrays
30- GTAs can optionally use simple tags to store rich metadata
31- GTAs are streamable, which allows direct reading from and writing to
7b8e8637 32 pipes, network sockets, and other non-seekable media
dc34e54e 33- GTA files allow easy out-of-core data access for very large arrays.
7b8e8637
JB
34
35%description -l pl.UTF-8
36libgta to przenośna biblioteka zawierająca implementację formatu GTA
37(Generic Tagged Array - ogólnych tablic etykietowanych). Format ten ma
38następujące cechy:
39- może przechowywać dowolny rodzaj danych w tablicach wielowymiarowych
40- opcjonalnie może wykorzystywać proste etykiety do przechowywania
41 bogatych metadanych
42- daje się obrabiać strumieniowo, co pozwala na bezpośredni odczyt i
43 zapis do potoków, gniazd sieciowych i innych nośników nie
44 obsługujących przewijania
dc34e54e 45- możliwy jest łatwy dostęp do danych nawet dla bardzo dużych tablic.
7b8e8637
JB
46
47%package devel
48Summary: Header files for GTA library
49Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GTA
50Group: Development/Libraries
51Requires: %{name} = %{version}-%{release}
52Requires: bzip2-devel
53Requires: xz-devel
54Requires: zlib-devel
55
56%description devel
57Header files for GTA library.
58
59%description devel -l pl.UTF-8
60Pliki nagłówkowe biblioteki GTA.
61
62%package static
63Summary: Static GTA library
64Summary(pl.UTF-8): Statyczna biblioteka GTA
65Group: Development/Libraries
66Requires: %{name}-devel = %{version}-%{release}
67
68%description static
69Static GTA library.
70
71%description static -l pl.UTF-8
72Statyczna biblioteka GTA.
73
74%package apidocs
75Summary: GTA API documentation
76Summary(pl.UTF-8): Dokumentacja API biblioteki GTA
77Group: Documentation
2ac1f756 78BuildArch: noarch
7b8e8637
JB
79
80%description apidocs
81API and internal documentation for GTA library.
82
83%description apidocs -l pl.UTF-8
84Dokumentacja API biblioteki GTA.
85
86%prep
87%setup -q
88
89%build
90%configure \
91 %{!?with_apidocs:--disable-reference} \
dc34e54e
JB
92 --disable-silent-rules \
93 --with-compression
7b8e8637
JB
94%{__make}
95
96%install
97rm -rf $RPM_BUILD_ROOT
98
99%{__make} install \
100 DESTDIR=$RPM_BUILD_ROOT
101
f2eca74e
JB
102install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
103%{__mv} $RPM_BUILD_ROOT%{_docdir}/%{name}/example-*.c* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
7b8e8637 104# packaged in -apidocs
95eef7bd 105%{?with_apidocs:%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}/reference}
7b8e8637
JB
106
107%clean
108rm -rf $RPM_BUILD_ROOT
109
110%post -p /sbin/ldconfig
111%postun -p /sbin/ldconfig
112
113%files
114%defattr(644,root,root,755)
115%doc AUTHORS ChangeLog README
116%attr(755,root,root) %{_libdir}/libgta.so.*.*.*
dc34e54e 117%attr(755,root,root) %ghost %{_libdir}/libgta.so.1
7b8e8637
JB
118
119%files devel
120%defattr(644,root,root,755)
121%attr(755,root,root) %{_libdir}/libgta.so
122%{_includedir}/gta
123%{_pkgconfigdir}/gta.pc
124%{_examplesdir}/%{name}-%{version}
125
126%files static
127%defattr(644,root,root,755)
128%{_libdir}/libgta.a
129
130%if %{with apidocs}
131%files apidocs
132%defattr(644,root,root,755)
133%doc doc/reference/*.{css,html,js,png}
134%endif
This page took 0.207348 seconds and 4 git commands to generate.