Группа :: Система/Серверы
Пакет: varnish
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Summary: Varnish is a high-performance HTTP accelerator
Name: varnish
Version: 1.0.4.3
Release: alt2
License: BSD-like
Group: System/Servers
Packager: Sergey Ivanov <seriv at altlinux.ru>
Group: System/Servers
URL: http://www.varnish-cache.org/
Source0: http://downloads.sourceforge.net/varnish/varnish-%{version}.tar.gz
Source1: varnish.init
Source2: varnishlog.init
Requires: kernel >= 2.6.0 varnish-libs = %{version}-%{release}
Requires: varnish-libs
Requires: logrotate
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
# Varnish actually needs gcc installed to work. It uses the C compiler
# at runtime to compile the VCL configuration files. This is by design.
Requires: gcc
# Automatically added by buildreq on Thu Jun 14 2007
BuildRequires: gcc-c++ glibc-devel-static libncurses-devel openldap-clients xsltproc
%description
This is the Varnish high-performance HTTP accelerator. Documentation
wiki and additional information about Varnish is available on the following
web site: http://www.varnish-cache.org/
%package libs
Summary: Libraries for %{name}
Group: System/Libraries
%description libs
Libraries for %{name}.
Varnish is a high-performance HTTP accelerator.
%prep
%setup -q
%build
%__aclocal
%__libtoolize --copy --force
%__autoheader
%__automake --add-missing --copy --foreign
%__autoconf
# Remove "--disable static" if you want to build static libraries
# (ie for the devel package)
%configure --disable-static
# We have to remove rpath - not allowed in Fedora
# (This problem only visible on 64 bit arches)
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%{__make} %{?_smp_mflags}
sed -e ' s/8080/80/g ' etc/default.vcl > redhat/default.vcl
%install
%set_strip_method executable,shared
%set_verify_elf_method textrel=relaxed,rpath=strict,unresolved=relaxed
make install DESTDIR=%{buildroot} INSTALL="install -p"
# None of these for fedora
find %{buildroot}/%{_libdir}/ -name '*.la' -exec rm -f {} ';'
# Remove this line to build the devel package
find %{buildroot}/%{_libdir}/ -name '*.so' -type l -exec rm -f {} ';'
mkdir -p %{buildroot}/var/lib/varnish
mkdir -p %{buildroot}/var/log/varnish
%{__install} -D -m 0644 redhat/default.vcl %{buildroot}%{_sysconfdir}/varnish/default.vcl
%{__install} -D -m 0644 redhat/varnish.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/varnish
%{__install} -D -m 0644 redhat/varnish.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/varnish
%{__install} -D -m 0755 %SOURCE1 %{buildroot}%{_initdir}/varnish
%{__install} -D -m 0755 %SOURCE2 %{buildroot}%{_initdir}/varnishlog
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_sbindir}/*
%{_bindir}/*
%{_var}/lib/varnish
%{_var}/log/varnish
%{_mandir}/man1/*.1*
%{_mandir}/man7/*.7*
%doc INSTALL LICENSE README redhat/README.redhat redhat/default.vcl ChangeLog
%dir %{_sysconfdir}/varnish/
%config(noreplace) %{_sysconfdir}/varnish/default.vcl
%config(noreplace) %{_sysconfdir}/sysconfig/varnish
%config(noreplace) %{_sysconfdir}/logrotate.d/varnish
%config(noreplace) %{_initdir}/varnish
%config(noreplace) %{_initdir}/varnishlog
%files libs
%defattr(-,root,root,-)
%{_libdir}/*.so.*
%doc LICENSE
%post
/sbin/chkconfig --add varnish
/sbin/chkconfig --add varnishlog
%preun
if [ $1 -lt 1 ]; then
/sbin/service varnish stop > /dev/null 2>/dev/null
/sbin/service varnishlog stop > /dev/null 2>/dev/null
/sbin/chkconfig --del varnish
/sbin/chkconfig --del varnishlog
fi
%postun
if [ $1 -ge 1 ]; then
/sbin/service varnish condrestart > /dev/null 2>/dev/null
/sbin/service varnishlog condrestart > /dev/null 2>/dev/null
fi
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%changelog
…
Полный changelog можно просмотреть здесь
Name: varnish
Version: 1.0.4.3
Release: alt2
License: BSD-like
Group: System/Servers
Packager: Sergey Ivanov <seriv at altlinux.ru>
Group: System/Servers
URL: http://www.varnish-cache.org/
Source0: http://downloads.sourceforge.net/varnish/varnish-%{version}.tar.gz
Source1: varnish.init
Source2: varnishlog.init
Requires: kernel >= 2.6.0 varnish-libs = %{version}-%{release}
Requires: varnish-libs
Requires: logrotate
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
# Varnish actually needs gcc installed to work. It uses the C compiler
# at runtime to compile the VCL configuration files. This is by design.
Requires: gcc
# Automatically added by buildreq on Thu Jun 14 2007
BuildRequires: gcc-c++ glibc-devel-static libncurses-devel openldap-clients xsltproc
%description
This is the Varnish high-performance HTTP accelerator. Documentation
wiki and additional information about Varnish is available on the following
web site: http://www.varnish-cache.org/
%package libs
Summary: Libraries for %{name}
Group: System/Libraries
%description libs
Libraries for %{name}.
Varnish is a high-performance HTTP accelerator.
%prep
%setup -q
%build
%__aclocal
%__libtoolize --copy --force
%__autoheader
%__automake --add-missing --copy --foreign
%__autoconf
# Remove "--disable static" if you want to build static libraries
# (ie for the devel package)
%configure --disable-static
# We have to remove rpath - not allowed in Fedora
# (This problem only visible on 64 bit arches)
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%{__make} %{?_smp_mflags}
sed -e ' s/8080/80/g ' etc/default.vcl > redhat/default.vcl
%install
%set_strip_method executable,shared
%set_verify_elf_method textrel=relaxed,rpath=strict,unresolved=relaxed
make install DESTDIR=%{buildroot} INSTALL="install -p"
# None of these for fedora
find %{buildroot}/%{_libdir}/ -name '*.la' -exec rm -f {} ';'
# Remove this line to build the devel package
find %{buildroot}/%{_libdir}/ -name '*.so' -type l -exec rm -f {} ';'
mkdir -p %{buildroot}/var/lib/varnish
mkdir -p %{buildroot}/var/log/varnish
%{__install} -D -m 0644 redhat/default.vcl %{buildroot}%{_sysconfdir}/varnish/default.vcl
%{__install} -D -m 0644 redhat/varnish.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/varnish
%{__install} -D -m 0644 redhat/varnish.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/varnish
%{__install} -D -m 0755 %SOURCE1 %{buildroot}%{_initdir}/varnish
%{__install} -D -m 0755 %SOURCE2 %{buildroot}%{_initdir}/varnishlog
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_sbindir}/*
%{_bindir}/*
%{_var}/lib/varnish
%{_var}/log/varnish
%{_mandir}/man1/*.1*
%{_mandir}/man7/*.7*
%doc INSTALL LICENSE README redhat/README.redhat redhat/default.vcl ChangeLog
%dir %{_sysconfdir}/varnish/
%config(noreplace) %{_sysconfdir}/varnish/default.vcl
%config(noreplace) %{_sysconfdir}/sysconfig/varnish
%config(noreplace) %{_sysconfdir}/logrotate.d/varnish
%config(noreplace) %{_initdir}/varnish
%config(noreplace) %{_initdir}/varnishlog
%files libs
%defattr(-,root,root,-)
%{_libdir}/*.so.*
%doc LICENSE
%post
/sbin/chkconfig --add varnish
/sbin/chkconfig --add varnishlog
%preun
if [ $1 -lt 1 ]; then
/sbin/service varnish stop > /dev/null 2>/dev/null
/sbin/service varnishlog stop > /dev/null 2>/dev/null
/sbin/chkconfig --del varnish
/sbin/chkconfig --del varnishlog
fi
%postun
if [ $1 -ge 1 ]; then
/sbin/service varnish condrestart > /dev/null 2>/dev/null
/sbin/service varnishlog condrestart > /dev/null 2>/dev/null
fi
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%changelog
…
Полный changelog можно просмотреть здесь