v1.4.4 - Move source to archive and use cmake

This commit is contained in:
2022-05-19 00:42:08 +02:00
parent e82685fc21
commit 9eb48bfa97
15 changed files with 12 additions and 475 deletions

View File

@@ -1,5 +1,5 @@
Name: md-renewed
Version: 1.4.3
Version: 1.4.4
Release: 1%{?dist}
Summary: Restart service on Apache module mod_md certificate renewal
License: MIT
@@ -7,23 +7,9 @@ Group: System Environment/Base
URL: http://netst.org/pub/fedora/st/
BuildArch: noarch
Source0: md-renewed
Source1: md-message
Source0: md-renewed-%{version}.tar.gz
Source2: md-renewed.path
Source3: md-renewed.service
Source4: md-renewed.timer
Source5: md-renewed-install
Source6: md-renewed-install.timer
Source7: md-renewed-install.service
Source10: md-renewed-httpd.conf
Source11: md-renewed.conf
Source20: example.service
Source21: example.cert
Source22: example.sh
BuildRequires: cmake
Requires: httpd
Requires: mod_md
@@ -34,40 +20,18 @@ BuildRequires: systemd-rpm-macros
%description
Restart service on Apache module mod_md certificate renewal
%prep
%autosetup
%build
%cmake
%cmake_build
%install
%{__rm} -rf %{buildroot}
%cmake_install
%{__install} -d -m 0755 %{buildroot}%{_libexecdir}/md-renewed
%{__install} -m 0755 %{SOURCE0} %{buildroot}%{_libexecdir}/md-renewed/md-renewed
%{__install} -m 0755 %{SOURCE1} %{buildroot}%{_libexecdir}/md-renewed/md-message
%{__install} -m 0755 %{SOURCE5} %{buildroot}%{_libexecdir}/md-renewed/md-renewed-install
%{__install} -d -m 0755 %{buildroot}%{_unitdir}
%{__install} -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/
%{__install} -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/
%{__install} -m 0644 %{SOURCE4} %{buildroot}%{_unitdir}/
%{__install} -m 0644 %{SOURCE6} %{buildroot}%{_unitdir}/
%{__install} -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}/
%{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/httpd/conf.d
%{__install} -m 0644 %{SOURCE10} %{buildroot}%{_sysconfdir}/httpd/conf.d/md-renewed.conf
%{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/md-renewed
%{__install} -m 0644 %{SOURCE11} %{buildroot}%{_sysconfdir}/md-renewed/
%{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/md-renewed/example.com
%{__install} -m 0644 %{SOURCE20} %{buildroot}%{_sysconfdir}/md-renewed/example.com/
%{__install} -m 0644 %{SOURCE21} %{buildroot}%{_sysconfdir}/md-renewed/example.com/
%{__install} -m 0755 %{SOURCE22} %{buildroot}%{_sysconfdir}/md-renewed/example.com/
%{__install} -d -m 0775 %{buildroot}%{_sharedstatedir}/httpd/md-renewed/
%{__install} -d -m 0775 %{buildroot}%{_sharedstatedir}/httpd/md-renewed/errored
%{__install} -d -m 0775 %{buildroot}%{_sharedstatedir}/httpd/md-renewed/installed
%{__install} -d -m 0775 %{buildroot}%{_sharedstatedir}/httpd/md-renewed/installing
%{__install} -d -m 0775 %{buildroot}%{_sharedstatedir}/httpd/md-renewed/renewed
%{__install} -d -m 0775 %{buildroot}%{_sharedstatedir}/httpd/md-renewed/renewing
%{__install} -d -m 0775 %{buildroot}%{_sharedstatedir}/httpd/md-renewed/ocsp-renewed
%{__install} -d -m 0775 %{buildroot}%{_sharedstatedir}/httpd/md-renewed/ocsp-errored
%post
%systemd_post md-renewed.path