Commit 871bfdf2 authored by Geoff Simmons's avatar Geoff Simmons

Update RPM packaging for VRT 9.0 / Varnish 6.2.

parent 11461e30
......@@ -10,8 +10,8 @@
# - this script (named pkg)
# - VMOD selector tarball (vmod-selector-$VERSION.tar.gz)
# - RPM spec file (vmod-selector.spec)
# - yum repo config for varnish61@packagecloud (varnishcache_varnish61.repo)
# (see https://packagecloud.io/varnishcache/varnish61/install#manual-rpm)
# - yum repo config for varnish62@packagecloud (varnishcache_varnish62.repo)
# (see https://packagecloud.io/varnishcache/varnish62/install#manual-rpm)
# Sample docker invocation:
# $ docker run -t -v $PWD:/srv -e VERSION=47.1.1 -e RELEASE=815 \
......@@ -44,12 +44,12 @@ sudo yum install -y -q \
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# set up varnish repo
sudo cp /srv/varnishcache_varnish61.repo /etc/yum.repos.d/
sudo cp /srv/varnishcache_varnish62.repo /etc/yum.repos.d/
sudo yum -q makecache -y --disablerepo='*' --enablerepo='varnishcache_varnish61'
sudo yum -q makecache -y --disablerepo='*' --enablerepo='varnishcache_varnish62'
# build requirements
sudo yum install -y -q varnish-devel pkgconfig make gcc python-docutils
sudo yum install -y -v varnish-devel pkgconfig make gcc python-docutils
# build RPMs
rpmbuild -ba -D "dist .${DIST}" \
......
[varnishcache_varnish61]
name=varnishcache_varnish61
baseurl=https://packagecloud.io/varnishcache/varnish61/el/7/$basearch
[varnishcache_varnish62]
name=varnishcache_varnish62
baseurl=https://packagecloud.io/varnishcache/varnish62/el/7/$basearch
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packagecloud.io/varnishcache/varnish61/gpgkey
gpgkey=https://packagecloud.io/varnishcache/varnish62/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
[varnishcache_varnish61-source]
name=varnishcache_varnish61-source
baseurl=https://packagecloud.io/varnishcache/varnish61/el/7/SRPMS
[varnishcache_varnish62-source]
name=varnishcache_varnish62-source
baseurl=https://packagecloud.io/varnishcache/varnish62/el/7/SRPMS
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packagecloud.io/varnishcache/varnish61/gpgkey
gpgkey=https://packagecloud.io/varnishcache/varnish62/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
......@@ -9,11 +9,11 @@ Group: System Environment/Daemons
URL: https://code.uplex.de/uplex-varnish/libvmod-selector
Source0: %{name}-%{version}.tar.gz
# varnish from varnish61 at packagecloud
# This is the Requires for VMOD ABI compatibility with VRT >= 8.0.
Requires: varnishd(vrt)%{?_isa} >= 8
# varnish from varnish62 at packagecloud
# This is the Requires for VMOD ABI compatibility with VRT >= 9.0.
Requires: varnishd(vrt)%{?_isa} >= 9
BuildRequires: varnish-devel >= 6.1.0
BuildRequires: varnish-devel >= 6.2.0
BuildRequires: pkgconfig
BuildRequires: make
BuildRequires: gcc
......@@ -73,7 +73,10 @@ rm -rf %{buildroot}
/sbin/ldconfig
%changelog
* Fri Nov 30 2018 Geoff Simmons <geoff@uplex.de> - %{_version}-%{_release}
* Tue Apr 16 2019 Geoff Simmons <geoff@uplex.de> - %{_version}-%{_release}
Compatibilty with VRT 9 (Varnish 6.2)
* Fri Nov 30 2018 Geoff Simmons <geoff@uplex.de> - 1.0.0-1
Compatibilty with VRT 8 (Varnish 6.1 and libvarnishapi.so.2)
* Tue Jul 10 2018 Geoff Simmons <geoff@uplex.de> - 0.5.0-1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment