]> git.pld-linux.org Git - packages/mpc.git/blob - mpc.spec
0a137d436db667b546dbe21e4cbe5910e12c690d
[packages/mpc.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.28
5 Release:        1
6 License:        GPL
7 Group:          Applications
8 Source0:        http://www.musicpd.org/download/mpc/0/%{name}-%{version}.tar.xz
9 # Source0-md5:  e9cfaf17ab1db54dba4df4b08aa0db3f
10 URL:            http://www.musicpd.org
11 BuildRequires:  autoconf >= 2.60
12 BuildRequires:  automake
13 BuildRequires:  libmpdclient-devel >= 2.9
14 BuildRequires:  pkgconfig
15 Requires:       libmpdclient >= 2.9
16 Suggests:       bash-completion-%{name}
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Comandline client for mpd daemon.
21
22 %description -l pl.UTF-8
23 Klient dla daemona mpd obsługiwany z wiersza poleceń.
24
25 %package -n bash-completion-%{name}
26 Summary:        bash-completion for mpc
27 Group:          Applications/Shells
28 Requires:       bash-completion
29 %if "%{_rpmversion}" >= "5"
30 BuildArch:      noarch
31 %endif
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 %{__aclocal} -I m4
41 %{__autoconf}
42 %{__autoheader}
43 %{__automake}
44 %configure
45 %{__make}
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49 %{__make} install \
50         doc_DATA= \
51         DESTDIR=$RPM_BUILD_ROOT
52
53 install -d $RPM_BUILD_ROOT/etc/bash_completion.d
54 cp -p doc/mpc-completion.bash $RPM_BUILD_ROOT/etc/bash_completion.d
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %doc AUTHORS README NEWS
62 %doc doc/mpd-m3u-handler.sh doc/mpd-pls-handler.sh doc/mppledit
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/*
This page took 0.054001 seconds and 3 git commands to generate.