]> git.pld-linux.org Git - packages/sord.git/blame - sord.spec
- updated to 0.16.14
[packages/sord.git] / sord.spec
CommitLineData
37b34099
JB
1#
2# Conditional build:
3%bcond_with apidocs # API documentation
4
e1eb9d48
JB
5Summary: Lightweight C library for storing RDF data in memory
6Summary(pl.UTF-8): Lekka biblioteka C do przechowywania danych RDF w pamięci
7Name: sord
b131ac39 8Version: 0.16.14
e1eb9d48
JB
9Release: 1
10License: ISC
11Group: Libraries
37b34099 12Source0: http://download.drobilla.net/%{name}-%{version}.tar.xz
b131ac39 13# Source0-md5: 73ed5c03c43ef3cc62558c6826b15fa4
e1eb9d48 14URL: http://drobilla.net/software/sord/
37b34099
JB
15BuildRequires: meson >= 0.56.0
16BuildRequires: ninja >= 1.5
e1eb9d48 17BuildRequires: pcre-devel
37b34099 18BuildRequires: pkgconfig
b131ac39 19BuildRequires: serd-devel >= 0.30.10
37b34099
JB
20BuildRequires: tar >= 1:1.22
21BuildRequires: xz
22%if %{with apidocs}
23BuildRequires: doxygen
24%endif
b131ac39 25Requires: serd >= 0.30.10
e1eb9d48
JB
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29Sord is a lightweight C library for storing RDF data in memory.
30
31%description -l pl.UTF-8
32Sort to lekka biblioteka C do przechowywania danych RDF w pamięci.
33
34%package devel
35Summary: Header files for sord library
36Summary(pl.UTF-8): Pliki nagłówkowe biblioteki sord
37Group: Development/Libraries
38Requires: %{name} = %{version}-%{release}
b131ac39 39Requires: serd-devel >= 0.30.10
e1eb9d48
JB
40
41%description devel
42Header files for sord library.
43
44%description devel -l pl.UTF-8
45Pliki nagłówkowe biblioteki sord.
46
47%prep
48%setup -q
49
50%build
37b34099
JB
51%meson build \
52 --default-library=shared \
53 %{!?with_apidocs:-Ddocs=disabled}
e1eb9d48 54
37b34099 55%ninja_build -C build
e1eb9d48
JB
56
57%install
58rm -rf $RPM_BUILD_ROOT
59
37b34099
JB
60%ninja_install -C build
61
62%if %{without apidocs}
63# -Ddocs=disabled disables man page installation
64install -d $RPM_BUILD_ROOT%{_mandir}/man1
65cp -p doc/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
66%endif
e1eb9d48
JB
67
68%clean
69rm -rf $RPM_BUILD_ROOT
70
71%post -p /sbin/ldconfig
72%postun -p /sbin/ldconfig
73
74%files
75%defattr(644,root,root,755)
174fd76e 76%doc AUTHORS COPYING NEWS README.md
e1eb9d48
JB
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
71b925eb 81%{_mandir}/man1/sord_validate.1*
e1eb9d48
JB
82%{_mandir}/man1/sordi.1*
83
84%files devel
85%defattr(644,root,root,755)
86%attr(755,root,root) %{_libdir}/libsord-0.so
87%{_includedir}/sord-0
88%{_pkgconfigdir}/sord-0.pc
This page took 0.142476 seconds and 4 git commands to generate.