Sophie

Sophie

distrib > Mageia > 7 > aarch64 > by-pkgid > a5adfcc6b982a61a5228774a77689415 > files > 6

certbot-0.34.2-1.mga7.src.rpm

%global oldpkg letsencrypt

Name:           certbot
Version:        0.34.2
Release:        %mkrel 1
Summary:        A free, automated certificate authority client
Group:          Development/Python
License:        ASL 2.0
URL:            https://github.com/certbot/certbot
Source0:        https://github.com/certbot/certbot/archive/v%{version}/%{name}-%{version}.tar.gz
Source10:       certbot-renew-systemd.service
Source11:       certbot-renew-systemd.timer
Source12:       certbot-sysconfig-certbot
Source13:       README.urpmi

Patch0:         use-sphinx-build-3.patch

# In order to prevent Sphinx from contacting the network, we ship the necessary intersphinx inventory files ourselves:
# wget -O python.inv https://docs.python.org/2/objects.inv
# wget -O acme-python.inv https://acme-python.readthedocs.io/en/latest/objects.inv
# tar czf object.inv-XXX.tar.gz python.inv acme-python.inv
Source100:      object.inv-%{version}.tar.gz

BuildArch:      noarch

BuildRequires:  pkgconfig(python3)

# For the systemd macros
%{?systemd_requires}
BuildRequires:  pkgconfig(systemd)

# Required for documentation
BuildRequires: python3dist(sphinx)
BuildRequires: python3-sphinx_rtd_theme
BuildRequires: python3-repoze-sphinx-autointerface
BuildRequires: python3dist(mypy)

#Require for testing
#BuildRequires: python3-nose-xcover
BuildRequires: python3dist(pep8)
BuildRequires: python3dist(tox)
BuildRequires: python3dist(mock)
BuildRequires: python3dist(configargparse) >= 0.10.0
BuildRequires: python3dist(zope.interface)
BuildRequires: python3dist(zope.component)
BuildRequires: python3dist(requests)
BuildRequires: python3dist(pythondialog) >= 3.3.0
BuildRequires: python3dist(psutil) >= 2.1.0
BuildRequires: python3dist(parsedatetime)
BuildRequires: python3dist(configobj)
BuildRequires: python3dist(configargparse) >= 0.10.0
BuildRequires: python3dist(acme) = %{version}
BuildRequires: python3dist(ndg-httpsclient)
BuildRequires: python3dist(cryptography)
BuildRequires: python3dist(pytz)
BuildRequires: python3dist(wheel)
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(pyyaml)
%if 0
BuildRequires: python3dist(docker)
BuildRequires: docker
BuildRequires: docker-compose
%endif

Requires:   python3dist(configargparse) >= 0.10.0
Requires:   python3dist(pythondialog) >= 3.3.0
Requires:   python3dist(parsedatetime)
Requires:   python3dist(mock)
Requires:   python3-zope-interface
Requires:   python3-zope-component
Requires:   python3dist(psutil) >= 2.1.0
Requires:   python3dist(future)
Requires:   python3dist(configobj)
Requires:   python3dist(acme) = %{version}
Requires:   python3dist(ndg-httpsclient)
Requires:   python3dist(pyasn1)

%description
Certbot, previously the Let's Encrypt Client, is EFF's tool to obtain certs
from Let's Encrypt, and (optionally) auto-enable HTTPS on your server.
It can also act as a client for any other CA that uses the ACME protocol.

%package doc
Summary:    Documentation for Certbot
Group:      Development/Python
BuildArch:  noarch

%description doc
Certbot, previously the Let's Encrypt Client, is EFF's tool to obtain certs
from Let's Encrypt, and (optionally) auto-enable HTTPS on your server.
It can also act as a client for any other CA that uses the ACME protocol.

This package contains Certbot documentation.

%prep
%autosetup -n %{name}-%{version} -p1
cd docs
tar xzf %{SOURCE100}

%build
%py3_build

# build documentation
make \
 SPHINXOPTS="-Dintersphinx_mapping.python='python.inv' -Dintersphinx_mapping.acme='acme-python.inv'" \
 -C docs man html

%install
%py3_install
# Put the man pages in place
install -pD -t %{buildroot}%{_mandir}/man1 docs/_build/man/%{name}.1
install -pD -t %{buildroot}%{_mandir}/man7 docs/_build/man/%{name}.7
install -Dm 0644 %{SOURCE10} %{buildroot}%{_unitdir}/certbot-renew.service
install -Dm 0644 %{SOURCE11} %{buildroot}%{_unitdir}/certbot-renew.timer
install -Dm 0644 %{SOURCE12} %{buildroot}%{_sysconfdir}/sysconfig/certbot
cp %{SOURCE13} README.urpmi

#check
#{__python3} setup.py test
# Make sure the scripts use the expected python versions
#grep -q %{__python3} %{buildroot}%{_bindir}/certbot

%preun
%systemd_preun certbot-renew.timer

