3 %bcond_with apidocs # API documentation
5 Summary: Lightweight C library for storing RDF data in memory
6 Summary(pl.UTF-8): Lekka biblioteka C do przechowywania danych RDF w pamięci
12 Source0: http://download.drobilla.net/%{name}-%{version}.tar.xz
13 # Source0-md5: 73ed5c03c43ef3cc62558c6826b15fa4
14 URL: http://drobilla.net/software/sord/
15 BuildRequires: meson >= 0.56.0
16 BuildRequires: ninja >= 1.5
17 BuildRequires: pcre-devel
18 BuildRequires: pkgconfig
19 BuildRequires: serd-devel >= 0.30.10
20 BuildRequires: tar >= 1:1.22
23 BuildRequires: doxygen
25 Requires: serd >= 0.30.10
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Sord is a lightweight C library for storing RDF data in memory.
31 %description -l pl.UTF-8
32 Sort to lekka biblioteka C do przechowywania danych RDF w pamięci.
35 Summary: Header files for sord library
36 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki sord
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
39 Requires: serd-devel >= 0.30.10
42 Header files for sord library.
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe biblioteki sord.
52 --default-library=shared \
53 %{!?with_apidocs:-Ddocs=disabled}
58 rm -rf $RPM_BUILD_ROOT
60 %ninja_install -C build
62 %if %{without apidocs}
63 # -Ddocs=disabled disables man page installation
64 install -d $RPM_BUILD_ROOT%{_mandir}/man1
65 cp -p doc/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
69 rm -rf $RPM_BUILD_ROOT
71 %post -p /sbin/ldconfig
72 %postun -p /sbin/ldconfig
75 %defattr(644,root,root,755)
76 %doc AUTHORS COPYING NEWS README.md
77 %attr(755,root,root) %{_bindir}/sord_validate
78 %attr(755,root,root) %{_bindir}/sordi
79 %attr(755,root,root) %{_libdir}/libsord-0.so.*.*.*
80 %attr(755,root,root) %ghost %{_libdir}/libsord-0.so.0
81 %{_mandir}/man1/sord_validate.1*
82 %{_mandir}/man1/sordi.1*
85 %defattr(644,root,root,755)
86 %attr(755,root,root) %{_libdir}/libsord-0.so
88 %{_pkgconfigdir}/sord-0.pc