forked from varnish/libvmod-digest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvmod-digest.spec
41 lines (34 loc) · 1.2 KB
/
vmod-digest.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
Summary: libmhash support for Varnish %{VARNISHVER}
Name: vmod-digest
Version: 0.4
Release: 1%{?dist}
License: BSD
Group: System Environment/Daemons
Source0: libvmod-digest.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# we need EPEL, or at least mhash + mhash-devel from it:
# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm
Requires: varnish > 3.0, mhash
BuildRequires: make, autoconf, automake, libtool, python-docutils, mhash-devel
%description
libvmod-digest
%prep
%setup -n libvmod-digest
%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} VMODDIR="$(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
* Wed Oct 03 2012 Lasse Karstensen <[email protected]> - 0.1-0.20120918
- Initial version.