2019-02-15 09:37:58 +00:00
|
|
|
%global varnishver %(pkg-config --silence-errors --modversion varnishapi || echo 0)
|
|
|
|
|
2022-09-26 13:01:15 +00:00
|
|
|
%if 0%{?rhel} == 7
|
2020-03-20 08:06:49 +00:00
|
|
|
%global docutils python34-docutils
|
2020-09-16 15:34:50 +00:00
|
|
|
%global rst2man rst2man-3.4
|
2020-03-20 08:06:49 +00:00
|
|
|
%else
|
|
|
|
%global docutils python3-docutils
|
2020-09-16 15:34:50 +00:00
|
|
|
%global rst2man rst2man
|
2020-03-20 08:06:49 +00:00
|
|
|
%endif
|
2019-02-15 09:37:58 +00:00
|
|
|
|
2017-05-31 10:57:07 +00:00
|
|
|
Name: varnish-modules
|
2023-03-19 01:07:48 +00:00
|
|
|
Version: 0.22.0
|
2024-06-24 16:28:34 +00:00
|
|
|
Release: 6%{?dist}
|
2017-05-31 10:57:07 +00:00
|
|
|
Summary: A collection of modules ("vmods") extending Varnish VCL
|
|
|
|
|
2023-06-06 14:43:05 +00:00
|
|
|
License: BSD-2-Clause
|
2021-03-17 16:00:18 +00:00
|
|
|
URL: https://github.com/varnish/varnish-modules
|
2021-10-04 18:18:26 +00:00
|
|
|
Source: https://github.com/varnish/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
|
2019-09-28 22:49:24 +00:00
|
|
|
|
2017-05-31 10:57:07 +00:00
|
|
|
BuildRequires: gcc
|
2018-07-17 19:00:46 +00:00
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: pkgconfig(varnishapi)
|
|
|
|
BuildRequires: varnish
|
2017-05-31 10:57:07 +00:00
|
|
|
|
2020-03-20 08:06:49 +00:00
|
|
|
# Build from a git checkout
|
2022-04-04 12:26:42 +00:00
|
|
|
#BuildRequires: automake
|
|
|
|
#BuildRequires: autoconf
|
|
|
|
#BuildRequires: libtool
|
2020-03-20 08:06:49 +00:00
|
|
|
BuildRequires: %docutils
|
2019-09-28 22:49:24 +00:00
|
|
|
|
2020-03-20 08:06:49 +00:00
|
|
|
Requires: varnish = %varnishver
|
2017-05-31 10:57:07 +00:00
|
|
|
|
2022-04-04 12:26:42 +00:00
|
|
|
Provides: vmod(accept)%{_isa} = %{version}-%{release}
|
|
|
|
Provides: vmod(bodyaccess)%{_isa} = %{version}-%{release}
|
|
|
|
Provides: vmod(header)%{_isa} = %{version}-%{release}
|
|
|
|
Provides: vmod(saintmode)%{_isa} = %{version}-%{release}
|
|
|
|
Provides: vmod(tcp)%{_isa} = %{version}-%{release}
|
|
|
|
Provides: vmod(var)%{_isa} = %{version}-%{release}
|
|
|
|
Provides: vmod(vsthrottle)%{_isa} = %{version}-%{release}
|
|
|
|
Provides: vmod(xkey)%{_isa} = %{version}-%{release}
|
|
|
|
Provides: vmod(str)%{_isa} = %{version}-%{release}
|
2017-05-31 10:57:07 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This is a collection of modules ("vmods") extending Varnish VCL used
|
|
|
|
for describing HTTP request/response policies with additional
|
2020-09-16 15:34:50 +00:00
|
|
|
capabilities. This collection contains the following vmods:
|
|
|
|
bodyaccess, header, saintmode, tcp, var, vsthrottle, xkey
|
2017-05-31 10:57:07 +00:00
|
|
|
|
2018-07-17 19:00:46 +00:00
|
|
|
|
2017-05-31 10:57:07 +00:00
|
|
|
%prep
|
2021-10-04 18:18:26 +00:00
|
|
|
%autosetup
|
2019-09-28 22:49:24 +00:00
|
|
|
|
2018-07-17 19:00:46 +00:00
|
|
|
|
2017-05-31 10:57:07 +00:00
|
|
|
%build
|
2021-10-04 18:18:26 +00:00
|
|
|
#sh bootstrap
|
2020-09-16 15:34:50 +00:00
|
|
|
export RST2MAN=%{rst2man}
|
2020-03-20 08:06:49 +00:00
|
|
|
%configure
|
|
|
|
%make_build
|
2017-05-31 10:57:07 +00:00
|
|
|
|
2020-09-16 15:34:50 +00:00
|
|
|
|
2017-05-31 10:57:07 +00:00
|
|
|
%install
|
2019-02-15 10:45:24 +00:00
|
|
|
%make_install docdir=%_pkgdocdir
|
2017-05-31 10:57:07 +00:00
|
|
|
find %{buildroot}/%{_libdir}/ -name '*.la' -exec rm -f {} ';'
|
2019-02-15 10:54:28 +00:00
|
|
|
rm %{buildroot}%{_pkgdocdir}/LICENSE # Rather use license macro
|
2018-07-17 19:00:46 +00:00
|
|
|
|
2020-09-16 15:34:50 +00:00
|
|
|
|
2017-05-31 10:57:07 +00:00
|
|
|
%check
|
2020-03-23 11:41:01 +00:00
|
|
|
%ifarch %ix86 %arm ppc
|
2020-03-20 08:06:49 +00:00
|
|
|
# 64-bit specific test
|
|
|
|
sed -i 's,tests/xkey/test12.vtc,,' src/Makefile
|
|
|
|
%endif
|
2018-07-17 19:00:46 +00:00
|
|
|
%make_build check VERBOSE=1
|
2017-05-31 10:57:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
2021-03-17 16:00:18 +00:00
|
|
|
#doc docs AUTHORS CHANGES.rst COPYING README.rst
|
2021-05-18 13:56:51 +00:00
|
|
|
%doc AUTHORS CHANGES.rst COPYING README.md
|
2017-05-31 10:57:07 +00:00
|
|
|
%license LICENSE
|
|
|
|
%{_libdir}/varnish/vmods/*
|
|
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
2020-09-16 15:34:50 +00:00
|
|
|
|
2017-05-31 10:57:07 +00:00
|
|
|
%changelog
|
2024-06-24 16:28:34 +00:00
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.22.0-6
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
2024-01-27 07:31:08 +00:00
|
|
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.22.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2023-11-15 15:36:58 +00:00
|
|
|
* Wed Nov 15 2023 Ingvar Hagelund <ingvar@redpill-linpro.com> - 0.22.0-4
|
|
|
|
- Rebuilt for varnish-7.4.2
|
|
|
|
|
2023-07-22 17:25:59 +00:00
|
|
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.22.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-06-06 14:43:05 +00:00
|
|
|
* Tue Jun 06 2023 Luboš Uhliarik <luhliari@redhat.com> - 0.22.0-2
|
|
|
|
- SPDX migration
|
|
|
|
|
2023-03-20 22:33:50 +00:00
|
|
|
* Sun Mar 19 2023 Ingvar Hagelund <ingvar@redpill-linpro.com> - 0.22.0-1
|
2023-03-19 01:07:48 +00:00
|
|
|
- New upstream release
|
|
|
|
- Built for varnish-7.3.0
|
|
|
|
|
2023-01-21 06:07:17 +00:00
|
|
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-11-13 13:10:43 +00:00
|
|
|
* Sun Nov 13 2022 Ingvar Hagelund <ingvar@redpill-linpro.com> - 0.21.0-2
|
|
|
|
- Built for varnish-7.2.1
|
|
|
|
|
2022-09-26 13:01:15 +00:00
|
|
|
* Mon Sep 26 2022 Ingvar Hagelund <ingvar@redpill-linpro.com> - 0.21.0-1
|
|
|
|
- New upstream release
|
|
|
|
- Removed unused macros from specfile
|
|
|
|
- Built for varnish-7.2.0
|
|
|
|
|
2022-08-15 07:13:03 +00:00
|
|
|
* Mon Aug 15 2022 Ingvar Hagelund <ingvar@redpill-linpro.com> - 0.20.0-3
|
|
|
|
- Built for varnish-7.1.1
|
|
|
|
|
2022-07-23 11:41:59 +00:00
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.20.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-04-04 12:26:42 +00:00
|
|
|
* Tue Mar 29 2022 Ingvar Hagelund <ingvar@redpill-linpro.com> - 0.20.0-1
|
|
|
|
- Built for varnish-7.1.0
|
|
|
|
- Now provides vmod(name) instead of vmod-name, matching varnish' provides
|
|
|
|
|
2022-02-10 10:47:41 +00:00
|
|
|
* Thu Feb 10 2022 Ingvar Hagelund <ingvar@redpill-linpro.com> - 0.19.0-4
|
|
|
|
- Built for varnish-7.0.2
|
|
|
|
|
2022-01-22 03:48:29 +00:00
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2022-01-18 19:07:11 +00:00
|
|
|
* Tue Jan 18 2022 Ingvar Hagelund <ingvar@redpill-linpro.com> - 0.19.0-2
|
|
|
|
- Built for varnish-7.0.1
|
|
|
|
|
2021-10-04 18:18:26 +00:00
|
|
|
* Thu Sep 23 2021 Ingvar Hagelund <ingvar@redpill-linpro.com> - 0.19.0-1
|
|
|
|
- New upstream release
|
|
|
|
- Built for varnish-7.0.0
|
|
|
|
|
2021-07-23 20:19:11 +00:00
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.18.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-07-17 08:54:29 +00:00
|
|
|
* Sat Jul 17 2021 Ingvar Hagelund <ingvar@redpill-linpro.com> 0.18.0-2
|
|
|
|
- Rebuilt for varnish-6.6.1
|
|
|
|
|
2021-05-18 13:56:51 +00:00
|
|
|
* Tue May 18 2021 Ingvar Hagelund <ingvar@redpill-linpro.com> 0.18.0-1
|
|
|
|
- New upstream release
|
|
|
|
- Rebuilt for varnish-6.6.0
|
|
|
|
|
2021-03-17 16:00:18 +00:00
|
|
|
* Wed Mar 17 2021 Ingvar Hagelund <ingvar@redpill-linpro.com> 0.17.1-1
|
|
|
|
- New upstream release
|
|
|
|
- Switched back to original varnish github upstream, as it has catched up
|
|
|
|
- Includes fix for CVE-2021-28543, VSV00006, bz#1939669
|
|
|
|
|
2021-01-27 22:55:21 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.0-0.3.klarlack.20200916git4d6593c
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-09-29 08:31:43 +00:00
|
|
|
* Tue Sep 29 2020 Ingvar Hagelund <ingvar@redpill-linpro.com> - 0.17.0-0.2.klarlack.20200916git
|
|
|
|
- Rebuilt for varnish-6.5.1
|
|
|
|
|
2020-09-16 15:34:50 +00:00
|
|
|
* Wed Sep 16 2020 Ingvar Hagelund <ingvar@redpill-linpro.com> - 0.17.0-0.1.klarlack.20200916git
|
|
|
|
- Switched upstream to Nils Goroll's fork which is the defacto current upstream
|
|
|
|
- Synced description to reality
|
|
|
|
- This is a snapshot build that needs autotools for building
|
|
|
|
- Rebuilt for varnish-6.5.0
|
|
|
|
|
2020-08-17 07:34:42 +00:00
|
|
|
* Mon Aug 17 2020 Ingvar Hagelund <ingvar@redpill-linpro.com> - 0.16.0-3
|
|
|
|
- Rebuilt for varnish-6.4.0
|
|
|
|
|
2020-07-29 13:33:46 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-03-28 18:51:59 +00:00
|
|
|
* Sat Mar 28 2020 Ingvar Hagelund <ingvar@redpill-linpro.com> - 0.16.0-1
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
* Tue Mar 17 2020 Ingvar Hagelund <ingvar@redpill-linpro.com> - 0.16.0-0.1.20200317git21d0c84
|
2020-03-20 08:06:49 +00:00
|
|
|
- Snapshot from 6.4 branch, rebuilt against varnish-6.4.0
|
|
|
|
- Removed patches merged upstream
|
|
|
|
- Delete 64-bit specific test on 32-bit arches
|
|
|
|
|
2020-01-31 02:57:06 +00:00
|
|
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-09-28 22:49:24 +00:00
|
|
|
* Sun Sep 29 2019 Ingvar Hagelund <ingvar@redpill-linpro.com> - 0.15.0-7
|
|
|
|
- Added patch from Nils Goroll, compatibility for varnish-6.3, closes bz#1736943
|
|
|
|
- Rebuilt against varnish-6.3.0
|
|
|
|
|
2019-07-27 02:48:26 +00:00
|
|
|
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-03-01 13:23:24 +00:00
|
|
|
* Fri Feb 15 2019 Ingvar Hagelund <ingvar@redpill-linpro.com> - 0.15.0-5
|
2019-02-15 10:45:24 +00:00
|
|
|
- Install docs in correct docdir
|
|
|
|
|
2019-02-15 09:37:58 +00:00
|
|
|
* Fri Feb 15 2019 Ingvar Hagelund <ingvar@redpill-linpro.com> - 0.15.0-4
|
|
|
|
- Added a simple patch from upstream, fixing a formatting bug trigged on 32bit
|
|
|
|
- Removed dependency on docutils. It is not necessary on released tarballs
|
|
|
|
|
2019-02-14 15:52:09 +00:00
|
|
|
* Thu Feb 14 2019 Ingvar Hagelund <ingvar@redpill-linpro.com> - 0.15.0-3
|
|
|
|
- Added a proposed patch from Nils Goroll providing support for vmod_saintmode
|
|
|
|
on varnish-6.1.1 (closes rhbz #1676183)
|
|
|
|
|
2019-02-03 11:06:50 +00:00
|
|
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-17 19:00:46 +00:00
|
|
|
* Tue Jul 17 2018 Dridi Boukelmoune <dridi@fedoraproject.org> 0.15.0-1
|
|
|
|
- Update to 0.15.0
|
|
|
|
- Drop EPEL and older Fedora releases support
|
|
|
|
- Drop broken manual ABI dependency to Varnish
|
|
|
|
- Drop commented out references to past patches
|
|
|
|
- Verbose test suite
|
|
|
|
- Simplified configure step
|
|
|
|
- Dependencies cleanup
|
|
|
|
|
2018-07-14 08:25:42 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.1-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-02-09 20:20:24 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.1-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-10-21 08:18:48 +00:00
|
|
|
* Sat Oct 21 2017 Dridi Boukelmoune <dridi@fedoraproject.org> 0.12.1-5
|
|
|
|
- Update varnishabi requirement for f28
|
|
|
|
|
2017-08-03 09:58:35 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-27 21:11:31 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-06-01 20:34:40 +00:00
|
|
|
* Thu Jun 01 2017 Ingvar Hagelund <ingvar@redpill-linpro.com> 0.12.1-2
|
|
|
|
- Set correct varnishabi requirement for the different fedoras
|
|
|
|
|
2017-05-31 10:57:07 +00:00
|
|
|
* Wed May 31 2017 Ingvar Hagelund <ingvar@redpill-linpro.com> 0.12.1-1
|
|
|
|
- New uptream release
|
|
|
|
- Pull el5 support
|
|
|
|
|
|
|
|
* Mon Mar 20 2017 Ingvar Hagelund <ingvar@redpill-linpro.com> 0.11.0-1
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
* Sat Sep 24 2016 Ingvar Hagelund <ingvar@redpill-linpro.com> 0.9.2-0.1.20160924gitdaa4f1d
|
|
|
|
- Upstream git checkout with support for varnish-5.0
|
|
|
|
- Removed patches that are included upstream
|
|
|
|
- el5 build fix
|
|
|
|
|
|
|
|
* Fri Aug 05 2016 Ingvar Hagelund <ingvar@redpill-linpro.com> 0.9.1-1
|
|
|
|
- New upstream release
|
|
|
|
- Build man pages, buildrequires python-docutils
|
|
|
|
- Added a patch for tests/cookie/08-overflow.vtc, upping workspace_client,
|
|
|
|
the default is too small on 32bit
|
|
|
|
- Removed extra cflags for el5, fixed with patch from upstream
|
|
|
|
- Force readable docs and debug files, they tend to end up with mode 600
|
|
|
|
|
|
|
|
* Tue Apr 05 2016 Ingvar Hagelund <ingvar@redpill-linpro.com> 0.9.0-1
|
|
|
|
- First wrap for fedora
|
|
|
|
- Uses some old-style specfile components for el5 compatibility, including
|
|
|
|
the usage of the BuildRoot header and cleaning the buildroot before install
|