1 Summary: Standalone MPD Web GUI written in C
7 Source0: https://github.com/notandy/ympd/archive/v%{version}/%{name}-%{version}.zip
8 # Source0-md5: 89d339ee9b243bc02aef38baa8f5a823
9 Source1: %{name}.service
10 Source2: %{name}.sysconfig
11 Patch0: %{name}-link.patch
12 URL: http://www.ympd.org
13 BuildRequires: cmake >= 2.6
14 BuildRequires: libmpdclient-devel
15 BuildRequires: openssl-devel
16 BuildRequires: rpmbuild(macros) >= 2.011
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Standalone MPD Web GUI written in C, utilizing Websockets and
35 rm -rf $RPM_BUILD_ROOT
37 %{__make} -C build install \
38 DESTDIR=$RPM_BUILD_ROOT
40 install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
41 install -D %{SOURCE1} $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service
44 rm -rf $RPM_BUILD_ROOT
47 %systemd_post %{name}.service
50 %systemd_preun %{name}.service
56 %defattr(644,root,root,755)
57 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
58 %attr(755,root,root) %{_bindir}/ympd
59 %{systemdunitdir}/%{name}.service
60 %{_mandir}/man1/ympd.1*