bafc3ef21838a2ab8085e18a06770960c7aa5cb5
[packages/libmpdclient.git] / libmpdclient.spec
1 Summary:        MPD client library
2 Summary(pl.UTF-8):      Biblioteka kliencka MPD
3 Name:           libmpdclient
4 Version:        2.14
5 Release:        1
6 License:        BSD-like
7 Group:          Libraries
8 Source0:        http://www.musicpd.org/download/libmpdclient/2/%{name}-%{version}.tar.xz
9 # Source0-md5:  8a9a7c640e4d7397b9af5174c9415d17
10 URL:            http://www.musicpd.org/doc/libmpdclient/
11 BuildRequires:  doxygen
12 BuildRequires:  meson > 0.38.1
13 BuildRequires:  ninja
14 BuildRequires:  rpmbuild(macros) >= 1.727
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 Library for Music Player Daemon client development.
19
20 %description -l pl.UTF-8
21 Biblioteka do tworzenia klientów demona MPD (Music Player Daemon).
22
23 %package devel
24 Summary:        Header files for the MPD client library
25 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki klienckiej MPD
26 Group:          Development/Libraries
27 Requires:       %{name} = %{version}-%{release}
28
29 %description devel
30 Header files for MPD client library.
31
32 %description devel -l pl.UTF-8
33 Pliki nagłówkowe biblioteki klienckiej MPD.
34
35 %package -n vala-libmpdclient
36 Summary:        libmpdclient API for Vala language
37 Summary(pl.UTF-8):      API libmpdclient dla języka Vala
38 Group:          Development/Libraries
39 Requires:       %{name}-devel = %{version}-%{release}
40 %if "%{_rpmversion}" >= "5"
41 BuildArch:      noarch
42 %endif
43
44 %description -n vala-libmpdclient
45 libmpdclient API for Vala language.
46
47 %description -n vala-libmpdclient -l pl.UTF-8
48 API libmpdclient dla języka Vala.
49
50 %prep
51 %setup -q
52
53 %build
54 %meson build \
55         -Ddocumentation=true
56
57 %meson_build -C build
58
59 %install
60 rm -rf $RPM_BUILD_ROOT
61
62 %meson_install -C build
63
64 rm -rf $RPM_BUILD_ROOT%{_docdir}
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %post   -p /sbin/ldconfig
70 %postun -p /sbin/ldconfig
71
72 %files
73 %defattr(644,root,root,755)
74 %doc README.rst COPYING AUTHORS NEWS
75 %attr(755,root,root) %{_libdir}/libmpdclient.so.*.*
76 %attr(755,root,root) %ghost %{_libdir}/libmpdclient.so.2
77
78 %files devel
79 %defattr(644,root,root,755)
80 %doc build/doc/html
81 %attr(755,root,root) %{_libdir}/libmpdclient.so
82 %{_includedir}/mpd
83 %{_pkgconfigdir}/libmpdclient.pc
84
85 %files -n vala-libmpdclient
86 %defattr(644,root,root,755)
87 %{_datadir}/vala/vapi/libmpdclient.vapi
This page took 0.055177 seconds and 2 git commands to generate.