X-Git-Url: https://pwan.org/git/?a=blobdiff_plain;f=certmaster.spec;h=e50be182a5500531a9b25203168b92f13ee9161e;hb=3692fc7eab86f92aeb4868da6aa325ea991127bc;hp=f12ec2b115507f7568b967a4d7c7a50f77c4b8dd;hpb=16ba4922c09e81f063ac10c65c70ac4fe9c0e0a7;p=certmaster.git diff --git a/certmaster.spec b/certmaster.spec index f12ec2b..e50be18 100644 --- a/certmaster.spec +++ b/certmaster.spec @@ -1,31 +1,53 @@ + +# We can run on Rhel 3'ish systems, but only if python2.3 is installed +%if 0%{?rhel} == 3 +%define __python_ver 2.3 +%endif +%define python python%{?__python_ver} +%define __python /usr/bin/%{python} + + +%{!?python_version: %define python_version %(%{__python} -c "from distutils.sysconfig import get_python_version; print get_python_version()")} %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %define is_suse %(test -e /etc/SuSE-release && echo 1 || echo 0) + Summary: Remote certificate distribution framework Name: certmaster -Source1: version -Version: %(echo `awk '{ print $1 }' %{SOURCE1}`) -Release: %(echo `awk '{ print $2 }' %{SOURCE1}`)%{?dist} +Version: 0.24 +Release: 5%{?dist} Source0: %{name}-%{version}.tar.gz License: GPLv2+ Group: Applications/System +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot +BuildArch: noarch +Url: https://fedorahosted.org/certmaster + +%if 0%{?rhel} == 3 +Requires: %{python} +Requires: pyOpenSSL-py23 +%else Requires: python >= 2.3 Requires: pyOpenSSL -BuildRequires: python-devel +%endif + +# NOTE: if you +BuildRequires: %{python}-devel %if %is_suse BuildRequires: gettext-devel %else %if 0%{?fedora} >= 8 BuildRequires: python-setuptools-devel %else +%if 0%{?rhel} >= 5 BuildRequires: python-setuptools %endif %endif -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot -BuildArch: noarch -Url: https://fedorahosted.org/certmaster +%endif + + %description @@ -40,18 +62,21 @@ certmaster is a easy mechanism for distributing SSL certificates %install test "x$RPM_BUILD_ROOT" != "x" && rm -rf $RPM_BUILD_ROOT %{__python} setup.py install --prefix=/usr --root=$RPM_BUILD_ROOT +ln -s %{_bindir}/certmaster-sync $RPM_BUILD_ROOT/var/lib/certmaster/triggers/sign/post/certmaster-sync +ln -s %{_bindir}/certmaster-sync $RPM_BUILD_ROOT/var/lib/certmaster/triggers/remove/post/certmaster-sync %clean rm -fr $RPM_BUILD_ROOT %files %defattr(-, root, root, -) -%if 0%{?fedora} > 8 +%if "%{python_version}" >= "2.5" %{python_sitelib}/certmaster*.egg-info %endif %{_bindir}/certmaster %{_bindir}/certmaster-request %{_bindir}/certmaster-ca +%{_bindir}/certmaster-sync /etc/init.d/certmaster %dir %{_sysconfdir}/%{name} %dir %{_sysconfdir}/%{name}/minion-acl.d/ @@ -63,12 +88,18 @@ rm -fr $RPM_BUILD_ROOT %{python_sitelib}/certmaster/*.py* %dir /var/log/certmaster %dir /var/lib/certmaster +%dir /var/lib/certmaster/peers +%dir /var/lib/certmaster/triggers/sign/ %dir /var/lib/certmaster/triggers/sign/pre %dir /var/lib/certmaster/triggers/sign/post +%dir /var/lib/certmaster/triggers/request/ %dir /var/lib/certmaster/triggers/request/pre %dir /var/lib/certmaster/triggers/request/post +%dir /var/lib/certmaster/triggers/remove/ %dir /var/lib/certmaster/triggers/remove/pre %dir /var/lib/certmaster/triggers/remove/post +/var/lib/certmaster/triggers/sign/post/certmaster-sync +/var/lib/certmaster/triggers/remove/post/certmaster-sync %doc AUTHORS README LICENSE %{_mandir}/man1/*.1.gz @@ -105,6 +136,25 @@ fi %changelog +* Wed Feb 18 2009 Adrian Likins - 0.24.5 +- remove version file + +* Mon Jan 19 2009 Adrian Likins - 0.24.4 +- make inclusion of egginfo dependant on having python >= 2.5 +- remove need for patch on rhel3+python2.4 cases (distutils should + do all the /usr/bin/python renaming now) +- minor reformatting changes + +* Tue Jan 06 2009 Greg Swift - 0.24-3x1 +- Fixed spec because it was only building in rhel3 + +* Wed Dec 31 2008 Greg Swift - 0.24-2 +- Patched SPEC to build on rhel3 with python2.3 +- Added Patch0 to handle python2.3 if on rhel3 + +* Mon Dec 12 2008 Adrian Likins - 0.24-1 +- add missing dirs as per bz#473633 + * Mon Jun 6 2008 Adrian Likins - 0.20-2 - fix fedora bug #441283 - typo in postinstall scriptlet (the init.d symlinks for runlevels 1 and 6 were created wrong)