LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libvmod-synth.spec of Package libvmod-synth (Project home:BerlinOnline:varnish)

#
# spec file for package varnish libvmod-synth
#

Name:           libvmod-synth
Version:        4.1
Release:        1.0
Summary:        VMOD useful to generate synthetic responses during the vcl_error phase
License:        BSD-2-Clause
Group:          Productivity/Networking/Web/Proxy
URL:            https://github.com/carlosabalde/libvmod-synth
Source:			%name-%version.tar
BuildRoot:      %_tmppath/%name-%version-build
BuildRequires:  varnish-devel >= %version, automake, c_compiler, pkgconfig, libtool, python-docutils
Requires:       varnish >= %version

%description
Simple VMOD useful to generate synthetic responses during the vcl_error phase. 
Four types of responses are supported: files, templates, pixels and strings. 

%package devel
Requires:       %name = %version
Summary:        Development files for %name
Group:          Development/Libraries/C and C++

%description devel
This package holds the development files for libvmod-synth.

%prep
%setup -q

%build
PKG_CONFIG_PATH="%{_libdir}/pkgconfig"
export PKG_CONFIG_PATH
./autogen.sh
./configure --docdir="%_docdir/%name"
make

%install
mkdir -p "%{buildroot}/%{_docdir}/%{name}"
DESTDIR="%{buildroot}" make install

%files
%defattr(-,root,root)
%_libdir/varnish/vmods/*.so
%_mandir/man*/*
%_docdir/%{name}

%files devel
%defattr(-,root,root,-)
%_libdir/varnish/vmods/*.la
%_libdir/varnish/vmods/*.a

%changelog
* Wed Nov 18 2015 tom.anheyer@berlinonline.de
- initial release for vernish version 4.1.0