BRs for tar.xz source
[packages/libmpdclient.git] / libmpdclient.spec
1 Summary:        MPD client library
2 Summary(pl.UTF-8):      Biblioteka kliencka MPD
3 Name:           libmpdclient
4 Version:        2.20
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:  2c007da25c0de18921f9fb3155218865
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.736
15 BuildRequires:  tar >= 1:1.22
16 BuildRequires:  xz
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Library for Music Player Daemon client development.
21
22 %description -l pl.UTF-8
23 Biblioteka do tworzenia klientów demona MPD (Music Player Daemon).
24
25 %package devel
26 Summary:        Header files for the MPD client library
27 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki klienckiej MPD
28 Group:          Development/Libraries
29 Requires:       %{name} = %{version}-%{release}
30
31 %description devel
32 Header files for MPD client library.
33
34 %description devel -l pl.UTF-8
35 Pliki nagłówkowe biblioteki klienckiej MPD.
36
37 %package static
38 Summary:        Static MPD client library
39 Summary(pl.UTF-8):      Statyczna biblioteka kliencka MPD
40 Group:          Development/Libraries
41 Requires:       %{name}-devel = %{version}-%{release}
42
43 %description static
44 Static MPD client library.
45
46 %description static -l pl.UTF-8
47 Statyczna biblioteka kliencka MPD.
48
49 %package -n vala-libmpdclient
50 Summary:        libmpdclient API for Vala language
51 Summary(pl.UTF-8):      API libmpdclient dla języka Vala
52 Group:          Development/Libraries
53 Requires:       %{name}-devel = %{version}-%{release}
54 BuildArch:      noarch
55
56 %description -n vala-libmpdclient
57 libmpdclient API for Vala language.
58
59 %description -n vala-libmpdclient -l pl.UTF-8
60 API libmpdclient dla języka Vala.
61
62 %prep
63 %setup -q
64
65 %build
66 %meson build \
67         -Ddocumentation=true
68
69 %ninja_build -C build
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73
74 %ninja_install -C build
75
76 rm -rf $RPM_BUILD_ROOT%{_docdir}
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %post   -p /sbin/ldconfig
82 %postun -p /sbin/ldconfig
83
84 %files
85 %defattr(644,root,root,755)
86 %doc README.rst COPYING AUTHORS NEWS
87 %attr(755,root,root) %{_libdir}/libmpdclient.so.*.*
88 %attr(755,root,root) %ghost %{_libdir}/libmpdclient.so.2
89
90 %files devel
91 %defattr(644,root,root,755)
92 %doc build/doc/html
93 %attr(755,root,root) %{_libdir}/libmpdclient.so
94 %{_includedir}/mpd
95 %{_pkgconfigdir}/libmpdclient.pc
96
97 %files static
98 %defattr(644,root,root,755)
99 %{_libdir}/libmpdclient.a
100
101 %files -n vala-libmpdclient
102 %defattr(644,root,root,755)
103 %{_datadir}/vala/vapi/libmpdclient.vapi
This page took 0.069772 seconds and 3 git commands to generate.