-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathvmod-queryfilter.spec.in
More file actions
39 lines (32 loc) · 996 Bytes
/
vmod-queryfilter.spec.in
File metadata and controls
39 lines (32 loc) · 996 Bytes
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
Summary: @PACKAGE_SUMMARY@
Name: vmod-queryfilter
Version: @PACKAGE_VERSION@
Release: 1%{?dist}
License: @PACKAGE_LICENSE@
Group: System Environment/Daemons
Source0: libvmod-queryfilter.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: varnish > 3.0
BuildRequires: make
BuildRequires: python-docutils
%description
@PACKAGE_DESCRIPTION@
%prep
%setup -n libvmod-queryfilter
%build
# this assumes that VARNISHSRC is defined on the rpmbuild command line, like this:
# rpmbuild -bb --define 'VARNISHSRC /home/user/rpmbuild/BUILD/varnish-3.0.3' redhat/*spec
./configure VARNISHSRC=%{VARNISHSRC} VMOD_DIR="$(PKG_CONFIG_PATH=%{VARNISHSRC} pkg-config --variable=vmoddir varnishapi)" --prefix=/usr/ --docdir='${datarootdir}/doc/%{name}'
make
make check
%install
make install DESTDIR=%{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_libdir}/varnis*/vmods/
%doc /usr/share/doc/%{name}/*
%{_mandir}/man?/*
%changelog
- Initial version.