Jan Engelhardt 2011-04-15 08:09:03 +00:00 committed by Git OBS Bridge
parent 3f267b0842
commit bb8d82a2c6
2 changed files with 9 additions and 17 deletions

View File

@ -2,6 +2,7 @@
Sun Apr 3 23:38:24 UTC 2011 - jengelh@medozas.de
- Fix security-problematic ownership of /etc/varnish files
(bnc#678811)
- Run spec-beautifier over it
- Replace default shipped vcl.conf by something working
- Run as varnish user

View File

@ -1,7 +1,7 @@
#
# spec file for package varnish
# spec file for package varnish (Version 2.0.5)
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -20,13 +20,13 @@
Name: varnish
Version: 2.1.3
Release: 5
Release: 0
#
License: BSD
Group: Productivity/Networking/Web/Proxy
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libxslt ncurses-devel pcre-devel pkg-config
BuildRoot: %_tmppath/%name-%version-build
BuildRequires: libxslt, ncurses-devel, pcre-devel, pkg-config
Prereq(post): %_sbindir/useradd %_sbindir/groupadd
%if 0%{?suse_version}
Recommends: logrotate
@ -35,16 +35,15 @@ Recommends: logrotate
%define pkg_logdir %_localstatedir/log/%name
%define pkg_cachedir %_localstatedir/cache/%name
#
Url: http://www.varnish-cache.org/
URL: http://www.varnish-cache.org/
Source0: http://downloads.sourceforge.net/varnish/varnish-%version.tar.gz
# http://downloads.sourceforge.net/varnish/varnish-%version.tar.bz2
Source2: varnish.init
Source3: varnish.sysconfig
Source4: vcl.conf
Source5: varnish.logrotate
Source4: vcl.conf
Source5: varnish.logrotate
#
Summary: Varnish is a high-performance HTTP accelerator
%description
Varnish is an HTTP accelerator. An HTTP accelerator (often called Reverse
Proxy) is an application that stores (caches) documents that have been
@ -61,14 +60,10 @@ Authors:
Poul-Henning Kamp <phk@phk.freebsd.dk>
%define library_name libvarnish1
%package -n %library_name
Group: Productivity/Networking/Web/Proxy
#
Summary: Shared libraries for Varnish
%description -n %library_name
Varnish is an HTTP accelerator. An HTTP accelerator (often called Reverse
Proxy) is an application that stores (caches) documents that have been
@ -89,13 +84,10 @@ Authors:
%package devel
Group: Development/Libraries/C and C++
Requires: %name = %version
#
Summary: Development files for Varnish
%description devel
Varnish is an HTTP accelerator. An HTTP accelerator (often called Reverse
Proxy) is an application that stores (caches) documents that have been
@ -175,7 +167,6 @@ mkdir -p "%buildroot/%_localstatedir/log/varnish"
%endif
%post -n %library_name -p /sbin/ldconfig
%postun -n %library_name -p /sbin/ldconfig
%files