Name: linuxcounter Version: 0.0.4 Release: 2016.02.02%{?dist} Summary: Official machine update script for the New Linux Counter Project (linuxcounter.net) License: GPLv3 URL: https://linuxcounter.net Source0: https://github.com/alexloehner/linuxcounter-update-examples/raw/master/_official/lico-update.sh Source1: linuxcounter.service Source2: linuxcounter.timer Source3: linuxcounter.conf.sysusers BuildRequires: systemd # awk, ping, grep etc #Requires: BuildArch: noarch %description The lico-update.sh script is the new official machine update script for the new RESTful API on linuxcounter.net Update your linuxcounter machines directly via this script without the need for log into your account Automate the machine update by installing a systemd timer invoking a simple command %prep %build %install install -m 0755 -D %{SOURCE0} %{buildroot}%{_bindir}/lico-update.sh install -m 0444 -D %{SOURCE1} %{buildroot}%{_unitdir}/linuxcounter.service install -m 0444 -D %{SOURCE2} %{buildroot}%{_unitdir}/linuxcounter.timer install -m 0444 -D %{SOURCE3} %{buildroot}%{_sysusersdir}/linuxcounter.conf mkdir -p %{buildroot}%{_sharedstatedir}/linuxcounter %files %{_bindir}/lico-update.sh %{_unitdir}/linuxcounter.service %{_unitdir}/linuxcounter.timer %{_sysusersdir}/linuxcounter.conf %attr(0755, linuxcounter, linuxcounter) %dir %{_sharedstatedir}/linuxcounter %post %sysusers_create linuxcounter.conf %systemd_post linuxcounter.timer %preun %systemd_preun linuxcounter.timer %postun %systemd_postun linuxcounter.timer %changelog * Tue Feb 02 2016 Tomasz Torcz - 0.0.4-2016.02.02 - package latest git sources - tweaks to units * Mon Jun 22 2015 Tomasz Torcz - 0.0.4-1 - initial package, with systemd unit and timer