%global varnishver %(pkg-config --silence-errors --modversion varnishapi || echo 0) %global varnishname varnish #global vplus -plus Name: vmod-memcached Summary: Varnish module to access memcached servers from VCL Version: 1.0.1 Release: 1%{?dist} License: BSD Group: System Environment/Daemons URL: https://github.com/varnish/libvmod-memcached Source0: %{url}/archive/lib%{name}-%{version}.tar.gz # Built a tarball like this # git clone https://github.com/varnish/libvmod-memcached.git # cd libvmod-memcached # git fetch --all --tags --prune # git checkout tags/libvmod-memcached-1.0.1 # ./autogen.sh && ./configure && make && make dist Requires: varnish%{?_isa} = %varnishver BuildRequires: make BuildRequires: gcc BuildRequires: pkgconfig BuildRequires: memcached BuildRequires: libmemcached-devel BuildRequires: varnish BuildRequires: varnish%{?vplus}-libs-devel BuildRequires: cyrus-sasl-devel BuildRequires: lsof %description Varnish module to access memcached servers from VCL %prep %autosetup -n lib%{name}-%{version} %build export RST2MAN=/bin/true %configure \ --docdir=%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}} # We have to remove rpath - not allowed in Fedora # (This problem only visible on 64 bit arches) sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g; s|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool #make_build make %check #make_build check make check %install %make_install #make install DESTDIR=#{buildroot} # None of these for fedora/epel find %{buildroot}/%{_libdir}/ -name '*.la' -exec rm -f {} ';' find %{buildroot}/%{_libdir}/ -name '*.a' -exec rm -f {} ';' # Include this explicitly below #rm %{buildroot}%{_docdir}/%{name}*/LICENSE rm %{buildroot}%{_pkgdocdir}/LICENSE %clean rm -rf %{buildroot} %files %{_libdir}/varnish*/vmods/ %license LICENSE %doc CHANGES.rst README.rst COPYING %{_mandir}/man3/*.3* %changelog * Wed Feb 27 2019 Ingvar Hagelund - 1.0.1-1 - New upstream release - Rebuilt for varnish-4.1.11 * Wed Nov 15 2017 Ingvar Hagelund - 1.0.1-0.6 - Pulled el5 support - Added missing CHANGES.rst to the build * Wed Nov 15 2017 Ingvar Hagelund - 1.0.1-0.5 - Rebuilt against varnish-plus-4.1.8r2 * Wed Oct 25 2017 Ingvar Hagelund - 1.0.1-0.4 - Rebuilt against varnish-plus-4.1.8r1 * Wed Aug 23 2017 Ingvar Hagelund - 1.0.1-0.2.20170113git1293b0f - Rebuild latest checkout against varnish-4.1.8 * Fri Jan 13 2017 Ingvar Hagelund - 1.0.1-0.1.20170113gitb2693e3 - Rebuild latest checkout against varnish-plus-4.1.4 * Wed Dec 07 2016 Ingvar Hagelund - 1.0.0-2 - Rebuild for varnish-4.1.1 * Tue Sep 13 2016 Ingvar Hagelund - 1.0.0-1 - Wrap for fedora/epel/copr