]>
Commit | Line | Data |
---|---|---|
af25752e | 1 | Summary: Comandline client for mpd |
c78714cf | 2 | Summary(pl.UTF-8): Klient wiersza poleceń dla mpd |
af25752e | 3 | Name: mpc |
7774b1d2 | 4 | Version: 0.32 |
a6a8f75e | 5 | Release: 1 |
12db0155 | 6 | License: GPL v2+ |
af25752e | 7 | Group: Applications |
df582dec | 8 | Source0: http://www.musicpd.org/download/mpc/0/%{name}-%{version}.tar.xz |
7774b1d2 | 9 | # Source0-md5: a921749b37caa9a486e41b354b9e0060 |
564dea06 | 10 | URL: http://www.musicpd.org |
1822dec8 | 11 | BuildRequires: libmpdclient-devel >= 2.9 |
e30c4563 | 12 | BuildRequires: meson >= 0.47 |
605ff545 | 13 | BuildRequires: ninja |
2daddca6 | 14 | BuildRequires: pkgconfig |
605ff545 | 15 | BuildRequires: rpmbuild(macros) >= 1.727 |
e30c4563 | 16 | BuildRequires: sphinx-pdg |
1822dec8 | 17 | Requires: libmpdclient >= 2.9 |
f8314152 | 18 | Suggests: bash-completion-%{name} |
af25752e RK |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | Comandline client for mpd daemon. | |
23 | ||
69e8018d JR |
24 | %description -l pl.UTF-8 |
25 | Klient dla daemona mpd obsługiwany z wiersza poleceń. | |
af25752e | 26 | |
f8314152 ER |
27 | %package -n bash-completion-%{name} |
28 | Summary: bash-completion for mpc | |
29 | Group: Applications/Shells | |
30 | Requires: bash-completion | |
df670911 ER |
31 | %if "%{_rpmversion}" >= "5" |
32 | BuildArch: noarch | |
33 | %endif | |
f8314152 ER |
34 | |
35 | %description -n bash-completion-%{name} | |
36 | This package provides bash-completion for mpc. | |
37 | ||
af25752e RK |
38 | %prep |
39 | %setup -q | |
40 | ||
41 | %build | |
e30c4563 JP |
42 | %meson build \ |
43 | -Ddocumentation=enabled | |
605ff545 | 44 | %meson_build -C build |
af25752e RK |
45 | |
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
605ff545 JP |
48 | %meson_install -C build |
49 | ||
f8314152 | 50 | install -d $RPM_BUILD_ROOT/etc/bash_completion.d |
605ff545 JP |
51 | cp -p contrib/mpc-completion.bash $RPM_BUILD_ROOT/etc/bash_completion.d |
52 | ||
53 | rm -r $RPM_BUILD_ROOT%{_docdir}/mpc | |
f8314152 | 54 | |
af25752e RK |
55 | %clean |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
e30c4563 | 60 | %doc AUTHORS README.rst NEWS build/doc/html |
605ff545 | 61 | %doc contrib/mpd-m3u-handler.sh contrib/mpd-pls-handler.sh |
f8314152 ER |
62 | %attr(755,root,root) %{_bindir}/mpc |
63 | %{_mandir}/man1/mpc.1* | |
64 | ||
65 | %files -n bash-completion-%{name} | |
66 | %defattr(644,root,root,755) | |
67 | /etc/bash_completion.d/* |