- unconditional noarch subpackages
[packages/libmpdclient.git] / libmpdclient.spec
1 Summary:        MPD client library
2 Summary(pl.UTF-8):      Biblioteka kliencka MPD
3 Name:           libmpdclient
4 Version:        2.19
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:  aee66cbf5ce2ebf1b976e9c6ade0feee
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 static
36 Summary:        Static MPD client library
37 Summary(pl.UTF-8):      Statyczna biblioteka kliencka MPD
38 Group:          Development/Libraries
39 Requires:       %{name}-devel = %{version}-%{release}
40
41 %description static
42 Static MPD client library.
43
44 %description static -l pl.UTF-8
45 Statyczna biblioteka kliencka MPD.
46
47 %package -n vala-libmpdclient
48 Summary:        libmpdclient API for Vala language
49 Summary(pl.UTF-8):      API libmpdclient dla języka Vala
50 Group:          Development/Libraries
51 Requires:       %{name}-devel = %{version}-%{release}
52 BuildArch:      noarch
53
54 %description -n vala-libmpdclient
55 libmpdclient API for Vala language.
56
57 %description -n vala-libmpdclient -l pl.UTF-8
58 API libmpdclient dla języka Vala.
59
60 %prep
61 %setup -q
62
63 %build
64 %meson build \
65         -Ddocumentation=true
66
67 %meson_build -C build
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71
72 %meson_install -C build
73
74 rm -rf $RPM_BUILD_ROOT%{_docdir}
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %post   -p /sbin/ldconfig
80 %postun -p /sbin/ldconfig
81
82 %files
83 %defattr(644,root,root,755)
84 %doc README.rst COPYING AUTHORS NEWS
85 %attr(755,root,root) %{_libdir}/libmpdclient.so.*.*
86 %attr(755,root,root) %ghost %{_libdir}/libmpdclient.so.2
87
88 %files devel
89 %defattr(644,root,root,755)
90 %doc build/doc/html
91 %attr(755,root,root) %{_libdir}/libmpdclient.so
92 %{_includedir}/mpd
93 %{_pkgconfigdir}/libmpdclient.pc
94
95 %files static
96 %defattr(644,root,root,755)
97 %{_libdir}/libmpdclient.a
98
99 %files -n vala-libmpdclient
100 %defattr(644,root,root,755)
101 %{_datadir}/vala/vapi/libmpdclient.vapi
This page took 0.077983 seconds and 3 git commands to generate.