%files
%license LICENSE.txt
%doc README.rst CHANGELOG.md CONTRIBUTING.md README.urpmi
%{_bindir}/%{name}
# project uses old letsencrypt dirs for compatibility
%ghost %dir %{_sysconfdir}/%{oldpkg}
%ghost %dir %{_sharedstatedir}/%{oldpkg}
%ghost %dir %{_logdir}/%{oldpkg}
%config %{_sysconfdir}/sysconfig/certbot
%{_unitdir}/certbot-renew.service
%{_unitdir}/certbot-renew.timer
%{python3_sitelib}/%{name}
%{python3_sitelib}/%{name}-%{version}*.egg-info
%{_mandir}/man*/%{name}.*.xz

%files doc
%doc docs/_build/html


%changelog
* Wed May 08 2019 kekepower <kekepower> 0.34.2-1.mga7
+ Revision: 1396647
- Update to version 0.34.2

* Sat Apr 06 2019 kekepower <kekepower> 0.33.1-1.mga7
+ Revision: 1386298
- Update to version 0.33.1

* Thu Apr 04 2019 kekepower <kekepower> 0.33.0-1.mga7
+ Revision: 1385652
- Update to version 0.33.0

* Thu Mar 07 2019 kekepower <kekepower> 0.32.0-1.mga7
+ Revision: 1372559
- BR python3dist(pyyaml)
- BR python3dist(pytest)
- Update to version 0.32.0

* Fri Feb 08 2019 kekepower <kekepower> 0.31.0-1.mga7
+ Revision: 1364093
- Update to version 0.31.0

* Fri Jan 25 2019 kekepower <kekepower> 0.30.2-1.mga7
+ Revision: 1360697
- Update to version 0.30.2

* Fri Jan 25 2019 kekepower <kekepower> 0.30.1-1.mga7
+ Revision: 1360594
- Update to version 0.30.1

* Mon Jan 07 2019 kekepower <kekepower> 0.30.0-3.mga7
+ Revision: 1350999
- Fix Requires for python-zope-*

* Mon Jan 07 2019 kekepower <kekepower> 0.30.0-2.mga7
+ Revision: 1350768
- Add patch to use sphinx-build-3
- Switch to python3dist()
- Rebuild for Python 3.7

* Thu Jan 03 2019 kekepower <kekepower> 0.30.0-1.mga7
+ Revision: 1348759
- Update to version 0.30.0

* Sun Dec 30 2018 kekepower <kekepower> 0.29.1-2.mga7
+ Revision: 1347216
- Update to version 0.29.1

* Fri Dec 14 2018 zezinho <zezinho> 0.28.0-2.mga7
+ Revision: 1341163
- added requires on python3-pyasn1

* Thu Nov 08 2018 guillomovitch <guillomovitch> 0.28.0-1.mga7
+ Revision: 1329023
- new version 0.28.0

* Thu Sep 20 2018 umeabot <umeabot> 0.27.1-2.mga7
+ Revision: 1277796
- Mageia 7 Mass Rebuild

* Sat Sep 08 2018 guillomovitch <guillomovitch> 0.27.1-1.mga7
+ Revision: 1257845
- new version 0.27.1

* Sun Aug 19 2018 guillomovitch <guillomovitch> 0.26.1-1.mga7
+ Revision: 1252834
- new version 0.26.1

* Tue Jun 26 2018 guillomovitch <guillomovitch> 0.25.1-1.mga7
+ Revision: 1239788
- new version 0.25.1

* Sat May 05 2018 guillomovitch <guillomovitch> 0.24.0-1.mga7
+ Revision: 1226369
- new version 0.24.0

* Wed Mar 14 2018 guillomovitch <guillomovitch> 0.22.0-1.mga7
+ Revision: 1209543
- new version 0.22

* Thu Feb 08 2018 guillomovitch <guillomovitch> 0.21.1-1.mga7
+ Revision: 1199769
- new version 0.21.1

* Tue Dec 12 2017 mitya <mitya> 0.20.0-1.mga7
+ Revision: 1182273
- New version 0.20.0

* Sun Nov 05 2017 mitya <mitya> 0.19.0-1.mga7
+ Revision: 1175971
- New version 0.19.0

* Sat Aug 05 2017 pterjan <pterjan> 0.14.2-3.mga7
+ Revision: 1135194
- Rebuild for python 3.6

* Thu Jun 08 2017 mitya <mitya> 0.14.2-2.mga6
+ Revision: 1107351
- fix BRs for systemd macro
- README.urpmi: s/Fedora/Mageia/

* Sat May 27 2017 mitya <mitya> 0.14.2-1.mga6
+ Revision: 1105149
- New version 0.14.2

* Wed May 24 2017 mitya <mitya> 0.14.1-2.mga6
+ Revision: 1104398
- remove unneeded %%post
- added %%preun

* Wed May 24 2017 mitya <mitya> 0.14.1-1.mga6
+ Revision: 1104377
- Mageify
- build mans & docs
- imported package certbot