# # spec file for package acmed %global debug_package %{nil} Name: acmed Summary: A client for the ACME protocol. Version: 0.23.0 Release: 2%{?dist} License: MIT Url: https://github.com/breard-r/acmed Source0: https://github.com/breard-r/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version} BuildRequires: make BuildRequires: openssl-devel BuildRequires: rust BuildRequires: cargo BuildRequires: systemd-units %description The Automatic Certificate Management Environment (ACME), is an internet standard (RFC 8555) which allows to automate X.509 certificates signing by a Certification Authority (CA). ACMEd is one of the many clients for this protocol. %prep %autosetup -n %{name}-%{version} %build cargo update make %install make DESTDIR=%{buildroot} install mkdir -p %{buildroot}%{_unitdir} install -m644 contrib/systemd/acmed.service %{buildroot}%{_unitdir}/acmed.service # Docs mkdir -p %{buildroot}%{_defaultdocdir}/acmed install -m644 CHANGELOG.md %{buildroot}%{_defaultdocdir}/acmed/CHANGELOG.md install -m644 CONTRIBUTING.md %{buildroot}%{_defaultdocdir}/acmed/CONTRIBUTING.md install -m644 LICENSE-APACHE-2.0.txt %{buildroot}%{_defaultdocdir}/acmed/LICENSE-APACHE-2.0.txt install -m644 LICENSE-MIT.txt %{buildroot}%{_defaultdocdir}/acmed/LICENSE-MIT.txt install -m644 README.md %{buildroot}%{_defaultdocdir}/acmed/README.md %clean rm -rf %{buildroot} %pre getent group acmed >/dev/null || groupadd -r acmed getent passwd acmed >/dev/null || \ useradd -r -g acmed -d /etc/acmed -s /sbin/nologin \ -c "ACMEd" acmed %files %defattr(-,root,root,-) %attr(755, root, root) %{_bindir}/acmed %attr(755, root, root) %{_bindir}/tacd %attr(644, root, root) %{_mandir}/man5/acmed.toml.5.gz %attr(644, root, root) %{_mandir}/man8/acmed.8.gz %attr(644, root, root) %{_mandir}/man8/tacd.8.gz %attr(644, root, root) %{_sysconfdir}/acmed/acmed.toml %attr(644, root, root) %{_sysconfdir}/acmed/letsencrypt.toml %attr(644, root, root) %{_sysconfdir}/acmed/default_hooks.toml %attr(755, root, root) %{_unitdir}/acmed.service %attr(-, root, root) %{_localstatedir}/lib/acmed/certs %attr(-, root, root) %{_localstatedir}/lib/acmed/accounts %attr(-, root, root) %{_defaultdocdir}/acmed %changelog * Thu Nov 7 2024 Marco Bignami 0.23.0-2 - Fix package build. * Fri Sep 20 2024 Marco Bignami 0.23.0-1 - Upgraded to current upstream. * Thu Nov 23 2023 Marco Bignami 0.21.0-1 - Upgraded to current upstream. * Wed Sep 28 2022 Marco Bignami 0.20.0-1 - Upgraded to current upstream. * Thu Sep 23 2021 Marco Bignami 0.18.0-1 - Upgraded to current upstream. * Fri Apr 23 2021 Marco Bignami 0.16.0-2 - Removed group tag. * Thu Feb 11 2021 Marco Bignami 0.16.0-1 - Initial build.