Switch to unified view

a/rpm/upmpdcli.spec b/rpm/upmpdcli.spec
1
Summary:        UPnP Media Renderer front-end to MPD, the Music Player Daemon
1
Summary:        C++ wrapper for libupnp
2
Name:           upmpdcli
2
Name:           libupnpp
3
Version:        0.8.1
3
Version:        0.8.4
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/libupnpp-%{version}.tar.gz
9
Requires(pre):  shadow-utils
9
Requires(pre):  shadow-utils
10
Requires(post): systemd
10
Requires(post): systemd
11
Requires(preun): systemd
11
Requires(preun): systemd
12
Requires(postun): systemd
12
Requires(postun): systemd
13
BuildRequires:  libupnp-devel
13
BuildRequires:  libupnp-devel
...
...
15
BuildRequires:  expat-devel
15
BuildRequires:  expat-devel
16
BuildRequires:  systemd-units
16
BuildRequires:  systemd-units
17
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
17
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
18
18
19
%description
19
%description
20
Upmpdcli turns MPD, the Music Player Daemon into an UPnP Media Renderer,
20
libupnpp is a C++ wrapper over libupnp. It exists mostly for supporting
21
usable with most UPnP Control Point applications, such as those which run
21
upmpdcli and upplay
22
on Android tablets or phones.
23
24
22
25
%prep
23
%prep
26
%setup -q
24
%setup -q
27
25
28
%build
26
%build
29
%configure
27
%configure
30
%{__make} %{?_smp_mflags}
28
%{__make} %{?_smp_mflags}
31
29
32
%pre
33
getent group upmpdcli >/dev/null || groupadd -r upmpdcli
34
getent passwd upmpdcli >/dev/null || \
35
    useradd -r -g upmpdcli -d /nonexistent -s /sbin/nologin \
36
    -c "upmpdcli mpd UPnP front-end" upmpdcli
37
exit 0
38
39
%install
30
%install
40
%{__rm} -rf %{buildroot}
31
%{__rm} -rf %{buildroot}
41
%{__make} install DESTDIR=%{buildroot} STRIP=/bin/true INSTALL='install -p'
32
%{__make} install DESTDIR=%{buildroot} STRIP=/bin/true INSTALL='install -p'
42
%{__rm} -f %{buildroot}%{_libdir}/libupnpp.a
33
%{__rm} -f %{buildroot}%{_libdir}/libupnpp.a
43
%{__rm} -f %{buildroot}%{_libdir}/libupnpp.la
34
%{__rm} -f %{buildroot}%{_libdir}/libupnpp.la
44
install -D -m644 systemd/upmpdcli.service \
45
        %{buildroot}%{_unitdir}/upmpdcli.service
46
47
35
48
%clean
36
%clean
49
%{__rm} -rf %{buildroot}
37
%{__rm} -rf %{buildroot}
50
38
51
%files
39
%files
52
%defattr(-, root, root, -)
40
%defattr(-, root, root, -)
53
%{_bindir}/%{name}
54
%{_includedir}/libupnpp
41
%{_includedir}/libupnpp
55
%{_libdir}/libupnpp-%{version}.so*
42
%{_libdir}/libupnpp-%{version}.so*
56
%{_libdir}/libupnpp.so
43
%{_libdir}/libupnpp.so
57
%{_datadir}/%{name}
58
%{_mandir}/man1/%{name}.1*
59
%{_unitdir}/upmpdcli.service
60
%config(noreplace) /etc/upmpdcli.conf
61
62
%post
63
%systemd_post upmpdcli.service
64
65
%preun
66
%systemd_preun upmpdcli.service
67
68
%postun
69
%systemd_postun_with_restart upmpdcli.service 
70
44
71
%changelog
45
%changelog
72
* Mon Jun 09 2014 J.F. Dockes <jf@dockes.org> - 0.7.1
73
 Implement OpenHome services
74
* Sun Apr 20 2014 J.F. Dockes <jf@dockes.org> - 0.6.4
46
* Sun Oct 12 2014 J.F. Dockes <jf@dockes.org> - 0.8.4
75
 Configuration of UPnP interface and port, MPD password.
47
- Separation from upmpdcli
76
* Wed Mar 26 2014 J.F. Dockes <jf@dockes.org> - 0.6.3
77
 Version 0.6.3 fixes seeking
78
* Sun Mar 02 2014 J.F. Dockes <jf@dockes.org> - 0.6.2
79
 Version 0.6.2
80
* Wed Feb 26 2014 J.F. Dockes <jf@dockes.org> - 0.6.1
81
 Version 0.6.1
82
* Thu Feb 13 2014 J.F. Dockes <jf@dockes.org> - 0.5
83
 Version 0.5
84
* Wed Feb 12 2014 J.F. Dockes <jf@dockes.org> - 0.4
85
 Version 0.4