diff --git a/certbot.spec b/certbot.spec index 60a800e..bd2e8ce 100644 --- a/certbot.spec +++ b/certbot.spec @@ -1,6 +1,6 @@ Name: certbot Version: 0.27.1 -Release: 1mamba +Release: 2mamba Summary: A fully-featured, extensible client for the Let's Encrypt CA Group: System/Libraries Vendor: openmamba @@ -44,6 +44,26 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root %description The Let's Encrypt Client is a fully-featured, extensible client for the Let's Encrypt CA (or any other CA that speaks the ACME protocol) that can automate the tasks of obtaining certificates and configuring webservers to use them. +%package apache +Group: System/Libraries +Summary: Apache plugin for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: apache + +%description apache +The Let's Encrypt Client is a fully-featured, extensible client for the Let's Encrypt CA (or any other CA that speaks the ACME protocol) that can automate the tasks of obtaining certificates and configuring webservers to use them. +This package provides the apache plugin. + +%package postfix +Group: System/Libraries +Summary: Postfix plugin for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: postfix + +%description postfix +The Let's Encrypt Client is a fully-featured, extensible client for the Let's Encrypt CA (or any other CA that speaks the ACME protocol) that can automate the tasks of obtaining certificates and configuring webservers to use them. +This package provides the postfix plugin. + %prep %setup -q #% patch0 -p1 @@ -52,6 +72,12 @@ The Let's Encrypt Client is a fully-featured, extensible client for the Let's En %build CFLAGS="%{optflags}" %{__python} setup.py build +for d in apache postfix; do +cd certbot-$d +CFLAGS="%{optflags}" %{__python} setup.py build +cd .. +done + %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %{__python} setup.py install \ @@ -61,6 +87,17 @@ CFLAGS="%{optflags}" %{__python} setup.py build --install-lib=%{python_sitearch} \ --record=%{name}.filelist +for d in apache postfix; do +cd certbot-$d +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{_includedir}/python \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist +cd .. +done + #sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist install -d -m0755 %{buildroot}%{_sysconfdir}/letsencrypt @@ -80,7 +117,16 @@ _EOF %dir %{_localstatedir}/log/letsencrypt #%{python_sitearch}/letsencrypt-%{version}-py*.egg-info/* +%files apache -f certbot-apache/%{name}.filelist +%defattr(-,root,root) + +%files postfix -f certbot-postfix/%{name}.filelist +%defattr(-,root,root) + %changelog +* Sat Oct 06 2018 Silvan Calarco 0.27.1-2mamba +- install apache plugin + * Fri Sep 07 2018 Automatic Build System 0.27.1-1mamba - automatic version update by autodist