## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: acme-sh Version: 3.1.6 Release: %autorelease Summary: An ACME protocol client written purely in Shell License: GPL-3.0-only URL: https://zerossl.com/p/acme-sh Source: https://github.com/acmesh-official/acme.sh/archive/refs/tags/%{version}.tar.gz # https://github.com/acmesh-official/acme.sh/wiki/How-to-install#6-for-distro-packagers Source1: acme.sh.tpl Source2: acme-sh-renew-systemd.service Source3: acme-sh-renew-systemd.timer Source4: acme-sh.logrotate BuildArch: noarch BuildRequires: bash BuildRequires: sed BuildRequires: curl BuildRequires: ca-certificates BuildRequires: openssl BuildRequires: python3 # systemd integration BuildRequires: systemd %{?systemd_requires} Requires: bash Requires: curl Requires: openssl Requires: logrotate %global debug_package %{nil} %global official_name acme.sh %global install_dir %{_datarootdir}/%{name} %description An ACME protocol client written purely in Shell (Unix shell) language %prep %autosetup -n %{official_name}-%{version} %build %install rm -rf %{buildroot} ./acme.sh --install --nocron --home %{buildroot}%{install_dir} --config-home %{buildroot}%{_sysconfdir}/%{name} --cert-home %{buildroot}%{_sysconfdir}/%{name}/certificates find %{buildroot}%{install_dir} %{buildroot}%{_sysconfdir} -type f -exec sed -i -e s@%{buildroot}@@g {} \; sed -i -e 's@#LOG_FILE=.*@LOG_FILE=%{_localstatedir}/log/%{name}/acme-sh.log@' %{buildroot}%{_sysconfdir}/%{name}/account.conf mkdir -p %{buildroot}%{_bindir} sed -e 's@__INSTALL_DIR__@%{install_dir}@' \ -e 's@__CONFIG_DIR__@%{_sysconfdir}/%{name}@' \ -e 's@__WORKING_DIR__@%{_localstatedir}/lib/%{name}@' \ %{SOURCE1} > %{buildroot}%{_bindir}/acme.sh install -Dm 0644 --preserve-timestamps %{SOURCE2} %{buildroot}%{_unitdir}/acme-sh-renew.service install -Dm 0644 --preserve-timestamps %{SOURCE3} %{buildroot}%{_unitdir}/acme-sh-renew.timer install -Dm 0644 --preserve-timestamps %{SOURCE4} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} mkdir -p %{buildroot}%{_localstatedir}/{lib,log}/%{name} %files %defattr(0644,root,root,0755) %attr(0755,root,root) %{_bindir}/acme.sh %dir %{_sysconfdir}/%{name} %dir %{_sysconfdir}/%{name}/certificates %config(noreplace) %{_sysconfdir}/%{name}/account.conf %ghost %config(noreplace) %{_sysconfdir}/%{name}/http.header %{_sysconfdir}/logrotate.d/%{name} %dir %{install_dir} %attr(0755,root,root) %{install_dir}/%{official_name} %attr(0644,root,root) %{install_dir}/%{official_name}.* %dir %{install_dir}/deploy %attr(0644,root,root) %{install_dir}/deploy/*.md %attr(0755,root,root) %{install_dir}/deploy/*.sh %dir %{install_dir}/dnsapi %attr(0644,root,root) %{install_dir}/dnsapi/*.md %attr(0755,root,root) %{install_dir}/dnsapi/*.sh %dir %{install_dir}/notify %attr(0755,root,root) %{install_dir}/notify/*.sh %{_unitdir}/acme-sh-renew.* %dir %attr(0700,root,root) %{_localstatedir}/lib/%{name} %dir %{_localstatedir}/log/%{name} %doc README.md CONTRIBUTING.md %license LICENSE.md %changelog ## START: Generated by rpmautospec * Mon Sep 21 2026 John Doe - 3.1.6-1 - Uncommitted changes ## END: Generated by rpmautospec