Blame SPECS/varnish.spec

f9e5b4
%{?scl:%scl_package varnish}
f9e5b4
f9e5b4
%global _hardened_build 1
f9e5b4
#% define v_rc beta1
f9e5b4
%define vd_rc %{?v_rc:-%{?v_rc}}
f9e5b4
%define    _use_internal_dependency_generator 0
f9e5b4
%define __find_provides %{_builddir}/varnish-%{version}%{?v_rc:-%{?v_rc}}/redhat/find-provides
f9e5b4
Summary: High-performance HTTP accelerator
f9e5b4
Name: %{?scl:%scl_prefix}varnish
f9e5b4
Version: 4.0.3
f9e5b4
Release: 13%{?v_rc}%{?dist}
f9e5b4
License: BSD
f9e5b4
Group: System Environment/Daemons
f9e5b4
URL: http://www.varnish-cache.org/
f9e5b4
Source0: http://repo.varnish-cache.org/source/varnish-%{version}.tar.gz
f9e5b4
Source1: varnish.tmpfiles
f9e5b4
Source2: scl-register-helper.sh
f9e5b4
Patch0:  varnish.scl.patch
f9e5b4
Patch1:  varnish-4.0.2.fix_ld_library_path_in_sphinx_build.patch
f9e5b4
Patch2:  varnish-4.0.3_fix_Werror_el6.patch
f9e5b4
Patch3:  varnish-4.0.3_fix_python24.el5.patch
f9e5b4
Patch4:  varnish-4.0.3_fix_varnish4_selinux.el6.patch
f9e5b4
Patch5:  varnish-4.0.3_fix_content_length_bug.patch
f9e5b4
Patch6:  varnish-4.0.3-soname.patch
f9e5b4
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
f9e5b4
# To build from git, start with a make dist, see redhat/README.redhat 
f9e5b4
# You will need at least automake autoconf libtool python-docutils
f9e5b4
#BuildRequires: automake autoconf libtool python-docutils
f9e5b4
BuildRequires: ncurses-devel groff pcre-devel pkgconfig python-docutils libedit-devel %{?scl:%scl_prefix}jemalloc-devel
f9e5b4
%if 0%{?rhel} == 6
f9e5b4
BuildRequires: selinux-policy
f9e5b4
%endif
f9e5b4
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
f9e5b4
Requires: logrotate
f9e5b4
Requires: ncurses
f9e5b4
Requires: pcre
f9e5b4
Requires: %{?scl:%scl_prefix}jemalloc
f9e5b4
Requires: redhat-rpm-config
f9e5b4
Requires(pre): shadow-utils
f9e5b4
Requires(post): /sbin/chkconfig, /usr/bin/uuidgen
f9e5b4
Requires(preun): /sbin/chkconfig
f9e5b4
Requires(preun): /sbin/service
f9e5b4
Requires(post): policycoreutils-python libselinux-utils
f9e5b4
#Provides: varnishabi-4.0.0-2acedeb
f9e5b4
%if %{undefined suse_version}
f9e5b4
Requires(preun): initscripts
f9e5b4
%endif
f9e5b4
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
f9e5b4
Requires(post): systemd-units
f9e5b4
Requires(post): systemd-sysv
f9e5b4
Requires(preun): systemd-units
f9e5b4
Requires(postun): systemd-units
f9e5b4
BuildRequires: systemd-units
f9e5b4
%endif
f9e5b4
%if 0%{?rhel} == 6
f9e5b4
Requires: %{name}-selinux
f9e5b4
Requires(post): policycoreutils, 
f9e5b4
Requires(preun): policycoreutils
f9e5b4
Requires(postun): policycoreutils
f9e5b4
%endif
f9e5b4
f9e5b4
# Varnish actually needs gcc installed to work. It uses the C compiler 
f9e5b4
# at runtime to compile the VCL configuration files. This is by design.
f9e5b4
Requires: gcc
f9e5b4
f9e5b4
%description
f9e5b4
This is Varnish Cache, a high-performance HTTP accelerator.
f9e5b4
Documentation wiki and additional information about Varnish is
f9e5b4
available on the following web site: http://www.varnish-cache.org/
f9e5b4
f9e5b4
%package libs
f9e5b4
Summary: Libraries for %{name}
f9e5b4
Group: Development/Libraries
f9e5b4
BuildRequires: ncurses-devel
f9e5b4
#Obsoletes: libvarnish1
f9e5b4
%description libs
f9e5b4
Libraries for %{name}.
f9e5b4
Varnish Cache is a high-performance HTTP accelerator
f9e5b4
f9e5b4
%package libs-devel
f9e5b4
Summary: Development files for %{name}-libs
f9e5b4
Group: Development/Libraries
f9e5b4
BuildRequires: ncurses-devel
f9e5b4
Requires: %{?scl:%scl_prefix}varnish-libs = %{version}-%{release}
f9e5b4
f9e5b4
%description libs-devel
f9e5b4
Development files for %{name}-libs
f9e5b4
Varnish Cache is a high-performance HTTP accelerator
f9e5b4
f9e5b4
%package docs
f9e5b4
Summary: Documentation files for %name
f9e5b4
Group: Documentation
f9e5b4
f9e5b4
%description docs
f9e5b4
Documentation files for %name
f9e5b4
f9e5b4
#%package libs-static
f9e5b4
#Summary: Files for static linking of %{name} library functions
f9e5b4
#Group: Development/Libraries
f9e5b4
#BuildRequires: ncurses-devel
f9e5b4
#Requires: varnish-libs-devel = %{version}-%{release}
f9e5b4
#
f9e5b4
#%description libs-static
f9e5b4
#Files for static linking of varnish library functions
f9e5b4
#Varnish Cache is a high-performance HTTP accelerator
f9e5b4
f9e5b4
%if 0%{?rhel} == 6
f9e5b4
%package selinux
f9e5b4
Summary: Minimal selinux policy for running varnish4
f9e5b4
Group:   System Environment/Daemons
f9e5b4
f9e5b4
%description selinux
f9e5b4
Minimal selinux policy for running varnish4
f9e5b4
%endif
f9e5b4
f9e5b4
%prep
f9e5b4
%setup -q -n varnish-%{version}%{?vd_rc}
f9e5b4
#%setup -q -n varnish-trunk
f9e5b4
f9e5b4
%patch0 -p1
f9e5b4
sed -i 's|\$rhsclpkgname|%{name}|g' ./configure
f9e5b4
sed -i 's|\$rhsclpkgname|%{name}|g' ./configure.ac
f9e5b4
sed -i 's|ljemalloc|lrh-varnish4jemalloc|g' ./configure
f9e5b4
sed -i 's|ljemalloc|lrh-varnish4jemalloc|g' ./configure.ac
f9e5b4
f9e5b4
%patch1 -p0
f9e5b4
%if 0%{?rhel} <= 6 && 0%{?fedora} <= 12
f9e5b4
%patch2 -p0
f9e5b4
%endif
f9e5b4
%if 0%{?rhel} <= 5 && 0%{?fedora} <= 12
f9e5b4
%patch3 -p0
f9e5b4
%endif
f9e5b4
%if 0%{?rhel} == 6
f9e5b4
%patch4 -p0
f9e5b4
%endif
f9e5b4
%patch5 -p1
f9e5b4
%patch6 -p1
f9e5b4
f9e5b4
%build
f9e5b4
#export CFLAGS="$CFLAGS -Wp,-D_FORTIFY_SOURCE=0"
f9e5b4
f9e5b4
export LD_LIBRARY_PATH=%{_libdir}:$LD_LIBRARY_PATH
f9e5b4
%if 0%{?rhel} <= 6
f9e5b4
export LDFLAGS="-L%{_libdir} -Wl,-rpath,%{_libdir}"
f9e5b4
%else
f9e5b4
export LDFLAGS="-L%{_libdir} -Wl,-rpath,%{_libdir} %{__global_ldflags}"
f9e5b4
%endif
f9e5b4
f9e5b4
# Remove "--disable static" if you want to build static libraries 
f9e5b4
%configure --disable-static \
f9e5b4
%if 0%{?rhel} <= 5 && 0%{?fedora} <= 12
f9e5b4
  --with-rst2man=/bin/true  \
