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 %dir %{python_sitelib}/certmaster
/minion
64 %dir %{python_sitelib}/certmaster
/overlord
65 %{python_sitelib}/certmaster
/minion
/*.py
*
66 %{python_sitelib}/certmaster
/overlord
/*.py
*
67 %{python_sitelib}/certmaster
/*.py
*
68 %dir /var
/log
/certmaster
69 %dir /var
/lib
/certmaster
70 %dir /var
/lib
/certmaster
/certmaster
71 %doc AUTHORS README LICENSE
72 %{_mandir}/man1
/*.1.gz
77 if [ -x
/usr
/lib
/lsb
/install_initd
]; then
78 /usr
/lib
/lsb
/install_initd
/etc
/init.d
/certmasterd
79 /usr
/lib
/lsb
/install_initd
/etc
/init.d
/certmaster
81 elif [ -x
/sbin
/chkconfig
]; then
82 /sbin
/chkconfig
--add certmasterd
83 /sbin
/chkconfig
--add certmaster
84 # or, the old fashioned way
87 ln
-sf
/etc
/init.d
/certmaster
/etc
/rc.d
/rc$
{i
}.d
/S99certmaster
90 ln
-sf
/etc
/init.d
/certmaster
/etc
/rc.d
/rc$
{i
}.d
/S99certmaster
96 if [ "$
1"
= 0 ] ; then
97 /etc
/init.d
/certmasterd stop
> /dev
/null
2>&1
98 /etc
/init.d
/certmaster stop
> /dev
/null
2>&1
99 if [ -x
/usr
/lib
/lsb
/remove_initd
]; then
100 /usr
/lib
/lsb
/remove_initd
/etc
/init.d
/certmasterd
101 /usr
/lib
/lsb
/remove_initd
/etc
/init.d
/certmaster
102 elif [ -x
/sbin
/chkconfig
]; then
103 /sbin
/chkconfig
--del certmasterd
104 /sbin
/chkconfig
--del certmaster
106 rm -f
/etc
/rc.d
/rc?.d
/???certmasterd
107 rm -f
/etc
/rc.d
/rc?.d
/???certmaster
113 * Thu Feb
7 2008 Michael DeHaan
<mdehaan@redhat.com
> - 0.1-1
114 - initial version
, split off from func project
, WIP