3 # - varnishlog initscript
4 Summary: Varnish - a high-performance HTTP accelerator
5 Summary(pl.UTF-8): Varnish - wydajny akcelerator HTTP
10 Group: Networking/Daemons/HTTP
11 Source0: http://dl.sourceforge.net/varnish/%{name}-%{version}.tar.gz
12 # Source0-md5: 131f502a9a507b9ce0a7a91b22528e0c
14 Source2: %{name}.sysconfig
16 Patch0: %{name}-build.patch
17 URL: http://www.varnish-cache.org/
18 BuildRequires: autoconf
19 BuildRequires: automake
20 BuildRequires: libstdc++-devel
21 BuildRequires: libtool >= 2:1.5
22 BuildRequires: ncurses-devel
23 Requires(post): /sbin/ldconfig
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %define _sysconfdir /etc/%{name}
31 The goal of the Varnish project is to develop a state-of-the-art,
32 high-performance HTTP accelerator.
34 Varnish is targeted primarily at the FreeBSD 6 and Linux 2.6
35 platforms, and will take full advantage of the advanced I/O features
36 offered by these operating systems.
38 %description -l pl.UTF-8
39 Celem projektu Varnish jest stworzenie wydajnego akceleratora HTTP.
41 Varnish jest tworzony głównie z myślą o platformach FreeBSD 6 i Linux
42 2.6 i będzie wykorzystywał w pełni zaawansowane możliwości we/we
43 oferowane przez te systemy operacyjne.
46 Summary: Header files for varnish library
47 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki varnish
48 Group: Development/Libraries
49 Requires: %{name} = %{version}-%{release}
52 Header files for varnish library.
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe biblioteki varnish.
58 Summary: Static varnish library
59 Summary(pl.UTF-8): Statyczna biblioteka varnish
60 Group: Development/Libraries
61 Requires: %{name}-devel = %{version}-%{release}
64 Static varnish library.
66 %description static -l pl.UTF-8
67 Statyczna biblioteka varnish.
74 export CPPFLAGS="-I/usr/include/ncurses"
84 rm -rf $RPM_BUILD_ROOT
87 DESTDIR=$RPM_BUILD_ROOT
89 # make dirs after make install to know which ones needs spec and which ones make install
90 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig},/var/{run,lib}/varnish}
92 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/varnish
93 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/varnish
94 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/default.vcl
97 rm -rf $RPM_BUILD_ROOT
101 /sbin/chkconfig --add varnish
102 %service %{name} restart
104 %postun -p /sbin/ldconfig
107 if [ "$1" = "0" ]; then
108 %service -q %{name} stop
109 /sbin/chkconfig --del %{name}
113 %defattr(644,root,root,755)
114 %doc LICENSE README ChangeLog
116 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/default.vcl
117 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/varnish
118 %attr(754,root,root) /etc/rc.d/init.d/varnish
119 %attr(755,root,root) %{_sbindir}/varnishd
120 %attr(755,root,root) %{_bindir}/*
121 %attr(755,root,root) %{_libdir}/*.so.*.*.*
128 %defattr(644,root,root,755)
129 %{_includedir}/varnish
130 %attr(755,root,root) %{_libdir}/*.so
132 %{_pkgconfigdir}/*.pc
135 %defattr(644,root,root,755)