summaryrefslogtreecommitdiff
path: root/mpc.spec
blob: d613879696abfbdf6f2cf979a8f272a2805c0ae4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Summary:	Comandline client for mpd
Summary(pl.UTF-8):	Klient wiersza poleceń dla mpd
Name:		mpc
Version:	0.33
Release:	1
License:	GPL v2+
Group:		Applications
Source0:	http://www.musicpd.org/download/mpc/0/%{name}-%{version}.tar.xz
# Source0-md5:	7d1f5c308b5df1f2af0a01360a235af2
URL:		http://www.musicpd.org
BuildRequires:	libmpdclient-devel >= 2.9
BuildRequires:	meson >= 0.47
BuildRequires:	ninja
BuildRequires:	pkgconfig
BuildRequires:	rpmbuild(macros) >= 1.727
BuildRequires:	sphinx-pdg
Requires:	libmpdclient >= 2.9
Suggests:	bash-completion-%{name}
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Comandline client for mpd daemon.

%description -l pl.UTF-8
Klient dla daemona mpd obsługiwany z wiersza poleceń.

%package -n bash-completion-%{name}
Summary:	bash-completion for mpc
Group:		Applications/Shells
Requires:	bash-completion
%if "%{_rpmversion}" >= "5"
BuildArch:	noarch
%endif

%description -n bash-completion-%{name}
This package provides bash-completion for mpc.

%prep
%setup -q

%build
%meson build \
	-Ddocumentation=enabled
%meson_build -C build

%install
rm -rf $RPM_BUILD_ROOT
%meson_install -C build

install -d $RPM_BUILD_ROOT/etc/bash_completion.d
cp -p contrib/mpc-completion.bash $RPM_BUILD_ROOT/etc/bash_completion.d

rm -r $RPM_BUILD_ROOT%{_docdir}/mpc

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc AUTHORS README.rst NEWS build/doc/html
%doc contrib/mpd-m3u-handler.sh contrib/mpd-pls-handler.sh
%attr(755,root,root) %{_bindir}/mpc
%{_mandir}/man1/mpc.1*

%files -n bash-completion-%{name}
%defattr(644,root,root,755)
/etc/bash_completion.d/*