diff --git a/.gitignore b/.gitignore index e69de29..d922527 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/certbot-apache-0.8.0.tar.gz diff --git a/python-certbot-apache.spec b/python-certbot-apache.spec new file mode 100644 index 0000000..288a8a1 --- /dev/null +++ b/python-certbot-apache.spec @@ -0,0 +1,74 @@ +%global pyname certbot-apache + +Name: python-%{pyname} +Version: 0.8.0 +Release: 2%{?dist} +Summary: The apache plugin for certbot + +License: ASL 2.0 +URL: https://pypi.python.org/pypi/certbot-apache +Source0: https://files.pythonhosted.org/packages/source/c/%{pyname}/%{pyname}-%{version}.tar.gz + +BuildArch: noarch + +# certbot only supports python2 at present +BuildRequires: python2-devel + +#For running tests +BuildRequires: python2-certbot +BuildRequires: python-augeas + + + + +%description +Plugin for certbot that allows for automatic configuration of apache + +%package -n python2-%{pyname} +# Provide the name users expect as a certbot plugin +Provides: %{pyname} = %{version}-%{release} +# Although a plugin for the certbot command it's technically +# an extension to the certbot python libraries +Requires: python2-certbot +Requires: python2-augeas +#Recommend the CLI as that will be the interface most use +Recommends: certbot = %{version} +Summary: The apache plugin for certbot +%{?python_provide:%python_provide python2-%{pyname}} + +%description -n python2-%{pyname} +Plugin for certbot that allows for automatic configuration of apache + +%prep +%autosetup -n %{pyname}-%{version} + +%build +%{py2_build} + +%check +%{__python2} setup.py test + + +%install +%{py2_install} + +%files -n python2-%{pyname} +%license LICENSE.txt +%doc README.rst +%{python2_sitelib}/certbot_apache +%{python2_sitelib}/certbot_apache-%{version}*.egg-info + + +%changelog +* Tue Jun 07 2016 James Hogarth - 0.8.0-2 +- Move recommends to correct subpackage +- change to require python-augeas as python2-augeas not provided in F23 +- change the python-devel BR as per review +* Fri Jun 03 2016 james - 0.8.0-1 +- update to upstream 0.8.0 release +* Tue May 31 2016 James Hogarth - 0.7.0-1 +- Update to 0.7.0 release +* Thu May 26 2016 James Hogarth - 0.6.0-2 +- Ensure python2-* provide is present as per python guidelines +* Thu May 26 2016 James Hogarth - 0.6.0-1 +- Initial packaging of the plugin diff --git a/sources b/sources index e69de29..633c3c9 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +59606f28699db04bf82f8837a7bad342 certbot-apache-0.8.0.tar.gz