]> git.pld-linux.org Git - packages/serd.git/blame - serd.spec
- updated to 0.30.16
[packages/serd.git] / serd.spec
CommitLineData
90de5cf6
JB
1#
2# Conditional build:
3%bcond_with apidocs # API documentation
4
faf9dc5f
JB
5Summary: Lightweight C library for RDF syntax
6Summary(pl.UTF-8): Lekka biblioteka C do składni RDF
7Name: serd
48b4f202 8Version: 0.30.16
faf9dc5f
JB
9Release: 1
10License: ISC
11Group: Libraries
90de5cf6 12Source0: http://download.drobilla.net/%{name}-%{version}.tar.xz
48b4f202 13# Source0-md5: 86e5ce5a874cd728a02aebf25b48dcc1
faf9dc5f 14URL: http://drobilla.net/software/serd/
90de5cf6
JB
15BuildRequires: meson >= 0.56.0
16BuildRequires: ninja >= 1.5
17BuildRequires: pkgconfig
18BuildRequires: rpmbuild(macros) >= 1.736
19BuildRequires: tar >= 1:1.22
20BuildRequires: xz
21%if %{with apidocs}
22BuildRequires: doxygen
23BuildRequires: mandoc
24BuildRequires: sphinx-pdg >= 2
25%endif
faf9dc5f
JB
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29Serd is a lightweight C library for RDF syntax which supports reading
30and writing Turtle and NTriples.
31
32Serd is not intended to be a swiss-army knife of RDF syntax, but
33rather is suited to resource limited or performance critical
34applications (e.g. converting many gigabytes of NTriples to Turtle),
35or situations where a simple reader/writer with minimal dependencies
36is ideal (e.g. in LV2 implementations or embedded applications).
37
38%description -l pl.UTF-8
39Serd to lekka biblioteka C do obsługi składni RDF, obsługująca odczyt
40i zapis formatów Turtle i NTriples.
41
42Serd nie ma na celu obsługi wszystkich aspektów składni RDF, jest
43przeznaczony raczej do zastosowań z ograniczonymi zasobami lub
44krytycznych pod względem wydajności (np. konwersji wielu gigabajtów z
45formatu NTriples do Turtle), albo w sytuacjach, gdzie ideałem jest
46prosty program czytający/zapisujący o minimalnych zależnościach (np. w
47implementacjach LV2 lub środowiskach wbudowanych).
48
49%package devel
50Summary: Header files for serd library
51Summary(pl.UTF-8): Pliki nagłówkowe biblioteki serd
52Group: Development/Libraries
53Requires: %{name} = %{version}-%{release}
54
55%description devel
56Header files for serd library.
57
58%description devel -l pl.UTF-8
59Pliki nagłówkowe biblioteki serd.
60
61%prep
62%setup -q
63
64%build
90de5cf6
JB
65%meson build \
66 --default-library=shared \
67 %{!?with_apidocs:-Ddocs=disabled}
faf9dc5f 68
90de5cf6 69%ninja_build -C build
faf9dc5f
JB
70
71%install
72rm -rf $RPM_BUILD_ROOT
73
90de5cf6
JB
74%ninja_install -C build
75
76%if %{without apidocs}
77# -Ddocs=disabled disables man page installation
78install -d $RPM_BUILD_ROOT%{_mandir}/man1
79cp -p doc/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
80%endif
faf9dc5f
JB
81
82%clean
83rm -rf $RPM_BUILD_ROOT
84
85%post -p /sbin/ldconfig
86%postun -p /sbin/ldconfig
87
88%files
89%defattr(644,root,root,755)
2f2d4f76 90%doc AUTHORS COPYING NEWS README.md
faf9dc5f
JB
91%attr(755,root,root) %{_bindir}/serdi
92%attr(755,root,root) %{_libdir}/libserd-0.so.*.*.*
93%attr(755,root,root) %ghost %{_libdir}/libserd-0.so.0
94%{_mandir}/man1/serdi.1*
95
96%files devel
97%defattr(644,root,root,755)
98%attr(755,root,root) %{_libdir}/libserd-0.so
99%{_includedir}/serd-0
100%{_pkgconfigdir}/serd-0.pc
This page took 0.165786 seconds and 4 git commands to generate.