SPECS: varnish.spec (NEW) - new, based on bundled spec

glen glen at pld-linux.org
Mon Nov 27 00:33:25 CET 2006


Author: glen                         Date: Sun Nov 26 23:33:25 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new, based on bundled spec

---- Files affected:
SPECS:
   varnish.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/varnish.spec
diff -u /dev/null SPECS/varnish.spec:1.1
--- /dev/null	Mon Nov 27 00:33:25 2006
+++ SPECS/varnish.spec	Mon Nov 27 00:33:20 2006
@@ -0,0 +1,153 @@
+# $Revision$, $Date$
+Summary:	Varnish is a high-performance HTTP accelerator
+Name:		varnish
+Version:	1.0.2
+Release:	0.7
+License:	BSD-like
+Group:		Daemons
+URL:		http://www.varnish-cache.org/
+Source0:	http://downloads.sourceforge.net/varnish/%{name}-%{version}.tar.gz
+# Source0-md5:	d905f63a6665224c370154eb006ca4cc
+BuildRequires:	autoconf
+BuildRequires:	automake
+BuildRequires:	libtool
+BuildRequires:	ncurses-devel
+Requires(post):	/sbin/ldconfig
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_sysconfdir	/etc/%{name}
+
+%description
+This is the Varnish high-performance HTTP accelerator. Documentation
+and additional information about Varnish is available on the following
+web sites: http://www.varnish-cache.org/ Official web site
+http://varnish.projects.linpro.no/ Developer site and wiki
+
+Technical questions about Varnish and this release should be addressed
+to <varnish-dev at projects.linpro.no>.
+
+Questions about commercial support and services related to Varnish
+should be addressed to <varnish at linpro.no>.
+
+Copyright (c) 2006 Verdens Gang AS Copyright (c) 2006 Linpro AS All
+rights reserved. Author: Poul-Henning Kamp <phk at phk.freebsd.dk>
+
+%package devel
+Summary:	Header files for ... library
+Group:		Development/Libraries
+# if base package contains shared library for which these headers are
+#Requires:	%{name} = %{version}-%{release}
+# if -libs package contains shared library for which these headers are
+#Requires:	%{name}-libs = %{version}-%{release}
+
+%description devel
+Header files for ... library.
+
+%package static
+Summary:	Static ... library
+Summary(pl):	Statyczna biblioteka ...
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static ... library.
+
+%description static -l pl
+Statyczna biblioteka ....
+
+%prep
+%setup -q
+
+%build
+./autogen.sh
+%configure
+%{__make}
+
+sed -e ' s/8080/80/g ' etc/vcl.conf > redhat/vcl.conf
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_sbindir}
+install -d $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/varnish
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/init.d
+install -d $RPM_BUILD_ROOT/etc/sysconfig
+install -d $RPM_BUILD_ROOT/var/lib/varnish
+
+install INSTALL $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/INSTALL
+install LICENSE $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/LICENSE
+install README $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/README
+install ChangeLog $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/ChangeLog
+install redhat/README.redhat $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/README.redhat
+install redhat/vcl.conf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/vcl.example.conf
+install redhat/vcl.conf $RPM_BUILD_ROOT%{_sysconfdir}/varnish/vcl.conf
+install redhat/varnish.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/varnish
+install redhat/varnish.initrc $RPM_BUILD_ROOT%{_sysconfdir}/init.d/varnish
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/ldconfig
+/sbin/chkconfig --add varnish
+%service %{name} restart
+
+%postun	-p /sbin/ldconfig
+
+%preun
+if [ "$1" = "0" ]; then
+	%service -q %{name} stop
+	/sbin/chkconfig --del %{name}
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc %{_docdir}/%{name}-%{version}
+%config(noreplace) %{_sysconfdir}/vcl.conf
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/varnish
+%attr(754,root,root) /etc/rc.d/init.d/varnish
+%attr(755,root,root) %{_sbindir}/varnishd
+%attr(755,root,root) %{_bindir}/varnishhist
+%attr(755,root,root) %{_bindir}/varnishlog
+%attr(755,root,root) %{_bindir}/varnishncsa
+%attr(755,root,root) %{_bindir}/varnishstat
+%attr(755,root,root) %{_bindir}/varnishtop
+%attr(755,root,root) %{_libdir}/libvarnish.so.0.0.0
+%attr(755,root,root) %{_libdir}/libvarnishapi.so.0.0.0
+%attr(755,root,root) %{_libdir}/libvcl.so.0.0.0
+%{_var}/lib/varnish
+%{_mandir}/man1/varnishd.1*
+%{_mandir}/man1/varnishhist.1*
+%{_mandir}/man1/varnishlog.1*
+%{_mandir}/man1/varnishncsa.1*
+%{_mandir}/man1/varnishstat.1*
+%{_mandir}/man1/varnishtop.1*
+%{_mandir}/man7/vcl.7*
+
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/libvarnish.la
+%{_libdir}/libvarnishapi.la
+%{_libdir}/libvcl.la
+%attr(755,root,root) %{_libdir}/libvarnish.so
+%attr(755,root,root) %{_libdir}/libvarnishapi.so
+%attr(755,root,root) %{_libdir}/libvcl.so
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libvarnish.a
+%{_libdir}/libvarnishapi.a
+%{_libdir}/libvcl.a
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2006/11/26 23:33:20  glen
+- new, based on bundled spec
+
================================================================


More information about the pld-cvs-commit mailing list