|
a/rpm/upmpdcli.spec |
|
b/rpm/upmpdcli.spec |
1 |
Summary: UPnP Media Renderer front-end to MPD, the Music Player Daemon
|
1 |
Summary: UPnP Media Renderer front-end to MPD, the Music Player Daemon
|
2 |
Name: upmpdcli
|
2 |
Name: upmpdcli
|
3 |
Version: 0.5
|
3 |
Version: 0.6.1
|
4 |
Release: 1%{?dist}
|
4 |
Release: 1%{?dist}
|
5 |
Group: Applications/Multimedia
|
5 |
Group: Applications/Multimedia
|
6 |
License: GPLv2+
|
6 |
License: GPLv2+
|
7 |
URL: http://www.lesbonscomptes.com/updmpdcli
|
7 |
URL: http://www.lesbonscomptes.com/updmpdcli
|
8 |
Source0: http://www.lesbonscomptes.com/upmpdcli/downloads/upmpdcli-%{version}.tar.gz
|
8 |
Source0: http://www.lesbonscomptes.com/upmpdcli/downloads/upmpdcli-%{version}.tar.gz
|
|
|
9 |
Requires(pre): shadow-utils
|
|
|
10 |
Requires(post): systemd
|
|
|
11 |
Requires(preun): systemd
|
|
|
12 |
Requires(postun): systemd
|
9 |
BuildRequires: libupnp-devel
|
13 |
BuildRequires: libupnp-devel
|
10 |
BuildRequires: libmpdclient-devel
|
14 |
BuildRequires: libmpdclient-devel
|
|
|
15 |
BuildRequires: systemd-units
|
11 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
16 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
12 |
|
17 |
|
13 |
%description
|
18 |
%description
|
14 |
Upmpdcli turns MPD, the Music Player Daemon into an UPnP Media Renderer,
|
19 |
Upmpdcli turns MPD, the Music Player Daemon into an UPnP Media Renderer,
|
15 |
usable with most UPnP Control Point applications, such as those which run
|
20 |
usable with most UPnP Control Point applications, such as those which run
|
16 |
on Android tablets or phones.
|
21 |
on Android tablets or phones.
|
17 |
|
22 |
|
|
|
23 |
|
18 |
%prep
|
24 |
%prep
|
19 |
%setup -q
|
25 |
%setup -q
|
20 |
|
26 |
|
21 |
%build
|
27 |
%build
|
22 |
%configure
|
28 |
%configure
|
23 |
%{__make} %{?_smp_mflags}
|
29 |
%{__make} %{?_smp_mflags}
|
24 |
%{__rm} -f %{buildroot}%{_libdir}/libupnpp.a
|
30 |
|
25 |
%{__rm} -f %{buildroot}%{_libdir}/libupnpp.la
|
31 |
%pre
|
|
|
32 |
getent group upmpdcli >/dev/null || groupadd -r upmpdcli
|
|
|
33 |
getent passwd upmpdcli >/dev/null || \
|
|
|
34 |
useradd -r -g upmpdcli -d /nonexistent -s /sbin/nologin \
|
|
|
35 |
-c "upmpdcli mpd UPnP front-end" upmpdcli
|
|
|
36 |
exit 0
|
26 |
|
37 |
|
27 |
%install
|
38 |
%install
|
28 |
%{__rm} -rf %{buildroot}
|
39 |
%{__rm} -rf %{buildroot}
|
29 |
%{__make} install DESTDIR=%{buildroot} STRIP=/bin/true INSTALL='install -p'
|
40 |
%{__make} install DESTDIR=%{buildroot} STRIP=/bin/true INSTALL='install -p'
|
30 |
%{__rm} -f %{buildroot}%{_libdir}/libupnpp.a
|
41 |
%{__rm} -f %{buildroot}%{_libdir}/libupnpp.a
|
31 |
%{__rm} -f %{buildroot}%{_libdir}/libupnpp.la
|
42 |
%{__rm} -f %{buildroot}%{_libdir}/libupnpp.la
|
32 |
%{__rm} -f %{buildroot}/etc/upmpdcli.conf
|
43 |
install -D -m644 systemd/upmpdcli.service \
|
|
|
44 |
%{buildroot}%{_unitdir}/upmpdcli.service
|
|
|
45 |
|
33 |
|
46 |
|
34 |
%clean
|
47 |
%clean
|
35 |
%{__rm} -rf %{buildroot}
|
48 |
%{__rm} -rf %{buildroot}
|
36 |
|
49 |
|
37 |
%files
|
50 |
%files
|
38 |
%defattr(-, root, root, -)
|
51 |
%defattr(-, root, root, -)
|
39 |
%{_bindir}/%{name}
|
52 |
%{_bindir}/%{name}
|
40 |
%{_libdir}/libupnpp-%{version}.so*
|
53 |
%{_libdir}/libupnpp-%{version}.so*
|
41 |
%{_libdir}/libupnpp.so
|
54 |
%{_libdir}/libupnpp.so
|
42 |
%{_datadir}/%{name}
|
55 |
%{_datadir}/%{name}
|
43 |
#%{_datadir}/%{name}/*
|
|
|
44 |
%{_mandir}/man1/%{name}.1*
|
56 |
%{_mandir}/man1/%{name}.1*
|
|
|
57 |
%{_unitdir}/upmpdcli.service
|
|
|
58 |
%config(noreplace) /etc/upmpdcli.conf
|
|
|
59 |
|
|
|
60 |
%post
|
|
|
61 |
%systemd_post upmpdcli.service
|
|
|
62 |
|
|
|
63 |
%preun
|
|
|
64 |
%systemd_preun upmpdcli.service
|
|
|
65 |
|
|
|
66 |
%postun
|
|
|
67 |
%systemd_postun_with_restart upmpdcli.service
|
45 |
|
68 |
|
46 |
%changelog
|
69 |
%changelog
|
|
|
70 |
* Wed Feb 26 2014 J.F. Dockes <jf@dockes.org> - 0.6.1
|
|
|
71 |
- Version 0.6.1
|
47 |
* Thu Feb 13 2014 J.F. Dockes <jf@dockes.org> - 0.5
|
72 |
* Thu Feb 13 2014 J.F. Dockes <jf@dockes.org> - 0.5
|
48 |
- Version 0.5
|
73 |
- Version 0.5
|
49 |
* Wed Feb 12 2014 J.F. Dockes <jf@dockes.org> - 0.4
|
74 |
* Wed Feb 12 2014 J.F. Dockes <jf@dockes.org> - 0.4
|
50 |
- Version 0.4
|
75 |
- Version 0.4
|