]> git.pld-linux.org Git - SPECS.git/blob - mpc.spec
SPECS updated Sun 1 Aug 20:28:02 CEST 2021
[SPECS.git] / mpc.spec
1 Summary:        Comandline client for mpd
2 Summary(pl.UTF-8):      Klient wiersza poleceń dla mpd
3 Name:           mpc
4 Version:        0.33
5 Release:        1
6 License:        GPL v2+
7 Group:          Applications
8 Source0:        http://www.musicpd.org/download/mpc/0/%{name}-%{version}.tar.xz
9 # Source0-md5:  7d1f5c308b5df1f2af0a01360a235af2
10 URL:            http://www.musicpd.org
11 BuildRequires:  libmpdclient-devel >= 2.9
12 BuildRequires:  meson >= 0.47
13 BuildRequires:  ninja
14 BuildRequires:  pkgconfig
15 BuildRequires:  rpmbuild(macros) >= 1.727
16 BuildRequires:  sphinx-pdg
17 Requires:       libmpdclient >= 2.9
18 Suggests:       bash-completion-%{name}
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 Comandline client for mpd daemon.
23
24 %description -l pl.UTF-8
25 Klient dla daemona mpd obsługiwany z wiersza poleceń.
26
27 %package -n bash-completion-%{name}
28 Summary:        bash-completion for mpc
29 Group:          Applications/Shells
30 Requires:       bash-completion
31 BuildArch:      noarch
32
33 %description -n bash-completion-%{name}
34 This package provides bash-completion for mpc.
35
36 %prep
37 %setup -q
38
39 %build
40 %meson build \
41         -Ddocumentation=enabled
42 %meson_build -C build
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 %meson_install -C build
47
48 install -d $RPM_BUILD_ROOT/etc/bash_completion.d
49 cp -p contrib/mpc-completion.bash $RPM_BUILD_ROOT/etc/bash_completion.d
50
51 rm -r $RPM_BUILD_ROOT%{_docdir}/mpc
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc AUTHORS README.rst NEWS build/doc/html
59 %doc contrib/mpd-m3u-handler.sh contrib/mpd-pls-handler.sh
60 %attr(755,root,root) %{_bindir}/mpc
61 %{_mandir}/man1/mpc.1*
62
63 %files -n bash-completion-%{name}
64 %defattr(644,root,root,755)
65 /etc/bash_completion.d/*
This page took 0.878097 seconds and 3 git commands to generate.