-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvmod-named.spec
58 lines (38 loc) · 1.19 KB
/
vmod-named.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
%global vmod named
%global vmoddir %{_libdir}/varnish/vmods
Name: vmod-%{vmod}
Version: 0.2
Release: 1%{?dist}
Group: System Environment/Libraries
Summary: DNS director for Varnish Cache
URL: https://www.varnish-cache.org/vmod/%{vmod}
License: BSD
Source: lib%{name}-%{version}.tar.gz
BuildRequires: python
BuildRequires: varnish >= 4.1.2
BuildRequires: varnish-libs-devel >= 4.1.2
Requires: varnish >= 4.1.2
%description
A VMOD to create named director, that is to say relying on DNS to dynamically
create backends.
%prep
%setup -qn lib%{name}-%{version}
%build
%configure --with-rst2man=true
make %{?_smp_mflags}
%install
%make_install
rm %{buildroot}%{vmoddir}/libvmod_%{vmod}.la
%check
make %{?_smp_mflags} check
%files
%{vmoddir}/libvmod_%{vmod}.so
%{_mandir}/man?/*
%{_docdir}/*
%changelog
* Fri Feb 19 2016 Dridi Boukelmoune <dridi.boukelmoune[AT]gmail.com> - 0.3-1
- RPM spec cleanup.
* Fri Nov 27 2015 Dridi Boukelmoune <dridi.boukelmoune[AT]gmail.com> - 0.2-1
- Implementation is closer to Varnish 3's DNS director.
* Wed Sep 30 2015 Dridi Boukelmoune <dridi.boukelmoune[AT]gmail.com> - 0.1-1
- Initial version.