HCoop
/
hcoop
/
debian
/
courier-authlib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hcoop release
[hcoop/debian/courier-authlib.git]
/
courier-authlib.spec
diff --git
a/courier-authlib.spec
b/courier-authlib.spec
index
408fbab
..
3312d99
100644
(file)
--- a/
courier-authlib.spec
+++ b/
courier-authlib.spec
@@
-1,5
+1,5
@@
#
#
-# Copyright 1998 - 201
0
Double Precision, Inc. See COPYING for
+# Copyright 1998 - 201
7
Double Precision, Inc. See COPYING for
# distribution information.
# No dist tag from mock; detect mandrake, redhat, etc. the old fashioned way
# distribution information.
# No dist tag from mock; detect mandrake, redhat, etc. the old fashioned way
@@
-14,7
+14,7
@@
################################################################################
Name: courier-authlib
################################################################################
Name: courier-authlib
-Version: 0.6
6.1
+Version: 0.6
9.0
Release: 1%{?dist}%{?courier_release}
Summary: Courier authentication library
Release: 1%{?dist}%{?courier_release}
Summary: Courier authentication library
@@
-24,7
+24,7
@@
URL: http://www.courier-mta.org
################################################################################
################################################################################
-Source: http://d
l
.sourceforge.net/courier/%{name}-%{version}.tar.bz2
+Source: http://d
ownloads
.sourceforge.net/courier/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@
-39,21
+39,30
@@
BuildRequires: pam-devel
BuildRequires: expect
BuildRequires: gcc-c++
BuildRequires: redhat-rpm-config
BuildRequires: expect
BuildRequires: gcc-c++
BuildRequires: redhat-rpm-config
+BuildRequires: courier-unicode-devel
BuildRequires: %{_includedir}/ltdl.h
%if 0%(rpm -q redhat-release >/dev/null 2>&1 || rpm -q fedora-release >/dev/null 2>&1 || exit 0; echo "1")
BuildRequires: redhat-rpm-config
BuildRequires: %{_includedir}/ltdl.h
%if 0%(rpm -q redhat-release >/dev/null 2>&1 || rpm -q fedora-release >/dev/null 2>&1 || exit 0; echo "1")
BuildRequires: redhat-rpm-config
+BuildRequires: /usr/bin/ps
%endif
%if %using_systemd
%endif
%if %using_systemd
-Requires(post): /bin/systemctl
-Requires(preun): /bin/systemctl
+Requires(post): systemd
+Requires(preun): systemd
+Requires(postun): systemd
%else
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
%endif
%else
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
%endif
+%define need_perl_generators %(if rpm -q fedora-release >/dev/null 2>/dev/null; then echo "1"; exit 0; fi; echo "1"; exit 1)
+
+%if %need_perl_generators
+BuildRequires: perl-generators
+%endif
+
################################################################################
%description
################################################################################
%description
@@
-274,24
+283,20
@@
then
/sbin/chkconfig --del courier-authlib
/bin/systemctl stop courier-authlib.service || :
fi
/sbin/chkconfig --del courier-authlib
/bin/systemctl stop courier-authlib.service || :
fi
-
-/bin/systemctl daemon-reload || :
-/bin/systemctl enable courier-authlib.service &> /dev/null || :
+%systemd_post courier-authlib.service
+if [ $1 -eq 1 ]
+then
+ /bin/systemctl daemon-reload >/dev/null 2>&1 || :
+fi
%else
/sbin/chkconfig --del courier-authlib
/sbin/chkconfig --add courier-authlib
%endif
%preun
%else
/sbin/chkconfig --del courier-authlib
/sbin/chkconfig --add courier-authlib
%endif
%preun
-if test -x %{_sbindir}/authdaemond
-then
- %{_sbindir}/authdaemond stop >/dev/null 2>&1 || /bin/true
-fi
-
if test "$1" = "0"
then
%if %using_systemd
if test "$1" = "0"
then
%if %using_systemd
- /bin/systemctl stop courier-authlib.service
- /bin/systemctl disable courier-authlib.service
+%systemd_preun courier-authlib.service
%else
/sbin/chkconfig --del courier-authlib
%endif
%else
/sbin/chkconfig --del courier-authlib
%endif
@@
-299,7
+304,11
@@
fi
%postun
%if %using_systemd
%postun
%if %using_systemd
-/bin/systemctl daemon-reload || :
+if [ $1 -eq 0 ]
+then
+ /bin/systemctl daemon-reload
+fi
+%systemd_postun_with_restart courier-authlib.service
%endif
%clean
%endif
%clean
@@
-355,4
+364,3
@@
rm -rf $RPM_BUILD_ROOT
* Sun Oct 3 2004 Mr. Sam <sam@email-scan.com> 0.50-1
- Initial build.
* Sun Oct 3 2004 Mr. Sam <sam@email-scan.com> 0.50-1
- Initial build.
-