]> git.pld-linux.org Git - packages/varnish.git/blob - varnish.spec
- some build fixes/hacks
[packages/varnish.git] / varnish.spec
1 # TODO
2 # - user varnish
3 # - varnishlog initscript
4 Summary:        Varnish - a high-performance HTTP accelerator
5 Summary(pl.UTF-8):      Varnish - wydajny akcelerator HTTP
6 Name:           varnish
7 Version:        2.0.2
8 Release:        0.1
9 License:        BSD
10 Group:          Networking/Daemons/HTTP
11 Source0:        http://dl.sourceforge.net/varnish/%{name}-%{version}.tar.gz
12 # Source0-md5:  131f502a9a507b9ce0a7a91b22528e0c
13 Source1:        %{name}.init
14 Source2:        %{name}.sysconfig
15 Source3:        %{name}.conf
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
24 Requires:       gcc
25 Requires:       glibc-devel
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %define         _sysconfdir     /etc/%{name}
29
30 %description
31 The goal of the Varnish project is to develop a state-of-the-art,
32 high-performance HTTP accelerator.
33
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.
37
38 %description -l pl.UTF-8
39 Celem projektu Varnish jest stworzenie wydajnego akceleratora HTTP.
40
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.
44
45 %package devel
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}
50
51 %description devel
52 Header files for varnish library.
53
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe biblioteki varnish.
56
57 %package static
58 Summary:        Static varnish library
59 Summary(pl.UTF-8):      Statyczna biblioteka varnish
60 Group:          Development/Libraries
61 Requires:       %{name}-devel = %{version}-%{release}
62
63 %description static
64 Static varnish library.
65
66 %description static -l pl.UTF-8
67 Statyczna biblioteka varnish.
68
69 %prep
70 %setup -q
71 %patch0 -p1
72
73 %build
74 export CPPFLAGS="-I/usr/include/ncurses"
75 %{__aclocal}
76 %{__libtoolize}
77 %{__autoheader}
78 %{__automake}
79 %{__autoconf}
80 %configure
81 %{__make}
82
83 %install
84 rm -rf $RPM_BUILD_ROOT
85
86 %{__make} install \
87         DESTDIR=$RPM_BUILD_ROOT
88
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}
91
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
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT
98
99 %post
100 /sbin/ldconfig
101 /sbin/chkconfig --add varnish
102 %service %{name} restart
103
104 %postun -p /sbin/ldconfig
105
106 %preun
107 if [ "$1" = "0" ]; then
108         %service -q %{name} stop
109         /sbin/chkconfig --del %{name}
110 fi
111
112 %files
113 %defattr(644,root,root,755)
114 %doc LICENSE README ChangeLog
115 %dir %{_sysconfdir}
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.*.*.*
122 /var/lib/varnish
123 /var/run/varnish
124 %{_mandir}/man1/*
125 %{_mandir}/man7/*
126
127 %files devel
128 %defattr(644,root,root,755)
129 %{_includedir}/varnish
130 %attr(755,root,root) %{_libdir}/*.so
131 %{_libdir}/*.la
132 %{_pkgconfigdir}/*.pc
133
134 %files static
135 %defattr(644,root,root,755)
136 %{_libdir}/*.a
This page took 0.090162 seconds and 4 git commands to generate.