From 45b3b4db56fe8df2387da2062c4a396740f01e38 Mon Sep 17 00:00:00 2001 From: Hristo Venev Date: Mon, 30 Sep 2019 16:11:16 +0300 Subject: v0.2.1 --- rust-wgconfd.spec | 42 +++++++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/rust-wgconfd.spec b/rust-wgconfd.spec index 3da6388..89b88d8 100644 --- a/rust-wgconfd.spec +++ b/rust-wgconfd.spec @@ -1,19 +1,24 @@ # Generated by rust2rpm, edited by hand # No tests yet :( -%bcond_with check +%bcond_without check +%bcond_without cratesio %global crate wgconfd Name: rust-%{crate} -Version: 0.1.1 +Version: 0.2.1 Release: 1%{?dist} Summary: A configuration manager for WireGuard -# Upstream license specification: None +# Upstream license specification: LGPL-3.0-or-later License: LGPLv3+ URL: https://git.venev.name/hristo/wgconfd -Source: wgconfd-%{version_no_tilde}.tar.xz +%if %{with cratesio} +Source: %{crates_source} +%else +Source: %{crate}-%{version}.tar.xz +%endif ExclusiveArch: %{rust_arches} @@ -41,12 +46,15 @@ Requires: /usr/bin/wg %files -n %{crate} %{_bindir}/wgconfd %{_unitdir}/wgconfd@.service +%{_unitdir}/wgconfd-state@.service %doc README.md -%license COPYING LICENSE.GPL3 LICENSE.LGPL3 +%license LICENSE LICENSE.GPL3 +%ghost %attr(0755,root,root) %dir /run/wgconfd +%ghost %attr(0755,root,root) %dir /var/cache/wgconfd %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 -sed -i 's@^\(ExecStart=\)/usr/bin/env wgconfd @\1%{_bindir}/wgconfd @' wgconfd@.service +sed -i 's@^\(ExecStart=\)/usr/bin/env wgconfd @\1%{_bindir}/wgconfd @' dist/systemd/wgconfd@.service %cargo_prep %build @@ -54,17 +62,8 @@ sed -i 's@^\(ExecStart=\)/usr/bin/env wgconfd @\1%{_bindir}/wgconfd @' wgconfd@. %install %cargo_install -install -p -D -m 0644 -t $RPM_BUILD_ROOT%{_unitdir} wgconfd@.service - -%post -%systemd_post wgconfd@.service - -%preun -%systemd_preun wgconfd@.service - -%postun -# TODO: wgconfd does not handle restarts cleanly yet. -%systemd_postun wgconfd@.service +install -p -D -m 0644 -t $RPM_BUILD_ROOT%{_unitdir} dist/systemd/wgconfd@.service +install -p -D -m 0644 -t $RPM_BUILD_ROOT%{_unitdir} dist/systemd/wgconfd-state@.service %if %{with check} %check @@ -72,5 +71,14 @@ install -p -D -m 0644 -t $RPM_BUILD_ROOT%{_unitdir} wgconfd@.service %endif %changelog +* Mon Sep 30 16:11:16 EEST 2019 Hristo Venev - 0.2.1-1 +- Update to 0.2.1. + +* Sun Sep 29 18:06:37 EEST 2019 Hristo Venev - 0.2.0-1 +- Update to 0.2.0. + +* Fri May 17 18:19:14 BST 2019 Hristo Venev - 0.1.2-1 +- Update to 0.1.2. + * Tue Apr 02 16:09:43 EEST 2019 Hristo Venev - 0.1.1-1 - Initial package -- cgit