]>
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 |
dd665e73 | 4 | Version: 0.35 |
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 |
dd665e73 | 9 | # Source0-md5: f609716926f9d59b189025f8c7a24dd0 |
564dea06 | 10 | URL: http://www.musicpd.org |
dd665e73 | 11 | BuildRequires: libmpdclient-devel >= 2.18 |
e30c4563 | 12 | BuildRequires: meson >= 0.47 |
605ff545 | 13 | BuildRequires: ninja |
2daddca6 | 14 | BuildRequires: pkgconfig |
d42fe808 | 15 | BuildRequires: rpm-build >= 4.6 |
dce0449b | 16 | BuildRequires: rpmbuild(macros) >= 1.736 |
e30c4563 | 17 | BuildRequires: sphinx-pdg |
17e25d8a JP |
18 | BuildRequires: tar >= 1:1.22 |
19 | BuildRequires: xz | |
dd665e73 | 20 | Requires: libmpdclient >= 2.18 |
f8314152 | 21 | Suggests: bash-completion-%{name} |
af25752e RK |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
25 | Comandline client for mpd daemon. | |
26 | ||
69e8018d JR |
27 | %description -l pl.UTF-8 |
28 | Klient dla daemona mpd obsługiwany z wiersza poleceń. | |
af25752e | 29 | |
f8314152 ER |
30 | %package -n bash-completion-%{name} |
31 | Summary: bash-completion for mpc | |
32 | Group: Applications/Shells | |
33 | Requires: bash-completion | |
df670911 | 34 | BuildArch: noarch |
f8314152 ER |
35 | |
36 | %description -n bash-completion-%{name} | |
37 | This package provides bash-completion for mpc. | |
38 | ||
af25752e RK |
39 | %prep |
40 | %setup -q | |
41 | ||
42 | %build | |
e30c4563 JP |
43 | %meson build \ |
44 | -Ddocumentation=enabled | |
dce0449b | 45 | %ninja_build -C build |
af25752e RK |
46 | |
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
dce0449b | 49 | %ninja_install -C build |
605ff545 | 50 | |
f8314152 | 51 | install -d $RPM_BUILD_ROOT/etc/bash_completion.d |
605ff545 JP |
52 | cp -p contrib/mpc-completion.bash $RPM_BUILD_ROOT/etc/bash_completion.d |
53 | ||
54 | rm -r $RPM_BUILD_ROOT%{_docdir}/mpc | |
f8314152 | 55 | |
af25752e RK |
56 | %clean |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
e30c4563 | 61 | %doc AUTHORS README.rst NEWS build/doc/html |
605ff545 | 62 | %doc contrib/mpd-m3u-handler.sh contrib/mpd-pls-handler.sh |
f8314152 ER |
63 | %attr(755,root,root) %{_bindir}/mpc |
64 | %{_mandir}/man1/mpc.1* | |
65 | ||
66 | %files -n bash-completion-%{name} | |
67 | %defattr(644,root,root,755) | |
68 | /etc/bash_completion.d/* |