]>
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 |
51fdc164 | 4 | Version: 0.33 |
a6a8f75e | 5 | Release: 1 |
12db0155 | 6 | License: GPL v2+ |
af25752e | 7 | Group: Applications |
eb2f02f8 | 8 | Source0: https://www.musicpd.org/download/mpc/0/%{name}-%{version}.tar.xz |
51fdc164 | 9 | # Source0-md5: 7d1f5c308b5df1f2af0a01360a235af2 |
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 |
dce0449b | 15 | BuildRequires: rpmbuild(macros) >= 1.736 |
e30c4563 | 16 | BuildRequires: sphinx-pdg |
17e25d8a JP |
17 | BuildRequires: tar >= 1:1.22 |
18 | BuildRequires: xz | |
1822dec8 | 19 | Requires: libmpdclient >= 2.9 |
f8314152 | 20 | Suggests: bash-completion-%{name} |
af25752e RK |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
24 | Comandline client for mpd daemon. | |
25 | ||
69e8018d JR |
26 | %description -l pl.UTF-8 |
27 | Klient dla daemona mpd obsługiwany z wiersza poleceń. | |
af25752e | 28 | |
f8314152 ER |
29 | %package -n bash-completion-%{name} |
30 | Summary: bash-completion for mpc | |
31 | Group: Applications/Shells | |
32 | Requires: bash-completion | |
df670911 | 33 | BuildArch: noarch |
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 | |
dce0449b | 44 | %ninja_build -C build |
af25752e RK |
45 | |
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
dce0449b | 48 | %ninja_install -C build |
605ff545 | 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/* |