f9e5b4
%endif
f9e5b4
  --localstatedir=%{_localstatedir}/lib  \
f9e5b4
  --docdir=%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}
f9e5b4
f9e5b4
# We have to remove rpath - not allowed in Fedora
f9e5b4
# (This problem only visible on 64 bit arches)
f9e5b4
# sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g;
f9e5b4
#         s|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
f9e5b4
f9e5b4
make %{?_smp_mflags} V=1 
f9e5b4
f9e5b4
%if 0%{?fedora}%{?rhel} != 0 && 0%{?rhel} <= 4 && 0%{?fedora} <= 8
f9e5b4
        # Old style daemon function
f9e5b4
        sed -i 's,--pidfile \$pidfile,,g;
f9e5b4
                s,status -p \$pidfile,status,g;
f9e5b4
                s,killproc -p \$pidfile,killproc,g' \
f9e5b4
        redhat/varnish.initrc redhat/varnishlog.initrc redhat/varnishncsa.initrc
f9e5b4
%endif
f9e5b4
f9e5b4
rm -rf doc/sphinx/build/html/_sources
f9e5b4
mv doc/sphinx/build/html doc
f9e5b4
rm -rf doc/sphinx/build
f9e5b4
f9e5b4
%check
f9e5b4
make check LD_LIBRARY_PATH="%{buildroot}%{_libdir}:%{buildroot}%{_libdir}/%{name}" TESTS_PARALLELISM=5 VERBOSE=1
f9e5b4
f9e5b4
%install
f9e5b4
#include helper script for creating register stuff
f9e5b4
export _SR_BUILDROOT=%{buildroot}
f9e5b4
export _SR_SCL_SCRIPTS=%{?_scl_scripts}
f9e5b4
f9e5b4
source %{SOURCE2}
f9e5b4
f9e5b4
expand_variables() {
f9e5b4
    sed -i 's|\$sbindir|%{_sbindir}|g' "$1"
f9e5b4
    sed -i 's|\$bindir|%{_bindir}|g' "$1"
f9e5b4
    sed -i 's|\$rundir|%{_localstatedir}/run/%{?scl:%scl_prefix}varnish|g' "$1"
f9e5b4
    sed -i 's|\$sysconfdir|%{_sysconfdir}|g' "$1"
f9e5b4
    sed -i 's|\$logdir|%{_localstatedir}/log/varnish|g' "$1"
f9e5b4
    sed -i 's|\$name|%{name}|g' "$1"
f9e5b4
    sed -i 's|\$localstatedir|%{_localstatedir}|g' "$1"
f9e5b4
}
f9e5b4
f9e5b4
rm -rf %{buildroot}
f9e5b4
make install DESTDIR=%{buildroot} INSTALL="install -p" 
f9e5b4
f9e5b4
# None of these for fedora
f9e5b4
find %{buildroot}/%{_libdir}/ -name '*.la' -exec rm -f {} ';'
f9e5b4
f9e5b4
# Remove this line to build a devel package with symlinks
f9e5b4
#find %{buildroot}/%{_libdir}/ -name '*.so' -type l -exec rm -f {} ';'
f9e5b4
f9e5b4
mkdir -p %{buildroot}%{_localstatedir}/lib/%{?scl:%scl_prefix}varnish
f9e5b4
mkdir -p %{buildroot}%{_localstatedir}/log/varnish
f9e5b4
mkdir -p %{buildroot}%{_localstatedir}/run/%{?scl:%scl_prefix}varnish
f9e5b4
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d/
f9e5b4
install -D -m 0644 etc/example.vcl %{buildroot}%{_sysconfdir}/varnish/default.vcl
f9e5b4
install -D -m 0644 redhat/varnish.logrotate %{buildroot}/etc/logrotate.d/%{?scl:%scl_prefix}varnish
f9e5b4
expand_variables %{buildroot}/etc/logrotate.d/%{?scl:%scl_prefix}varnish
f9e5b4
f9e5b4
scl_reggen %{name} --mkdir %{_localstatedir}/lib/%{?scl:%scl_prefix}varnish
f9e5b4
scl_reggen %{name} --mkdir %{_root_localstatedir}/log/%{?scl:%scl_prefix}varnish
f9e5b4
scl_reggen %{name} --mkdir %{_localstatedir}/run/%{?scl:%scl_prefix}varnish
f9e5b4
scl_reggen %{name} --cpfile %{_sysconfdir}/varnish/default.vcl
f9e5b4
scl_reggen %{name} --cpfile %{_root_sysconfdir}/logrotate.d/%{?scl:%scl_prefix}varnish
f9e5b4
f9e5b4
scl_reggen %{name} --runafterregister "semanage fcontext -a -e /var/log/varnish %{_localstatedir}/log/varnish >/dev/null 2>&1 || :"
f9e5b4
scl_reggen %{name} --runafterregister "restorecon -R %{_localstatedir}/log/varnish >/dev/null 2>&1 || :"
f9e5b4
scl_reggen %{name} --runafterregister "semanage fcontext -a -e %{_root_localstatedir}/lib/varnish %{_localstatedir}/lib/%{name} >/dev/null 2>&1 || :"
f9e5b4
scl_reggen %{name} --runafterregister "restorecon -R %{_localstatedir} >/dev/null 2>&1 || :"
f9e5b4
scl_reggen %{name} --runafterregister "semanage fcontext -a -e %{_root_localstatedir}/run/varnish %{_localstatedir}/run/%{name} >/dev/null 2>&1 || :"
f9e5b4
scl_reggen %{name} --runafterregister "restorecon -R %{_localstatedir} >/dev/null 2>&1 || :"
f9e5b4
f9e5b4
f9e5b4
# systemd support
f9e5b4
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
f9e5b4
mkdir -p %{buildroot}%{_unitdir}
f9e5b4
f9e5b4
install -D -m 0644 redhat/varnish.service %{buildroot}%{_unitdir}/%{?scl:%scl_prefix}varnish.service
f9e5b4
expand_variables %{buildroot}%{_unitdir}/%{?scl:%scl_prefix}varnish.service
f9e5b4
scl_reggen %{name} --cpfile /%{_unitdir}/%{?scl:%scl_prefix}varnish.service
f9e5b4
f9e5b4
install -D -m 0644 redhat/varnish.params %{buildroot}%{_sysconfdir}/varnish/varnish.params
f9e5b4
expand_variables %{buildroot}%{_sysconfdir}/varnish/varnish.params
f9e5b4
scl_reggen %{name} --cpfile %{_sysconfdir}/varnish/varnish.params
f9e5b4
f9e5b4
install -D -m 0644 redhat/varnishncsa.service %{buildroot}%{_unitdir}/%{?scl:%scl_prefix}varnishncsa.service
f9e5b4
expand_variables %{buildroot}%{_unitdir}/%{?scl:%scl_prefix}varnishncsa.service
f9e5b4
scl_reggen %{name} --cpfile /%{_unitdir}/%{?scl:%scl_prefix}varnishncsa.service
f9e5b4
f9e5b4
install -D -m 0644 redhat/varnishlog.service %{buildroot}%{_unitdir}/%{?scl:%scl_prefix}varnishlog.service
f9e5b4
expand_variables %{buildroot}%{_unitdir}/%{?scl:%scl_prefix}varnishlog.service
f9e5b4
scl_reggen %{name} --cpfile /%{_unitdir}/%{?scl:%scl_prefix}varnishlog.service
f9e5b4
f9e5b4
sed -i 's,sysconfig/varnish,varnish/varnish.params,' redhat/varnish_reload_vcl
f9e5b4
f9e5b4
# tmpfiles.d configuration
f9e5b4
mkdir -p %{buildroot}%{_root_prefix}/lib/tmpfiles.d 
f9e5b4
install -m 644 -p $RPM_SOURCE_DIR/varnish.tmpfiles %{buildroot}%{_root_prefix}/lib/tmpfiles.d/%{name}.conf
f9e5b4
expand_variables %{buildroot}%{_root_prefix}/lib/tmpfiles.d/%{name}.conf
f9e5b4
scl_reggen %{name} --cpfile %{_root_prefix}/lib/tmpfiles.d/%{name}.conf
f9e5b4
f9e5b4
# default is standard sysvinit
f9e5b4
%else
f9e5b4
install -D -m 0644 redhat/varnish.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/varnish
f9e5b4
expand_variables %{buildroot}%{_sysconfdir}/sysconfig/varnish
f9e5b4
scl_reggen %{name} --cpfile %{_sysconfdir}/sysconfig/varnish
f9e5b4
f9e5b4
install -D -m 0755 redhat/varnish.initrc %{buildroot}%{_root_initddir}/%{?scl:%scl_prefix}varnish
f9e5b4
expand_variables %{buildroot}%{_root_initddir}/%{?scl:%scl_prefix}varnish
f9e5b4
scl_reggen %{name} --cpfile %{_root_initddir}/%{?scl:%scl_prefix}varnish
f9e5b4
f9e5b4
install -D -m 0755 redhat/varnishlog.initrc %{buildroot}%{_root_initddir}/%{?scl:%scl_prefix}varnishlog
f9e5b4
expand_variables %{buildroot}%{_root_initddir}/%{?scl:%scl_prefix}varnishlog
f9e5b4
scl_reggen %{name} --cpfile %{_root_initddir}/%{?scl:%scl_prefix}varnishlog
f9e5b4
f9e5b4
install -D -m 0755 redhat/varnishncsa.initrc %{buildroot}%{_root_initddir}/%{?scl:%scl_prefix}varnishncsa
f9e5b4
expand_variables %{buildroot}%{_root_initddir}/%{?scl:%scl_prefix}varnishncsa
f9e5b4
scl_reggen %{name} --cpfile %{_root_initddir}/%{?scl:%scl_prefix}varnishncsa
f9e5b4
%endif
f9e5b4
install -D -m 0755 redhat/varnish_reload_vcl %{buildroot}%{_sbindir}/varnish_reload_vcl
f9e5b4
expand_variables %{buildroot}%{_sbindir}/varnish_reload_vcl
f9e5b4
f9e5b4
echo %{_libdir}/varnish > %{buildroot}%{_sysconfdir}/ld.so.conf.d/varnish-%{_arch}.conf
f9e5b4
mv %{buildroot}%{_libdir}/pkgconfig/varnishapi.pc %{buildroot}%{_libdir}/pkgconfig/%{?scl:%scl_prefix}varnishapi.pc
f9e5b4
f9e5b4
# selinux module for el6
f9e5b4
%if 0%{?rhel} == 6
f9e5b4
cd selinux
f9e5b4
make -f %{_root_datadir}/selinux/devel/Makefile
f9e5b4
install -p -m 644 -D varnish4.pp %{buildroot}%{_root_datadir}/selinux/packages/%{name}/%{?scl:%scl_prefix}varnish4.pp
f9e5b4
scl_reggen %{name} --cpfile %{_root_datadir}/selinux/packages/%{name}/%{?scl:%scl_prefix}varnish4.pp
f9e5b4
%endif
f9e5b4
f9e5b4
%clean
f9e5b4
rm -rf %{buildroot}
f9e5b4
f9e5b4
%files
f9e5b4
%defattr(-,root,root,-)
f9e5b4
%{_sbindir}/*
f9e5b4
%{_bindir}/*
f9e5b4
%{_localstatedir}/lib/%{name}
f9e5b4
%attr(0700,root,root) %dir %{_localstatedir}/log/varnish
f9e5b4
%{_mandir}/man1/*.1*
f9e5b4
%{_mandir}/man3/*.3*
f9e5b4
%{_mandir}/man7/*.7*
f9e5b4
%doc LICENSE README redhat/README.redhat ChangeLog
f9e5b4
%dir %{_sysconfdir}/varnish/
f9e5b4
%dir %{_localstatedir}/run/%{name}
f9e5b4
%config(noreplace) %{_sysconfdir}/varnish/default.vcl
f9e5b4
%config(noreplace) /etc/logrotate.d/%{?scl:%scl_prefix}varnish
f9e5b4
f9e5b4
%{?scl: %{_scl_scripts}/register.d/*}
f9e5b4
%{?scl: %{_scl_scripts}/register.content/*}
f9e5b4
%{?scl: %{_scl_scripts}/deregister.d/*}
f9e5b4
f9e5b4
# systemd from fedora 17
f9e5b4
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
f9e5b4
%{_unitdir}/%{?scl:%scl_prefix}varnish.service
f9e5b4
%{_unitdir}/%{?scl:%scl_prefix}varnishncsa.service
f9e5b4
%{_unitdir}/%{?scl:%scl_prefix}varnishlog.service
f9e5b4
%config(noreplace) %{_sysconfdir}/varnish/varnish.params
f9e5b4
%{_root_prefix}/lib/tmpfiles.d/%{name}.conf
f9e5b4
f9e5b4
# default is standard sysvinit
f9e5b4
%else
f9e5b4
%config(noreplace) %{_sysconfdir}/sysconfig/varnish
f9e5b4
%{_root_initddir}/%{?scl:%scl_prefix}varnish
f9e5b4
%{_root_initddir}/%{?scl:%scl_prefix}varnishlog
f9e5b4
%{_root_initddir}/%{?scl:%scl_prefix}varnishncsa
f9e5b4
%endif
f9e5b4
f9e5b4
%files libs
f9e5b4
%defattr(-,root,root,-)
f9e5b4
%{_libdir}/*.so.*
f9e5b4
%{_libdir}/varnish
f9e5b4
%doc LICENSE
f9e5b4
%config %{_sysconfdir}/ld.so.conf.d/varnish-%{_arch}.conf
f9e5b4
f9e5b4
%files libs-devel
f9e5b4
%defattr(-,root,root,-)
f9e5b4
%{_libdir}/lib*.so
f9e5b4
%{_includedir}/varnish
f9e5b4
%{_libdir}/pkgconfig/%{?scl:%scl_prefix}varnishapi.pc
f9e5b4
%{_datadir}/varnish
f9e5b4
%{_datadir}/aclocal/varnish.m4
f9e5b4
f9e5b4
%doc LICENSE
f9e5b4
f9e5b4
%files docs
f9e5b4
%defattr(-,root,root,-)
f9e5b4
%doc LICENSE
f9e5b4
%doc doc/sphinx
f9e5b4
%doc doc/html
f9e5b4
%doc doc/changes*.html
f9e5b4
f9e5b4
#%files libs-static
f9e5b4
#%{_libdir}/libvarnish.a
f9e5b4
#%{_libdir}/libvarnishapi.a
f9e5b4
#%{_libdir}/libvarnishcompat.a
f9e5b4
#%{_libdir}/libvcc.a
f9e5b4
#%doc LICENSE
f9e5b4
f9e5b4
%if 0%{?rhel} == 6
f9e5b4
%files selinux
f9e5b4
%defattr(-,root,root,-)
f9e5b4
%{_root_datadir}/selinux/packages/%{name}/%{?scl:%scl_prefix}varnish4.pp
f9e5b4
%endif
f9e5b4
f9e5b4
%pre
f9e5b4
getent group varnish >/dev/null || groupadd -r varnish
f9e5b4
getent passwd varnish >/dev/null || \
f9e5b4
       useradd -r -g varnish -d %{_localstatedir}/lib/%{?scl:%scl_prefix}varnish -s /sbin/nologin \
f9e5b4
               -c "Varnish Cache" varnish
f9e5b4
exit 0
f9e5b4
f9e5b4
%post
f9e5b4
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
f9e5b4
f9e5b4
# Fedora 17
f9e5b4
%if 0%{?fedora} == 17
f9e5b4
# Initial installation
f9e5b4
if [ $1 -eq 1 ] ; then
f9e5b4
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
f9e5b4
fi
f9e5b4
f9e5b4
# Fedora 18+, rhel7+
f9e5b4
%else
f9e5b4
%systemd_post %{?scl:%scl_prefix}varnish.service
f9e5b4
%endif
f9e5b4
f9e5b4
# Other distros: Use chkconfig
f9e5b4
%else
f9e5b4
/sbin/chkconfig --add %{?scl:%scl_prefix}varnish
f9e5b4
/sbin/chkconfig --add %{?scl:%scl_prefix}varnishlog
f9e5b4
/sbin/chkconfig --add %{?scl:%scl_prefix}varnishncsa 
f9e5b4
%endif
f9e5b4
f9e5b4
test -f %{_sysconfdir}/varnish/secret || (uuidgen > %{_sysconfdir}/varnish/secret && chmod 0600 %{_sysconfdir}/varnish/secret)
f9e5b4
f9e5b4
restorecon -R %{_scl_root} >/dev/null 2>&1 || :
f9e5b4
f9e5b4
semanage fcontext -a -e /var/log/varnish %{_localstatedir}/log/varnish >/dev/null 2>&1 || :
f9e5b4
restorecon -R %{_localstatedir}/log/varnish >/dev/null 2>&1 || :
f9e5b4
f9e5b4
semanage fcontext -a -e %{_root_localstatedir}/lib/varnish %{_localstatedir}/lib/%{name} >/dev/null 2>&1 || :
f9e5b4
restorecon -R %{_localstatedir} >/dev/null 2>&1 || :
f9e5b4
f9e5b4
semanage fcontext -a -e %{_root_localstatedir}/run/varnish %{_localstatedir}/run/%{name} >/dev/null 2>&1 || :
f9e5b4
restorecon -R %{_localstatedir} >/dev/null 2>&1 || :
f9e5b4
f9e5b4
# selinux module for el6
f9e5b4
%if 0%{?rhel} == 6
f9e5b4
%post selinux
f9e5b4
if [ "$1" -le "1" ] ; then # First install
f9e5b4
semodule -i %{_root_datadir}/selinux/packages/%{name}/%{?scl:%scl_prefix}varnish4.pp 2>/dev/null || :
f9e5b4
f9e5b4
restorecon -R %{_scl_root} >/dev/null 2>&1 || :
f9e5b4
f9e5b4
semanage fcontext -a -e /var/log/varnish %{_localstatedir}/log/varnish >/dev/null 2>&1 || :
f9e5b4
restorecon -R %{_localstatedir}/log/varnish >/dev/null 2>&1 || :
f9e5b4
f9e5b4
semanage fcontext -a -e %{_root_localstatedir}/lib/%{name} %{_localstatedir}/lib/varnish >/dev/null 2>&1 || :
f9e5b4
restorecon -R %{_localstatedir} >/dev/null 2>&1 || :
f9e5b4
f9e5b4
semanage fcontext -a -e %{_root_localstatedir}/run/%{name} %{_localstatedir}/run/varnish >/dev/null 2>&1 || :
f9e5b4
restorecon -R %{_localstatedir} >/dev/null 2>&1 || :
f9e5b4
fi
f9e5b4
f9e5b4
%preun selinux
f9e5b4
if [ "$1" -lt "1" ] ; then # Final removal
f9e5b4
semodule -r %{?scl:%scl_prefix}varnish4 2>/dev/null || :
f9e5b4
fi
f9e5b4
f9e5b4
%postun selinux
f9e5b4
if [ "$1" -ge "1" ] ; then # Upgrade
f9e5b4
semodule -i %{_root_datadir}/selinux/packages/%{name}/%{?scl:%scl_prefix}varnish4.pp 2>/dev/null || :
f9e5b4
fi
f9e5b4
f9e5b4
%endif
f9e5b4
f9e5b4
%preun
f9e5b4
f9e5b4
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
f9e5b4
%systemd_preun %{?scl:%scl_prefix}varnish.service
f9e5b4
%else
f9e5b4
f9e5b4
if [ $1 -lt 1 ]; then
f9e5b4
  # Package removal, not upgrade
f9e5b4
  %if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
f9e5b4
  /bin/systemctl --no-reload disable %{?scl:%scl_prefix}varnish.service > /dev/null 2>&1 || :
f9e5b4
  /bin/systemctl stop %{?scl:%scl_prefix}varnish.service > /dev/null 2>&1 || :
f9e5b4
  %else
f9e5b4
  /sbin/service %{?scl:%scl_prefix}varnish stop > /dev/null 2>&1
f9e5b4
  /sbin/service %{?scl:%scl_prefix}varnishlog stop > /dev/null 2>&1
f9e5b4
  /sbin/service %{?scl:%scl_prefix}varnishncsa stop > /dev/null 2>%1
f9e5b4
  /sbin/chkconfig --del %{?scl:%scl_prefix}varnish
f9e5b4
  /sbin/chkconfig --del %{?scl:%scl_prefix}varnishlog
f9e5b4
  /sbin/chkconfig --del %{?scl:%scl_prefix}varnishncsa 
f9e5b4
  %endif
f9e5b4
fi
f9e5b4
%endif
f9e5b4
f9e5b4
%post libs -p /sbin/ldconfig
f9e5b4
f9e5b4
%postun libs 
f9e5b4
/sbin/ldconfig
f9e5b4
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
f9e5b4
%systemd_postun_with_restart %{?scl:%scl_prefix}varnish.service
f9e5b4
%endif
f9e5b4
f9e5b4
%changelog
f9e5b4
* Fri Sep 18 2015 Jan Kaluza <jkaluza@redhat.com> - 4.0.3-13
f9e5b4
- add prefix also to pkgconfig, use "rh-varnish4" for all prefixes (#1254034)
f9e5b4
f9e5b4
* Tue Sep 15 2015 Jan Kaluza <jkaluza@redhat.com> - 4.0.3-12
f9e5b4
- compile with hardening on RHEL-7
f9e5b4
f9e5b4
* Fri Sep 11 2015 Jan Kaluza <jkaluza@redhat.com> - 4.0.3-11
f9e5b4
- add rh-varnish4 infix/suffix to libraries (#1254034)
f9e5b4
f9e5b4
* Mon Sep 07 2015 Jan Kaluza <jkaluza@redhat.com> - 4.0.3-10
f9e5b4
- enable build time tests
f9e5b4
f9e5b4
* Sun Aug 16 2015 Jan Kaluza <jkaluza@redhat.com> - 4.0.3-9
f9e5b4
- use SELinux context equivalency for localstatedir directories
f9e5b4
f9e5b4
* Wed Aug 12 2015 Jan Kaluza <jkaluza@redhat.com> - 4.0.3-8
f9e5b4
- move logs to /var/opt/rh/rh-varnish4/log (#1250099)
f9e5b4
f9e5b4
* Mon Jul 27 2015 Jan Kaluza <jkaluza@redhat.com> - 4.0.3-7
f9e5b4
- use localstatedir instead of /var
f9e5b4
- fix hard-coded SCL name in paths
f9e5b4
- fix hard-coded storage dir
f9e5b4
f9e5b4
* Fri Jul 10 2015 Jan Kaluza <jkaluza@redhat.com> - 4.0.3-6
f9e5b4
- set the SELinux context for scl root
f9e5b4
f9e5b4
* Thu Jul 09 2015 Jan Kaluza <jkaluza@redhat.com> - 4.0.3-5
f9e5b4
- add support for NFS
f9e5b4
f9e5b4
* Thu Jul 09 2015 Jan Kaluza <jkaluza@redhat.com> - 4.0.3-4
f9e5b4
- package as SCL
f9e5b4
f9e5b4
* Fri Mar 13 2015 Ingvar Hagelund <ingvar@redpill-linpro.com> 4.0.3-3
f9e5b4
- Added a patch fixing a crash on bogus content-length header,
f9e5b4
  closing #1200034
f9e5b4
f9e5b4
* Fri Mar 06 2015 Ingvar Hagelund <ingvar@redpill-linpro.com> 4.0.3-2
f9e5b4
- Added selinux module for varnish4 on el6
f9e5b4
f9e5b4
* Thu Mar 05 2015 Ingvar Hagelund <ingvar@redpill-linpro.com> 4.0.3-1
f9e5b4
- New upstream release
f9e5b4
- Removed systemd patch included upstream
f9e5b4
- Rebased trivial Werr-patch for varnish-4.0.3
f9e5b4
- Added patch to build on el5
f9e5b4
f9e5b4
* Tue Nov 25 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> 4.0.2-1
f9e5b4
- New upstream release
f9e5b4
- Rebased sphinx makefile patch
f9e5b4
- Added systemd services patch from Federico Schwindt
f9e5b4
f9e5b4
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.1-2.1
f9e5b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f9e5b4
f9e5b4
* Wed Jul 30 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> 4.0.1-2
f9e5b4
- Rebased patch for el6
f9e5b4
f9e5b4
* Wed Jul 30 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> 4.0.1-1 
f9e5b4
- New upstream release 
f9e5b4
- systemd support for rhel7 
f9e5b4
- Dropped patches included upstream 
f9e5b4
f9e5b4
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.0-3.1
f9e5b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f9e5b4
f9e5b4
* Wed Apr 23 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> 4.0.0-3
f9e5b4
- Added a patch that fixes broken find_provides and hard coded provides
f9e5b4
  from upstream
f9e5b4
- Added _isa macro to the libs dependency and updated Group definitions to
f9e5b4
  more modern tags, closes bz 1090196
f9e5b4
- Added aclocal macros to libs-devel sub package
f9e5b4
f9e5b4
* Tue Apr 22 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> 4.0.0-2
f9e5b4
- Use _pkgdocdir macro on fedora
f9e5b4
f9e5b4
* Fri Apr 11 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> 4.0.0-1
f9e5b4
- New upstream release
f9e5b4
- Updated patches to match new release
f9e5b4
- Dropped patches included upstream
f9e5b4
f9e5b4
* Tue Apr 01 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> 4.0.0-0.4.beta1
f9e5b4
- New upstream beta release
f9e5b4
- Added a few patches from upstream git for building on ppc
f9e5b4
f9e5b4
* Wed Mar 12 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> 4.0.0-0.3.tp2+20140327
f9e5b4
- Daily snapshot build
f9e5b4
f9e5b4
* Wed Mar 12 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> 4.0.0-0.2.tp2+20140306
f9e5b4
- First try on wrapping 4.0.0-tp2+ daily snapshot series
f9e5b4
- Added the rc and __find_provides macros from upstream
f9e5b4
- Added LD_LIBRARY_PATH fix for varnishd-to-sphinx doc thing
f9e5b4
- Changed LD_LIBRARY_PATH for make check to something more readable
f9e5b4
- etc/zope-plone.vcl is gone. example.vcl replaces default.vcl as example vcl doc
f9e5b4
- Now using example.vcl for /etc/varnish/default.vcl
f9e5b4
- Added docdir to configure call, to get example docs in the right place
f9e5b4
- Systemd scripts are now upstream
f9e5b4
- Added some explicit provides not found automatically
f9e5b4
f9e5b4
* Tue Dec 03 2013 Ingvar Hagelund <ingvar@redpill-linpro.com> 3.0.5-1
f9e5b4
- New upstream release
f9e5b4
- Dropped patch for CVE-2013-4484, as it's in upstream
f9e5b4
f9e5b4
* Thu Nov 21 2013 Ingvar Hagelund <ingvar@redpill-linpro.com> 3.0.4-2
f9e5b4
- Changed default mask for varnish log dir to 700, closing #915413 
f9e5b4
- Added a patch for CVE-2013-4484 from upstream, closing #1025128
f9e5b4
f9e5b4
* Mon Aug 12 2013 Ingvar Hagelund <ingvar@redpill-linpro.com> 3.0.4-1
f9e5b4
- New upstream release
f9e5b4
- Added libedit-devel to the build reqs
f9e5b4
- Changed the old-style initrc sed patching to a blacklist as in upstream
f9e5b4
- Some tab vs space cleanup to make rpmlint more happy
f9e5b4
- Added requirement of redhat-rpm-config, which provides redhat-hardened-cc1,
f9e5b4
  needed for _hardened_build, closes #975147
f9e5b4
- Removed no-pcre patch, as pcre is now switched off by default upstream
f9e5b4
f9e5b4
* Sun Jul 28 2013 Dennis Gilmore <dennis@ausil.us> - 3.0.3-6
f9e5b4
- no pcre jit on arm arches
f9e5b4
f9e5b4
* Wed May 15 2013 Ingvar Hagelund <ingvar@redpill-linpro.com> 3.0.3-5
f9e5b4
- Added macro _hardened_build to enforce compiling with PIE, closes #955156
f9e5b4
- moved ldconfig in postun script to a shell line, since the following lines
f9e5b4
  may expand to more shell commands on fedora >=18
f9e5b4
- Corrected some bogus dates in the changelog
f9e5b4
f9e5b4
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.3-4
f9e5b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f9e5b4
f9e5b4
* Tue Oct 09 2012 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.0.3-3
f9e5b4
- Upped the minimum number of threads from 1 to 5, closes #861493
f9e5b4
f9e5b4
* Tue Sep 18 2012 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.0.3-2
f9e5b4
- Added a patch from phk, fixing upstream ppc64 bug #1194
f9e5b4
f9e5b4
* Tue Aug 21 2012 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.0.3-1
f9e5b4
- New upstream release
f9e5b4
- Remove unneeded hacks for ppc
f9e5b4
- Remove hacks for rhel4, we no longer support that
f9e5b4
- Remove unneeded hacks for docs, since we use the pregenerated docs
f9e5b4
- Add new systemd scriptlets from f18+
f9e5b4
- Added a patch switching off pcre jit on i386 and ppc to avoid upstream bug #1191 
f9e5b4
f9e5b4
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.2-3
f9e5b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f9e5b4
f9e5b4
* Mon Mar 12 2012 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.0.2-2
f9e5b4
- Added PrivateTmp=true to varnishd unit file, closing #782539
f9e5b4
- Fixed comment typos in varnish unit file
f9e5b4
f9e5b4
* Tue Mar 06 2012 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.0.2-1
f9e5b4
- New upstream version 3.0.2
f9e5b4
- Removed INSTALL as requested by rpmlint
f9e5b4
- Added a ld.so.conf.d fragment file listing libdir/varnish 
f9e5b4
- Removed redundant doc/html/_sources
f9e5b4
- systemd support from fedora 17
f9e5b4
- Stopped using macros for make and install, according to 
f9e5b4
  Fedora's packaging guidelines
f9e5b4
- Changes merged from upstream:
f9e5b4
  - Added suse_version macro
f9e5b4
  - Added comments on building from a git checkout
f9e5b4
  - mkpasswd -> uuidgen for fewer dependencies
f9e5b4
  - Fixed missing quotes around cflags for pcre
f9e5b4
  - Removed unnecessary 32/64 bit parallell build hack as this is fixed upstream
f9e5b4
  - Fixed typo in configure call, disable -> without
f9e5b4
  - Added lib/libvgz/.libs to LD_LIBRARY_PATH in make check
f9e5b4
  - Added section 3 manpages
f9e5b4
  - Configure with --without-rst2man --without-rst2html
f9e5b4
  - changelog entries
f9e5b4
- Removed unnecessary patch for system jemalloc, upstream now supports this
f9e5b4
f9e5b4
* Fri Feb 10 2012 Petr Pisar <ppisar@redhat.com> - 2.1.5-4
f9e5b4
- Rebuild against PCRE 8.30
f9e5b4
f9e5b4
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.5-3
f9e5b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f9e5b4
f9e5b4
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.5-2
f9e5b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f9e5b4
f9e5b4
* Tue Feb 01 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.1.5-1
f9e5b4
- New upstream release
f9e5b4
- New download location
f9e5b4
- Moved varnish_reload_vcl to sbin
f9e5b4
- Removed patches included upstream
f9e5b4
- Use jemalloc as system installed library
f9e5b4
f9e5b4
* Mon Nov 15 2010 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.0.0-0.svn20101115r5543
f9e5b4
- Merged some changes from fedora
f9e5b4
- Upped general version to 3.0 prerelease in trunk
f9e5b4
f9e5b4
* Thu Nov 04 2010 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.1.4-4
f9e5b4
- Added a patch fixing a missing echo in the init script that
f9e5b4
  masked failure output from the script
f9e5b4
- Added a patch from upstream, fixing a problem with Content-Length
f9e5b4
  headers (upstream r5461, upstream bug #801)
f9e5b4
- Added a patch from upstream, adding empty Default-Start and Default-Stop
f9e5b4
  to initscripts for better lsb compliance
f9e5b4
- Added varnish_reload_vcl from trunk
f9e5b4
- Synced descriptions from release spec
f9e5b4
f9e5b4
* Thu Oct 28 2010 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.1.4-3
f9e5b4
- Fixed missing manpages because of no rst2man in rhel4 and 5
f9e5b4
f9e5b4
* Mon Oct 25 2010 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.1.4-2
f9e5b4
- Removed RHEL6/ppc64 specific patch that has been included upstream
f9e5b4
f9e5b4
* Mon Oct 25 2010 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.1.4-1
f9e5b4
- New upstream release
f9e5b4
- New URL for source tarball and main website
f9e5b4
- Prebuilt html docs now included, use that instead of running sphinx
f9e5b4
- Putting sphinx generated doc in a separate subpackage
f9e5b4
- Replaced specific include files with a wildcard glob
f9e5b4
- Needs python-sphinx and deps to build sphinx documentation
f9e5b4
f9e5b4
* Tue Aug 24 2010 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.1.3-2
f9e5b4
- Added a RHEL6/ppc64 specific patch that changes the hard coded
f9e5b4
  stack size in tests/c00031.vtc
f9e5b4
f9e5b4
* Thu Jul 29 2010 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.1.4-0.svn20100824r5117
f9e5b4
- Replaced specific include files with a wildcard glob
f9e5b4
- Needs python-sphinx and deps to build sphinx documentation
f9e5b4
- Builds html and latex documentation. Put that in a subpackage varnish-docs
f9e5b4
f9e5b4
* Thu Jul 29 2010 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.1.3-1
f9e5b4
- New upstream release
f9e5b4
- Add a patch for jemalloc on s390 that lacks upstream
f9e5b4
f9e5b4
* Wed May 05 2010 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.1.2-1
f9e5b4
- New upstream release
f9e5b4
- Remove patches merged upstream
f9e5b4
f9e5b4
* Tue Apr 27 2010 Ingvar Hagelund <ingvar@linpro.no> - 2.1.1-1
f9e5b4
- New upstream release
f9e5b4
- Added a fix for missing pkgconfig/libpcre.pc on rhel4
f9e5b4
- Added a patch from trunk making the rpm buildable on lowspec
f9e5b4
  build hosts (like Red Hat's ppc build farm nodes)
f9e5b4
- Removed patches that are merged upstream
f9e5b4
f9e5b4
* Wed Apr 14 2010 Ingvar Hagelund <ingvar@linpro.no> - 2.1.0-2
f9e5b4
- Added a patch from svn that fixes changes-2.0.6-2.1.0.xml
f9e5b4
f9e5b4
* Tue Apr 06 2010 Ingvar Hagelund <ingvar@linpro.no> - 2.1.0-1
f9e5b4
- New upstream release; note: Configuration changes, see the README
f9e5b4
- Removed unneeded patches 
f9e5b4
- CVE-2009-2936: Added a patch from Debian that adds the -S option 
f9e5b4
  to the varnisdh(1) manpage and to the sysconfig defaults, thus
f9e5b4
  password-protecting the admin interface port (#579536,#579533)
f9e5b4
- Generates that password in the post script, requires mkpasswd
f9e5b4
- Added a patch from Robert Scheck for explicit linking to libm
f9e5b4
- Requires pcre
f9e5b4
f9e5b4
* Wed Dec 23 2009 Ingvar Hagelund <ingvar@linpro.no> - 2.0.6-2
f9e5b4
- Added a test that enables jemalloc on ppc if the kernel is
f9e5b4
  not a rhel5 kernel (as on redhat builders)
f9e5b4
- Removed tests c00031.vtc and r00387on rhel4/ppc as they fail
f9e5b4
  on the Red Hat ppc builders (but works on my rhel4 ppc instance)
f9e5b4
- Added a patch that fixes broken changes-2.0.6.html in doc
f9e5b4
f9e5b4
* Mon Dec 14 2009 Ingvar Hagelund <ingvar@linpro.no> - 2.0.6-1
f9e5b4
- New upstream release
f9e5b4
- Removed patches for libjemalloc, as they are added upstream
f9e5b4
f9e5b4
* Mon Nov 09 2009 Ingvar Hagelund <ingvar@linpro.no> - 2.0.5-1
f9e5b4
- New upstream release
f9e5b4
f9e5b4
* Thu Aug 13 2009 Ingvar Hagelund <ingvar@linpro.no> - 2.0.4-4
f9e5b4
- Added a sparc specific patch to libjemalloc.
f9e5b4
f9e5b4
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.4-3
f9e5b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f9e5b4
f9e5b4
* Thu Jun 04 2009 Ingvar Hagelund <ingvar@linpro.no> - 2.0.4-2
f9e5b4
- Added a s390 specific patch to libjemalloc.
f9e5b4
f9e5b4
* Fri Mar 27 2009 Ingvar Hagelund <ingvar@linpro.no> - 2.0.4-1
f9e5b4
  New upstream release 2.0.4 
f9e5b4
f9e5b4
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-2
f9e5b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f9e5b4
f9e5b4
* Wed Feb 11 2009 Ingvar Hagelund <ingvar@linpro.no> - 2.0.3-1
f9e5b4
  New upstream release 2.0.3. A bugfix and feature enhancement release
f9e5b4
f9e5b4
* Fri Dec 12 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0.2-2
f9e5b4
  Added a fix for a timeout bug, backported from trunk
f9e5b4
f9e5b4
* Mon Nov 10 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0.2-1
f9e5b4
  New upstream release 2.0.2. A bugfix release
f9e5b4
f9e5b4
* Sun Nov 02 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0.1-2
f9e5b4
- Removed the requirement for kernel => 2.6.0. All supported
f9e5b4
  platforms meets this, and it generates strange errors in EPEL
f9e5b4
f9e5b4
* Fri Oct 17 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0.1-1
f9e5b4
- 2.0.1 released, a bugfix release. New upstream sources
f9e5b4
- Package now also available in EPEL
f9e5b4
f9e5b4
* Thu Oct 16 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0-2
f9e5b4
- Readded the debugflag patch. It's so practical
f9e5b4
- Added a strange workaround for make check on ppc64
f9e5b4
f9e5b4
* Wed Oct 15 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0-1
f9e5b4
- 2.0 released. New upstream sources
f9e5b4
- Disabled jemalloc on ppc and ppc64. Added a note in README.redhat
f9e5b4
- Synced to upstream again. No more patches needed
f9e5b4
f9e5b4
* Wed Oct 08 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0-0.11.rc1
f9e5b4
- 2.0-rc1 released. New upstream sources
f9e5b4
- Added a patch for pagesize to match redhat's rhel5 ppc64 koji build boxes
f9e5b4
- Added a patch for test a00008, from r3269
f9e5b4
- Removed condrestart in postscript at upgrade. We don't want that
f9e5b4
f9e5b4
* Fri Sep 26 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0-0.10.beta2
f9e5b4
- 2.0-beta2 released. New upstream sources
f9e5b4
- Whitespace changes to make rpmlint more happy
f9e5b4
f9e5b4
* Fri Sep 12 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0-0.9.20080912svn3184
f9e5b4
- Added varnisncsa init script (Colin Hill)
f9e5b4
- Corrected varnishlog init script (Colin Hill)
f9e5b4
f9e5b4
* Tue Sep 09 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0-0.8.beta1
f9e5b4
- Added a patch from r3171 that fixes an endian bug on ppc and ppc64
f9e5b4
- Added a hack that changes the varnishtest ports for 64bits builds,
f9e5b4
  so they can run in parallell with 32bits build on same build host
f9e5b4
f9e5b4
* Tue Sep 02 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0-0.7.beta1
f9e5b4
- Added a patch from r3156 and r3157, hiding a legit errno in make check
f9e5b4
f9e5b4
* Tue Sep 02 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0-0.6.beta1
f9e5b4
- Added a commented option for max coresize in the sysconfig script
f9e5b4
- Added a comment in README.redhat about upgrading from 1.x to 2.0
f9e5b4
f9e5b4
* Fri Aug 29 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0-0.5.beta1
f9e5b4
- Bumped version numbers and source url for first beta release \o/
f9e5b4
- Added a missing directory to the libs-devel package (Michael Schwendt)
f9e5b4
- Added the LICENSE file to the libs-devel package
f9e5b4
- Moved make check to its proper place
f9e5b4
- Removed superfluous definition of lockfile in initscripts
f9e5b4
f9e5b4
* Wed Aug 27 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0-0.4.20080827svn3136
f9e5b4
- Fixed up init script for varnishlog too
f9e5b4
f9e5b4
* Mon Aug 25 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0-0.3.20080825svn3125
f9e5b4
- Fixing up init script according to newer Fedora standards
f9e5b4
- The build now runs the test suite after compiling
f9e5b4
- Requires initscripts
f9e5b4
- Change default.vcl from nothing but comments to point to localhost:80,
f9e5b4
f9e5b4
* Mon Aug 18 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0-0.2.tp2
f9e5b4
- Changed source, version and release to match 2.0-tp2
f9e5b4
f9e5b4
* Thu Aug 14 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0-0.1.20080814svn
f9e5b4
- default.vcl has moved
f9e5b4
- Added groff to build requirements
f9e5b4
f9e5b4
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1.2-6
f9e5b4
- Autorebuild for GCC 4.3
f9e5b4
f9e5b4
* Sat Dec 29 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.1.2-5
f9e5b4
- Added missing configuration examples
f9e5b4
- Corrected the license to "BSD"
f9e5b4
f9e5b4
* Fri Dec 28 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.1.2-4
f9e5b4
- Build for fedora update
f9e5b4
f9e5b4
* Fri Dec 28 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.1.2-2
f9e5b4
- Added missing changelog items
f9e5b4
f9e5b4
* Thu Dec 20 2007 Stig Sandbeck Mathisen <ssm@linpro.no> - 1.1.2-1
f9e5b4
- Bumped the version number to 1.1.2.
f9e5b4
- Addeed build dependency on libxslt
f9e5b4
f9e5b4
* Fri Sep 07 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.1.1-3
f9e5b4
- Added a patch, changeset 1913 from svn trunk. This makes varnish
f9e5b4
  more stable under specific loads. 
f9e5b4
f9e5b4
* Thu Sep 06 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.1.1-2
f9e5b4
- Removed autogen call (only diff from relase tarball)
f9e5b4
f9e5b4
* Mon Aug 20 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.1.1-1
f9e5b4
- Bumped the version number to 1.1.1.
f9e5b4
f9e5b4
* Tue Aug 14 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.1.svn
f9e5b4
- Update for 1.1 branch
f9e5b4
- Added the devel package for the header files and static library files
f9e5b4
- Added a varnish user, and fixed the init script accordingly
f9e5b4
f9e5b4
* Thu Jul 05 2007 Dag-Erling Smørgrav <des@des.no> - 1.1-1
f9e5b4
- Bump Version and Release for 1.1
f9e5b4
f9e5b4
* Mon May 28 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.0.4-3
f9e5b4
- Fixed initrc-script bug only visible on el4 (fixes #107)
f9e5b4
f9e5b4
* Sun May 20 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.0.4-2
f9e5b4
- Repack from unchanged 1.0.4 tarball
f9e5b4
- Final review request and CVS request for Fedora Extras
f9e5b4
- Repack with extra obsoletes for upgrading from older sf.net package
f9e5b4
f9e5b4
* Fri May 18 2007 Dag-Erling Smørgrav <des@des.no> - 1.0.4-1
f9e5b4
- Bump Version and Release for 1.0.4
f9e5b4
f9e5b4
* Wed May 16 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.0.svn-20070517
f9e5b4
- Wrapping up for 1.0.4
f9e5b4
- Changes in sysconfig and init scripts. Syncing with files in
f9e5b4
  trunk/debian
f9e5b4
f9e5b4
* Fri May 11 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.0.svn-20070511
f9e5b4
- Threw latest changes into svn trunk
f9e5b4
- Removed the conversion of manpages into utf8. They are all utf8 in trunk
f9e5b4
f9e5b4
* Wed May 09 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.0.3-7
f9e5b4
- Simplified the references to the subpackage names
f9e5b4
- Added init and logrotate scripts for varnishlog
f9e5b4
f9e5b4
* Mon Apr 23 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.0.3-6
f9e5b4
- Removed unnecessary macro lib_name
f9e5b4
- Fixed inconsistently use of brackets in macros
f9e5b4
- Added a condrestart to the initscript
f9e5b4
- All manfiles included, not just the compressed ones
f9e5b4
- Removed explicit requirement for ncurses. rpmbuild figures out the 
f9e5b4
  correct deps by itself.
f9e5b4
- Added ulimit value to initskript and sysconfig file
f9e5b4
- Many thanks to Matthias Saou for valuable input
f9e5b4
f9e5b4
* Mon Apr 16 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.0.3-5
f9e5b4
- Added the dist tag
f9e5b4
- Exchanged  RPM_BUILD_ROOT variable for buildroot macro
f9e5b4
- Removed stripping of binaries to create a meaningful debug package
f9e5b4
- Removed BuildRoot and URL from subpackages, they are picked from the
f9e5b4
  main package
f9e5b4
- Removed duplication of documentation files in the subpackages
f9e5b4
- 'chkconfig --list' removed from post script
f9e5b4
- Package now includes _sysconfdir/varnish/
f9e5b4
- Trimmed package information
f9e5b4
- Removed static libs and .so-symlinks. They can be added to a -devel package
f9e5b4
  later if anybody misses them
f9e5b4
f9e5b4
* Wed Feb 28 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.0.3-4
f9e5b4
- More small specfile fixes for Fedora Extras Package
f9e5b4
  Review Request, see bugzilla ticket 230275
f9e5b4
- Removed rpath (only visible on x86_64 and probably ppc64)
f9e5b4
f9e5b4
* Tue Feb 27 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.0.3-3
f9e5b4
- Made post-1.0.3 changes into a patch to the upstream tarball
f9e5b4
- First Fedora Extras Package Review Request
f9e5b4
f9e5b4
* Fri Feb 23 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.0.3-2
f9e5b4
- A few other small changes to make rpmlint happy
f9e5b4
f9e5b4
* Thu Feb 22 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.0.3-1
f9e5b4
- New release 1.0.3. See the general ChangeLog
f9e5b4
- Splitted the package into varnish, libvarnish1 and
f9e5b4
  libvarnish1-devel
f9e5b4
f9e5b4
* Thu Oct 19 2006 Ingvar Hagelund <ingvar@linpro.no> - 1.0.2-7
f9e5b4
- Added a Vendor tag
f9e5b4
f9e5b4
* Thu Oct 19 2006 Ingvar Hagelund <ingvar@linpro.no> - 1.0.2-6
f9e5b4
- Added redhat subdir to svn
f9e5b4
- Removed default vcl config file. Used the new upstream variant instead.
f9e5b4
- Based build on svn. Running autogen.sh as start of build. Also added
f9e5b4
  libtool, autoconf and automake to BuildRequires.
f9e5b4
- Removed rule to move varnishd to sbin. This is now fixed in upstream
f9e5b4
- Changed the sysconfig script to include a lot more nice features.
f9e5b4
  Most of these were ripped from the Debian package. Updated initscript
f9e5b4
  to reflect this.
f9e5b4
f9e5b4
* Tue Oct 10 2006 Ingvar Hagelund <ingvar@linpro.no> - 1.0.1-3
f9e5b4
- Moved Red Hat specific files to its own subdirectory
f9e5b4
f9e5b4
* Tue Sep 26 2006 Ingvar Hagelund <ingvar@linpro.no> - 1.0.1-2
f9e5b4
- Added gcc requirement.
f9e5b4
- Changed to an even simpler example vcl in to /etc/varnish (thanks, perbu)
f9e5b4
- Added a sysconfig entry
f9e5b4
f9e5b4
* Fri Sep 22 2006 Ingvar Hagelund <ingvar@linpro.no> - 1.0.1-1
f9e5b4
- Initial build.