Define %clean before %files

So the epel macro are not used
tags/smeserver-letsencrypt-client-0.2.4-1
Daniel Berteaud 9 years ago
parent 8604070614
commit dbc8bcd902
  1. 11
      smeserver-letsencrypt-client.spec

@ -1,5 +1,5 @@
%define version 0.1.6
%define release 1
%define release 2
%define name smeserver-letsencrypt-client
Summary: Letencrypt client for SME Server
@ -22,6 +22,9 @@ Automatically get certificates from letsencrypt
Using https://github.com/lukas2511/letsencrypt.sh
%changelog
* Mon Apr 11 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.1.6-2.sme
- Define %clean before %files
* Mon Apr 11 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.1.6-1.sme
- Use chain.pem instead of fullchain.pem
@ -61,12 +64,12 @@ perl createlinks
--file /etc/letsencrypt.sh/hooks_clean_challenge.d/10smeserver.sh 'attr(0755,root,root)' \
> %{name}-%{version}-filelist
%files -f %{name}-%{version}-filelist
%defattr(-,root,root)
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}-%{version}-filelist
%defattr(-,root,root)
%pre
%post

Loading…
Cancel
Save