Yanis Guenane 886a25b
%global srcname lecm
Yanis Guenane 886a25b
Yanis Guenane 886a25b
Name:           %{srcname}
Yanis Guenane 886a25b
Version:        0.0.7
7812ad6
Release:        26%{?dist}
Yanis Guenane 886a25b
Yanis Guenane 886a25b
Summary:        Let's Encrypt Certificate Manager
Yanis Guenane 886a25b
License:        ASL 2.0
Yanis Guenane 886a25b
URL:            https://pypi.io/pypi/%{srcname}
Yanis Guenane 886a25b
Source0:        https://pypi.io/packages/source/l/%{srcname}/%{srcname}-%{version}.tar.gz
Yanis Guenane 886a25b
Source1:        lecm.cron
Yanis Guenane 886a25b
Source2:        lecm.1.gz
Yanis Guenane 886a25b
Yanis Guenane 886a25b
Yanis Guenane 886a25b
BuildArch:      noarch
Yanis Guenane 886a25b
Yanis Guenane 886a25b
BuildRequires:  python3-devel
6158051
BuildRequires:  python3-setuptools
Yanis Guenane 886a25b
Yanis Guenane 886a25b
Requires:       acme-tiny
Yanis Guenane 886a25b
Requires:       python3-prettytable
Yanis Guenane 886a25b
Requires:       python3-PyYAML
Yanis Guenane 886a25b
Requires:       python3-requests
Yanis Guenane 886a25b
Requires:       python3-pyOpenSSL
Yanis Guenane 886a25b
Yanis Guenane 886a25b
%description
Yanis Guenane 886a25b
Let's Encrypt Certificate Manager is an utility to ease the management
Yanis Guenane 886a25b
and renewal of Let's Encrypt SSL certificates.
Yanis Guenane 886a25b
Yanis Guenane 886a25b
Yanis Guenane 886a25b
%prep
Yanis Guenane 886a25b
%autosetup -n %{srcname}-%{version}
Yanis Guenane 886a25b
# NOTE(spredzy): We need to kee acme-tiny in the requirements in the tarball
Yanis Guenane 886a25b
# for user to still be able to use it fully from pip install, but the acme-tiny
Yanis Guenane 886a25b
# package does not install a python module but just the independant script. Hence
Yanis Guenane 886a25b
# the need for the sed command below.
Yanis Guenane 886a25b
sed -i '/acme-tiny/d' requirements.txt
Yanis Guenane 886a25b
Yanis Guenane 886a25b
Yanis Guenane 886a25b
%build
Yanis Guenane 886a25b
%py3_build
Yanis Guenane 886a25b
Yanis Guenane 886a25b
Yanis Guenane 886a25b
%install
Yanis Guenane 886a25b
%py3_install
Yanis Guenane 886a25b
Yanis Guenane 886a25b
mkdir -p %{buildroot}%{_sysconfdir}/cron.d/
Yanis Guenane 886a25b
install -p -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/cron.d/lecm
Yanis Guenane 886a25b
Yanis Guenane 886a25b
mkdir -p %{buildroot}%{_mandir}/man1/
Yanis Guenane 886a25b
install -p -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/lecm.1.gz
Yanis Guenane 886a25b
Yanis Guenane 886a25b
mkdir -p %{buildroot}%{_datadir}/%{srcname}/sample/
Yanis Guenane 886a25b
install -p -m 0644 sample/*.conf %{buildroot}%{_datadir}/%{srcname}/sample/
Yanis Guenane 886a25b
Yanis Guenane 886a25b
Yanis Guenane 886a25b
%files
Yanis Guenane 886a25b
%doc README.rst
Yanis Guenane 886a25b
%{python3_sitelib}/%{srcname}
Yanis Guenane 886a25b
%{python3_sitelib}/*.egg-info
Yanis Guenane 886a25b
%{_bindir}/%{srcname}
Yanis Guenane 886a25b
%{_datadir}/%{srcname}
Yanis Guenane 886a25b
%{_mandir}/man1/%{srcname}.1.gz
Yanis Guenane 886a25b
%config(noreplace) %{_sysconfdir}/cron.d/%{srcname}
Yanis Guenane 886a25b
Yanis Guenane 886a25b
%changelog
7812ad6
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 0.0.7-26
7812ad6
- Rebuilt for Python 3.13
7812ad6
845c3ba
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.7-25
845c3ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
845c3ba
60882dd
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.7-24
60882dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
60882dd
15bd8e4
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.7-23
15bd8e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
15bd8e4
e306107
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.0.7-22
e306107
- Rebuilt for Python 3.12
e306107
86a200d
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.7-21
86a200d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
86a200d
5ec72b6
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.7-20
5ec72b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
5ec72b6
5493631
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.0.7-19
5493631
- Rebuilt for Python 3.11
5493631
3724ff5
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.7-18
3724ff5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
3724ff5
3be5f2c
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.7-17
3be5f2c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
3be5f2c
61c7f30
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.0.7-16
61c7f30
- Rebuilt for Python 3.10
61c7f30
a7d0ea8
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.7-15
a7d0ea8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
a7d0ea8
ef4b7a6
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.7-14
ef4b7a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
ef4b7a6
ee66034
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.0.7-13
ee66034
- Rebuilt for Python 3.9
ee66034
78b2e92
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.7-12
78b2e92
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
78b2e92
36b0f41
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.0.7-11
36b0f41
- Rebuilt for Python 3.8.0rc1 (#1748018)
36b0f41
eb5e505
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.0.7-10
eb5e505
- Rebuilt for Python 3.8
eb5e505
b9f4aa2
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.7-9
b9f4aa2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
b9f4aa2
e07695c
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.7-8
e07695c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e07695c
da55f35
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.7-7
da55f35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
da55f35
46b3b2c
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.0.7-6
46b3b2c
- Rebuilt for Python 3.7
46b3b2c
012aa8d
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.7-5
012aa8d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
012aa8d
a5c4037
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.7-4
a5c4037
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a5c4037
687398b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.7-3
687398b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
687398b
bb6533b
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.0.7-2
bb6533b
- Rebuild for Python 3.6
bb6533b
Yanis Guenane 886a25b
* Fri Nov 18 2016 Yanis Guenane <yguenane@redhat.com> 0.0.7-1
Yanis Guenane 886a25b
- Service reload: Optimize the way services are reloaded #52
Yanis Guenane 886a25b
- Display a flag showing if conf and cert are in sync #51
Yanis Guenane 886a25b
- Allow user to force regenerate/renew certificates #50
Yanis Guenane 886a25b
- Renew: Do not fail when no certificate has already been generated #47
Yanis Guenane 886a25b
Yanis Guenane 886a25b
* Wed Nov 09 2016 Yanis Guenane <yguenane@redhat.com> 0.0.6-1
Yanis Guenane 886a25b
- doc: Added instal. documentation (pypi/debian) #37
Yanis Guenane 886a25b
- Print USAGE message when no parameter has been passed #43
Yanis Guenane 886a25b
- certificates: Allow one to use Let's Encrypt staging API #42
Yanis Guenane 886a25b
- setup.py: Fix url and add Python 3.5 support #41
Yanis Guenane 886a25b
- Travis: Add check for Python 3.5 #39
Yanis Guenane 886a25b
- certificates: Allow one to reload multiple service #38
Yanis Guenane 886a25b
- Fix mistake in the alias statement #36
Yanis Guenane 886a25b
Yanis Guenane 886a25b
* Thu Oct 27 2016 Yanis Guenane <yguenane@redhat.com> 0.0.5-1
Yanis Guenane 886a25b
- Deb and Rpm packaging
Yanis Guenane 886a25b
- Reload service only when necessary #29
Yanis Guenane 886a25b
- Add more sample to show how lecm address different situation #28
Yanis Guenane 886a25b
- Enforce proper SELinux context on generated files #25
Yanis Guenane 886a25b
- Have a default value for account_key_name #23
Yanis Guenane 886a25b
Yanis Guenane 886a25b
* Wed Sep 28 2016 Yanis Guenane <yguenane@redhat.com> 0.0.4-1
Yanis Guenane 886a25b
- Initial commit