[ppp/f19] spec: make ppp logrotate agnostic

Paul Howarth paul at city-fan.org
Wed Mar 20 15:33:08 UTC 2013


Hi,

On 20/03/13 15:27, Michal Sekletar wrote:
> commit d983c6b1769a4cc447f755f11fa44e87fa9bdbc1
> Author: Michal Sekletar <msekleta at redhat.com>
> Date:   Fri Feb 1 20:11:55 2013 +0100
>
>      spec: make ppp logrotate agnostic
>
>   ppp.spec |    7 +++++--
>   1 files changed, 5 insertions(+), 2 deletions(-)
> ---
> diff --git a/ppp.spec b/ppp.spec
> index 33e8649..142c4d2 100644
> --- a/ppp.spec
> +++ b/ppp.spec
> @@ -1,7 +1,7 @@
>   Summary: The Point-to-Point Protocol daemon
>   Name: ppp
>   Version: 2.4.5
> -Release: 26%{?dist}
> +Release: 27%{?dist}
>   License: BSD and LGPLv2+ and GPLv2+ and Public Domain
>   Group: System Environment/Daemons
>   URL: http://www.samba.org/ppp
> @@ -36,7 +36,7 @@ Patch32: ppp-2.4.5-l2tp-multilink.patch
>
>   BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
>   BuildRequires: pam-devel, libpcap-devel, openssl-devel
> -Requires: glibc >= 2.0.6, /etc/pam.d/system-auth, logrotate, libpcap >= 14:0.8.3-6 systemd-units
> +Requires: glibc >= 2.0.6, /etc/pam.d/system-auth, libpcap >= 14:0.8.3-6 systemd-units
>
>   %description
>   The ppp package contains the PPP (Point-to-Point Protocol) daemon and
> @@ -155,6 +155,9 @@ install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ppp
>   %doc PLUGINS
>
>   %changelog
> +* Wed Mar 20 2013 Michal Sekletar <msekleta at redhat.com> - 2.4.5-27
> +- Don't hard depend on logrotate

If you're going to drop the logrotate dependency then you'll need to own 
the %{_sysconfdir}/logrotate.d directory too, otherwise you'll have an 
unowned directory on a system without logrotate.

Paul.


More information about the scm-commits mailing list