2 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
4 %define is_suse %
(test -e
/etc
/SuSE
-release
&& echo 1 ||
echo 0)
6 Summary: Remote certificate distribution framework
9 Version: %
(echo `awk '
{ print $
1 }'
%{SOURCE1}`
)
10 Release: %
(echo `awk '
{ print $
2 }'
%{SOURCE1}`)%{?dist}
11 Source0: %{name}-%{version}.tar.gz
13 Group: Applications
/System
14 Requires: python
>= 2.3
16 BuildRequires
: python
-devel
18 BuildRequires
: gettext
-devel
21 BuildRequires
: python
-setuptools
-devel
23 BuildRequires
: python
-setuptools
26 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
28 Url
: https
://fedorahosted.org
/certmaster
32 certmaster is a easy mechanism
for distributing SSL certificates
38 %{__python} setup.py build
41 test "x$RPM_BUILD_ROOT"
!= "x"
&& rm -rf $RPM_BUILD_ROOT
42 %{__python} setup.py
install --prefix
=/usr
--root
=$RPM_BUILD_ROOT
45 rm -fr $RPM_BUILD_ROOT
48 %defattr(-, root
, root
, -)
50 %{python_sitelib}/certmaster
*.egg
-info
53 %{_bindir}/certmaster
-request
54 %{_bindir}/certmaster
-ca
55 /etc
/init.d
/certmaster
56 %dir %{_sysconfdir}/%{name}
57 %dir %{_sysconfdir}/%{name}/minion
-acl.d
/
58 %dir %{_sysconfdir}/pki/%{name}
59 %config(noreplace
) /etc
/certmaster
/minion.conf
60 %config(noreplace
) /etc
/certmaster
/certmaster.conf
61 %config(noreplace
) /etc
/logrotate.d
/certmaster_rotate
62 %dir %{python_sitelib}/certmaster
63 %{python_sitelib}/certmaster
/*.py
*
64 %dir /var
/log
/certmaster
65 %dir /var
/lib
/certmaster
66 %doc AUTHORS README LICENSE
67 %{_mandir}/man1
/*.1.gz
72 if [ -x
/usr
/lib
/lsb
/install_initd
]; then
73 /usr
/lib
/lsb
/install_initd
/etc
/init.d
/certmaster
75 elif [ -x
/sbin
/chkconfig
]; then
76 /sbin
/chkconfig
--add certmaster
77 # or, the old fashioned way
80 ln
-sf
/etc
/init.d
/certmaster
/etc
/rc.d
/rc$
{i
}.d
/S99certmaster
83 ln
-sf
/etc
/init.d
/certmaster
/etc
/rc.d
/rc$
{i
}.d
/S99certmaster
89 if [ "$
1"
= 0 ] ; then
90 /etc
/init.d
/certmaster stop
> /dev
/null
2>&1
91 if [ -x
/usr
/lib
/lsb
/remove_initd
]; then
92 /usr
/lib
/lsb
/remove_initd
/etc
/init.d
/certmaster
93 elif [ -x
/sbin
/chkconfig
]; then
94 /sbin
/chkconfig
--del certmaster
96 rm -f
/etc
/rc.d
/rc?.d
/???certmaster
102 * Mon Mar
17 2008 Adrian Likins
<alikins@redhat.com
> - 0.1-2
103 - removed unused minion
/ and overlord
/ dirs
105 * Mon Feb
25 2008 Adrian Likins
<alikins@redhat.com
> - 0.1-1
106 - remove certmasterd references
108 * Thu Feb
7 2008 Michael DeHaan
<mdehaan@redhat.com
> - 0.1-1
109 - initial version
, split off from func project
, WIP