From 7f8cd209b8e35fca91cef55ce636663c1a3345ea352fa271ae52a40d801ac0c4 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 19 Mar 2018 22:26:28 +0000 Subject: [PATCH 1/7] - Update to new upstream release 6.0.0 OBS-URL: https://build.opensuse.org/package/show/server:http/varnish?expand=0&rev=84 --- varnish-5.1.2-add-fallthrough-comments.patch | 75 ++++++++++--------- varnish-5.1.2.tar.gz | 3 - varnish-6.0.0.tgz | 3 + varnish.changes | 16 ++++- varnish.spec | 76 +++++++++----------- 5 files changed, 95 insertions(+), 78 deletions(-) delete mode 100644 varnish-5.1.2.tar.gz create mode 100644 varnish-6.0.0.tgz diff --git a/varnish-5.1.2-add-fallthrough-comments.patch b/varnish-5.1.2-add-fallthrough-comments.patch index 5568102..4b05df7 100644 --- a/varnish-5.1.2-add-fallthrough-comments.patch +++ b/varnish-5.1.2-add-fallthrough-comments.patch @@ -10,9 +10,28 @@ upgraded in a future release (see commit 5fae561 on master branch at https://github.com/varnishcache/varnish-cache/commit/5fae561). -- -diff -up varnish-5.1.2/lib/libvgz/infback.c.orig varnish-5.1.2/lib/libvgz/infback.c ---- varnish-5.1.2/lib/libvgz/infback.c.orig 2017-06-25 18:25:04.558206683 +0200 -+++ varnish-5.1.2/lib/libvgz/infback.c 2017-06-25 18:25:16.410207203 +0200 +--- + bin/varnishadm/varnishadm.c | 1 + + lib/libvgz/infback.c | 1 + + lib/libvgz/inflate.c | 18 ++++++++++++++++++ + 3 files changed, 20 insertions(+) + +Index: varnish-6.0.0/bin/varnishadm/varnishadm.c +=================================================================== +--- varnish-6.0.0.orig/bin/varnishadm/varnishadm.c ++++ varnish-6.0.0/bin/varnishadm/varnishadm.c +@@ -452,6 +452,7 @@ main(int argc, char * const *argv) + case 'h': + /* Usage help */ + usage(0); ++ break; + case 'n': + n_arg = optarg; + break; +Index: varnish-6.0.0/lib/libvgz/infback.c +=================================================================== +--- varnish-6.0.0.orig/lib/libvgz/infback.c ++++ varnish-6.0.0/lib/libvgz/infback.c @@ -477,6 +477,7 @@ void FAR *out_desc; } Tracev((stderr, "inflate: codes ok\n")); @@ -21,18 +40,19 @@ diff -up varnish-5.1.2/lib/libvgz/infback.c.orig varnish-5.1.2/lib/libvgz/infbac case LEN: /* use inflate_fast() if we have enough input and output */ -diff -up varnish-5.1.2/lib/libvgz/inflate.c.orig varnish-5.1.2/lib/libvgz/inflate.c ---- varnish-5.1.2/lib/libvgz/inflate.c.orig 2017-06-25 18:24:51.234206098 +0200 -+++ varnish-5.1.2/lib/libvgz/inflate.c 2017-06-25 18:25:42.098208329 +0200 -@@ -719,6 +719,7 @@ int flush; - if (state->flags & 0x0200) CRC2(state->check, hold); +Index: varnish-6.0.0/lib/libvgz/inflate.c +=================================================================== +--- varnish-6.0.0.orig/lib/libvgz/inflate.c ++++ varnish-6.0.0/lib/libvgz/inflate.c +@@ -747,6 +747,7 @@ int flush; + CRC2(state->check, hold); INITBITS(); state->mode = EXLEN; + /* FALLTHROUGH */ case EXLEN: if (state->flags & 0x0400) { NEEDBITS(16); -@@ -731,6 +732,7 @@ int flush; +@@ -760,6 +761,7 @@ int flush; else if (state->head != Z_NULL) state->head->extra = Z_NULL; state->mode = EXTRA; @@ -40,7 +60,7 @@ diff -up varnish-5.1.2/lib/libvgz/inflate.c.orig varnish-5.1.2/lib/libvgz/inflat case EXTRA: if (state->flags & 0x0400) { copy = state->length; -@@ -753,6 +755,7 @@ int flush; +@@ -782,6 +784,7 @@ int flush; } state->length = 0; state->mode = NAME; @@ -48,7 +68,7 @@ diff -up varnish-5.1.2/lib/libvgz/inflate.c.orig varnish-5.1.2/lib/libvgz/inflat case NAME: if (state->flags & 0x0800) { if (have == 0) goto inf_leave; -@@ -774,6 +777,7 @@ int flush; +@@ -803,6 +806,7 @@ int flush; state->head->name = Z_NULL; state->length = 0; state->mode = COMMENT; @@ -56,7 +76,7 @@ diff -up varnish-5.1.2/lib/libvgz/inflate.c.orig varnish-5.1.2/lib/libvgz/inflat case COMMENT: if (state->flags & 0x1000) { if (have == 0) goto inf_leave; -@@ -794,6 +798,7 @@ int flush; +@@ -823,6 +827,7 @@ int flush; else if (state->head != Z_NULL) state->head->comment = Z_NULL; state->mode = HCRC; @@ -64,7 +84,7 @@ diff -up varnish-5.1.2/lib/libvgz/inflate.c.orig varnish-5.1.2/lib/libvgz/inflat case HCRC: if (state->flags & 0x0200) { NEEDBITS(16); -@@ -817,6 +822,7 @@ int flush; +@@ -846,6 +851,7 @@ int flush; strm->adler = state->check = ZSWAP32(hold); INITBITS(); state->mode = DICT; @@ -72,7 +92,7 @@ diff -up varnish-5.1.2/lib/libvgz/inflate.c.orig varnish-5.1.2/lib/libvgz/inflat case DICT: if (state->havedict == 0) { RESTORE(); -@@ -824,8 +830,10 @@ int flush; +@@ -853,8 +859,10 @@ int flush; } strm->adler = state->check = adler32(0L, Z_NULL, 0); state->mode = TYPE; @@ -83,7 +103,7 @@ diff -up varnish-5.1.2/lib/libvgz/inflate.c.orig varnish-5.1.2/lib/libvgz/inflat case TYPEDO: if (strm->start_bit == 0) strm->start_bit = 8 * (strm->total_in + in - have) - bits; -@@ -881,8 +889,10 @@ int flush; +@@ -910,8 +918,10 @@ int flush; INITBITS(); state->mode = COPY_; if (flush == Z_TREES) goto inf_leave; @@ -94,7 +114,7 @@ diff -up varnish-5.1.2/lib/libvgz/inflate.c.orig varnish-5.1.2/lib/libvgz/inflat case COPY: copy = state->length; if (copy) { -@@ -1022,8 +1032,10 @@ int flush; +@@ -1051,8 +1061,10 @@ int flush; Tracev((stderr, "inflate: codes ok\n")); state->mode = LEN_; if (flush == Z_TREES) goto inf_leave; @@ -105,7 +125,7 @@ diff -up varnish-5.1.2/lib/libvgz/inflate.c.orig varnish-5.1.2/lib/libvgz/inflat case LEN: if (have >= 6 && left >= 258) { RESTORE(); -@@ -1073,6 +1085,7 @@ int flush; +@@ -1102,6 +1114,7 @@ int flush; } state->extra = (unsigned)(here.op) & 15; state->mode = LENEXT; @@ -113,7 +133,7 @@ diff -up varnish-5.1.2/lib/libvgz/inflate.c.orig varnish-5.1.2/lib/libvgz/inflat case LENEXT: if (state->extra) { NEEDBITS(state->extra); -@@ -1083,6 +1096,7 @@ int flush; +@@ -1112,6 +1125,7 @@ int flush; Tracevv((stderr, "inflate: length %u\n", state->length)); state->was = state->length; state->mode = DIST; @@ -121,7 +141,7 @@ diff -up varnish-5.1.2/lib/libvgz/inflate.c.orig varnish-5.1.2/lib/libvgz/inflat case DIST: for (;;) { here = state->distcode[BITS(state->distbits)]; -@@ -1110,6 +1124,7 @@ int flush; +@@ -1139,6 +1153,7 @@ int flush; state->offset = (unsigned)here.val; state->extra = (unsigned)(here.op) & 15; state->mode = DISTEXT; @@ -129,7 +149,7 @@ diff -up varnish-5.1.2/lib/libvgz/inflate.c.orig varnish-5.1.2/lib/libvgz/inflat case DISTEXT: if (state->extra) { NEEDBITS(state->extra); -@@ -1126,6 +1141,7 @@ int flush; +@@ -1155,6 +1170,7 @@ int flush; #endif Tracevv((stderr, "inflate: distance %u\n", state->offset)); state->mode = MATCH; @@ -137,7 +157,7 @@ diff -up varnish-5.1.2/lib/libvgz/inflate.c.orig varnish-5.1.2/lib/libvgz/inflat case MATCH: if (left == 0) goto inf_leave; copy = out - left; -@@ -1201,6 +1217,7 @@ int flush; +@@ -1230,6 +1246,7 @@ int flush; } #ifdef GUNZIP state->mode = LENGTH; @@ -145,7 +165,7 @@ diff -up varnish-5.1.2/lib/libvgz/inflate.c.orig varnish-5.1.2/lib/libvgz/inflat case LENGTH: if (state->wrap && state->flags) { NEEDBITS(32); -@@ -1214,6 +1231,7 @@ int flush; +@@ -1243,6 +1260,7 @@ int flush; } #endif state->mode = DONE; @@ -153,14 +173,3 @@ diff -up varnish-5.1.2/lib/libvgz/inflate.c.orig varnish-5.1.2/lib/libvgz/inflat case DONE: ret = Z_STREAM_END; goto inf_leave; -diff -up varnish-5.1.2/bin/varnishadm/varnishadm.c.orig varnish-5.1.2/bin/varnishadm/varnishadm.c ---- varnish-5.1.2/bin/varnishadm/varnishadm.c.orig 2017-06-25 18:38:35.790242267 +0200 -+++ varnish-5.1.2/bin/varnishadm/varnishadm.c 2017-06-25 18:41:45.510250589 +0200 -@@ -462,6 +462,7 @@ main(int argc, char * const *argv) - case 'h': - /* Usage help */ - usage(0); -+ break; - case 'n': - n_arg = optarg; - break; diff --git a/varnish-5.1.2.tar.gz b/varnish-5.1.2.tar.gz deleted file mode 100644 index 6759282..0000000 --- a/varnish-5.1.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:39d858137e26948a7c85f07363f13f0778da61d234126e03a160a0cb9ba4fce3 -size 2597817 diff --git a/varnish-6.0.0.tgz b/varnish-6.0.0.tgz new file mode 100644 index 0000000..03aab42 --- /dev/null +++ b/varnish-6.0.0.tgz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c7b2839c95b2bf1f336abc20b5d8b149c3aa72deff142f2379d1d431206b0bee +size 3033621 diff --git a/varnish.changes b/varnish.changes index c36360e..e4f7851 100644 --- a/varnish.changes +++ b/varnish.changes @@ -1,7 +1,21 @@ +------------------------------------------------------------------- +Mon Mar 19 22:22:35 UTC 2018 - jengelh@inai.de + +- Update to new upstream release 6.0.0 + * Verify outputs of varnishncsa -c when UDS addresses are in use. + * Error messages from Resolve_Sockaddr(UDS) differ on different + platforms. + * Document the use of UDS for -a addresses in man varnishd(1). + * Document UDS -a addresses in the usage output of varnishd. + * Make VCC report when symbols require a different syntax. + * Give VMODs a wildcard toplevel symbol, and populate symbols + on demand. + * Always use HTTP/1.1 on backend connections for pass fetch. + ------------------------------------------------------------------- Thu Nov 23 13:50:41 UTC 2017 - rbrown@suse.com -- Replace references to /var/adm/fillup-templates with new +- Replace references to /var/adm/fillup-templates with new %_fillupdir macro (boo#1069468) ------------------------------------------------------------------- diff --git a/varnish.spec b/varnish.spec index 73e9f1c..f15596f 100644 --- a/varnish.spec +++ b/varnish.spec @@ -18,7 +18,7 @@ #Compat macro for new _fillupdir macro introduced in Nov 2017 %if ! %{defined _fillupdir} - %define _fillupdir /var/adm/fillup-templates +% define _fillupdir /var/adm/fillup-templates %endif %define library_name libvarnishapi1 @@ -26,15 +26,15 @@ %define pkg_logdir %_localstatedir/log/%name %define pkg_cachedir %_localstatedir/cache/%name Name: varnish -Version: 5.1.2 +Version: 6.0.0 Release: 0 -Summary: High-performance HTTP accelerator +Summary: Accelerator for HTTP services License: BSD-2-Clause Group: Productivity/Networking/Web/Proxy URL: http://varnish-cache.org/ #Git-Clone: git://git.varnish-cache.org/varnish-cache #Git-Web: https://varnish-cache.org/trac/browser -Source: https://repo.varnish-cache.org/source/%name-%version.tar.gz +Source: https://varnish-cache.org/_downloads/%name-%version.tgz Source3: varnish.sysconfig Source5: varnish.logrotate Source7: varnish.service @@ -57,11 +57,11 @@ Recommends: logrotate %endif %description -Varnish is an HTTP accelerator. An HTTP accelerator (often called Reverse -Proxy) is an application that stores (caches) documents that have been -requested over the HTTP protocol. +Varnish is an HTTP accelerator. Often called Reverse Proxy, it is an +application that stores (caches) documents that have been requested +over the HTTP protocol. -Based on certain criteria the next client requesting the document is either +Based on certain criteria, the next client requesting the document is either given the cached document, or a "fresh" document requested from a backend server. The purpose of this is to minimize the requests going to the backend server(s) by serving the same document to potentially many users. @@ -71,11 +71,11 @@ Summary: Shared libraries for Varnish Group: Productivity/Networking/Web/Proxy %description -n %library_name -Varnish is an HTTP accelerator. An HTTP accelerator (often called Reverse -Proxy) is an application that stores (caches) documents that have been -requested over the HTTP protocol. +Varnish is an HTTP accelerator. Often called Reverse Proxy, it is an +application that stores (caches) documents that have been requested +over the HTTP protocol. -Based on certain criteria the next client requesting the document is either +Based on certain criteria, the next client requesting the document is either given the cached document, or a "fresh" document requested from a backend server. The purpose of this is to minimize the requests going to the backend server(s) by serving the same document to potentially many users. @@ -88,14 +88,9 @@ Group: Development/Libraries/C and C++ Requires: %name = %version %description devel -Varnish is an HTTP accelerator. An HTTP accelerator (often called Reverse -Proxy) is an application that stores (caches) documents that have been -requested over the HTTP protocol. - -Based on certain criteria the next client requesting the document is either -given the cached document, or a "fresh" document requested from a backend -server. The purpose of this is to minimize the requests going to the backend -server(s) by serving the same document to potentially many users. +Varnish is an HTTP accelerator. Often called Reverse Proxy, it is an +application that stores (caches) documents that have been requested +over the HTTP protocol. This package holds the development files for varnish. @@ -106,7 +101,7 @@ This package holds the development files for varnish. %build export CFLAGS="%optflags -fstack-protector" %ifarch %ix86 -export CFLAGS+=" -ffloat-store -fexcess-precision=standard" +export CFLAGS="$CFLAGS -ffloat-store -fexcess-precision=standard" %endif %configure --disable-static --docdir="%_docdir/%name" \ --localstatedir="%_localstatedir/cache/" \ @@ -115,22 +110,22 @@ export CFLAGS+=" -ffloat-store -fexcess-precision=standard" make %{?_smp_mflags} %install -b="%buildroot"; +b="%buildroot" %make_install # There is no use for them to normal users -mv "$b/%_bindir"/* "$b/%_sbindir/"; +mv "$b/%_bindir"/* "$b/%_sbindir/" # ##missing directories -install -dm 0755 "$b"/{%pkg_logdir,%pkg_home}; -install -Dpm 0644 "%{S:5}" "$b/%_sysconfdir/logrotate.d/varnish"; +install -dm 0755 "$b"/{%pkg_logdir,%pkg_home} +install -Dpm 0644 "%{S:5}" "$b/%_sysconfdir/logrotate.d/varnish" # ##init scripts -install -Dpm 0644 "%{S:3}" "$b%{_fillupdir}/sysconfig.%name"; -install -Dpm 0644 "%{S:7}" "$b/%_unitdir/varnish.service"; -install -Dpm 0644 "%{S:8}" "$b/%_unitdir/varnishlog.service"; -mkdir -p "$b/%_sbindir"; -ln -s service "$b/%_sbindir/rcvarnish"; -ln -s service "$b/%_sbindir/rcvarnishlog"; +install -Dpm 0644 "%{S:3}" "$b%{_fillupdir}/sysconfig.%name" +install -Dpm 0644 "%{S:7}" "$b/%_unitdir/varnish.service" +install -Dpm 0644 "%{S:8}" "$b/%_unitdir/varnishlog.service" +mkdir -p "$b/%_sbindir" +ln -s service "$b/%_sbindir/rcvarnish" +ln -s service "$b/%_sbindir/rcvarnishlog" # ##config files mkdir -p "$b/%_sysconfdir/%name" @@ -141,6 +136,9 @@ mkdir -p "$b/%pkg_logdir" mkdir -p "$b/%_docdir/%name" cp -a ChangeLog LICENSE README.rst "$b/%_docdir/%name/" +perl -i -pe 's{^#!/usr/bin/env python}{#!/usr/bin/python}g' \ + "$b/usr/share/varnish/vmodtool.py" "$b/usr/share/varnish/vsctool.py" + %check if ! make %{?_smp_mflags} check; then x="$?" @@ -150,24 +148,20 @@ fi %pre %_bindir/getent group varnish >/dev/null || \ - %_sbindir/groupadd -r varnish || : + %_sbindir/groupadd -r varnish %_bindir/getent passwd varnish >/dev/null || \ %_sbindir/useradd -g varnish -s /bin/false -r -c "user for Varnish" \ - -d %pkg_home varnish || : -%service_add_pre varnish.service -%service_add_pre varnishlog.service + -d %pkg_home varnish +%service_add_pre varnish.service varnishlog.service %post -%service_add_post varnish.service -%service_add_post varnishlog.service +%service_add_post varnish.service varnishlog.service %preun -%service_del_preun varnish.service -%service_del_preun varnishlog.service +%service_del_preun varnish.service varnishlog.service %postun -%service_del_postun varnish.service -%service_del_postun varnishlog.service +%service_del_postun varnish.service varnishlog.service %post -n %library_name -p /sbin/ldconfig %postun -n %library_name -p /sbin/ldconfig From b8dc4c26acf16f1c173306c4911625255a83050bed13449c567a7da5793be2df Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 19 Mar 2018 22:28:58 +0000 Subject: [PATCH 2/7] OBS-URL: https://build.opensuse.org/package/show/server:http/varnish?expand=0&rev=85 --- varnish.changes | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/varnish.changes b/varnish.changes index e4f7851..b75c277 100644 --- a/varnish.changes +++ b/varnish.changes @@ -2,14 +2,9 @@ Mon Mar 19 22:22:35 UTC 2018 - jengelh@inai.de - Update to new upstream release 6.0.0 - * Verify outputs of varnishncsa -c when UDS addresses are in use. - * Error messages from Resolve_Sockaddr(UDS) differ on different - platforms. - * Document the use of UDS for -a addresses in man varnishd(1). - * Document UDS -a addresses in the usage output of varnishd. - * Make VCC report when symbols require a different syntax. - * Give VMODs a wildcard toplevel symbol, and populate symbols - on demand. + * Added support for Unix Domain Sockets, both for clients and + for backend servers. This brings a new level of the VCL + language, version 4.1. * Always use HTTP/1.1 on backend connections for pass fetch. ------------------------------------------------------------------- From b54459f5c75efa2c652e4947bb1d2dea78a7b58f74b53ec9643dceac68d749d8 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 2 May 2018 06:47:54 +0000 Subject: [PATCH 3/7] - Put %fillup back into %post OBS-URL: https://build.opensuse.org/package/show/server:http/varnish?expand=0&rev=86 --- varnish.changes | 5 +++++ varnish.service | 2 +- varnish.spec | 7 ++++--- varnishlog.service | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/varnish.changes b/varnish.changes index b75c277..241d05f 100644 --- a/varnish.changes +++ b/varnish.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 2 06:47:32 UTC 2018 - jengelh@inai.de + +- Put %fillup back into %post + ------------------------------------------------------------------- Mon Mar 19 22:22:35 UTC 2018 - jengelh@inai.de diff --git a/varnish.service b/varnish.service index 29df45e..8a4938a 100644 --- a/varnish.service +++ b/varnish.service @@ -5,7 +5,7 @@ After=network.target [Service] EnvironmentFile=/etc/sysconfig/varnish PIDFile=/var/run/varnishd.pid -ExecStart=/usr/sbin/varnishd $VARNISHD_PARAMS -P /var/run/varnishd.pid -F +ExecStart=/usr/sbin/varnishd -P /var/run/varnishd.pid -F $VARNISHD_PARAMS [Install] WantedBy=multi-user.target diff --git a/varnish.spec b/varnish.spec index f15596f..8f54e8c 100644 --- a/varnish.spec +++ b/varnish.spec @@ -120,7 +120,7 @@ install -dm 0755 "$b"/{%pkg_logdir,%pkg_home} install -Dpm 0644 "%{S:5}" "$b/%_sysconfdir/logrotate.d/varnish" # ##init scripts -install -Dpm 0644 "%{S:3}" "$b%{_fillupdir}/sysconfig.%name" +install -Dpm 0644 "%{S:3}" "$b/%_fillupdir/sysconfig.%name" install -Dpm 0644 "%{S:7}" "$b/%_unitdir/varnish.service" install -Dpm 0644 "%{S:8}" "$b/%_unitdir/varnishlog.service" mkdir -p "$b/%_sbindir" @@ -155,6 +155,7 @@ fi %service_add_pre varnish.service varnishlog.service %post +%fillup_only %service_add_post varnish.service varnishlog.service %preun @@ -181,7 +182,7 @@ fi %dir %attr(0750,varnish,varnish) %pkg_home %dir %attr(0750,varnish,varnish) %pkg_cachedir %dir %attr(0750,varnish,varnish) %pkg_logdir -%{_fillupdir}/sysconfig.%name +%_fillupdir/sysconfig.%name %files -n %library_name %defattr(-,root,root,-) @@ -189,7 +190,7 @@ fi %files devel %defattr(-,root,root,-) -%_includedir/varnish +%_includedir/varnish/ %_datadir/aclocal/ %_libdir/pkgconfig/* %_libdir/libvarnishapi.so diff --git a/varnishlog.service b/varnishlog.service index 6eb94f7..e7b236b 100644 --- a/varnishlog.service +++ b/varnishlog.service @@ -6,7 +6,7 @@ Requires=varnish.service [Service] EnvironmentFile=/etc/sysconfig/varnish PIDFile=/var/run/varnishlog.pid -ExecStart=/usr/sbin/varnishncsa $VARNISHLOG_PARAMS -P /var/run/varnishlog.pid +ExecStart=/usr/sbin/varnishncsa -P /var/run/varnishlog.pid $VARNISHLOG_PARAMS [Install] WantedBy=multi-user.target From 8001f775288f8bd2dde6d563f44fa2e7f669ff8bfc970c9dcc9e936928967e6f Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 2 May 2018 06:52:56 +0000 Subject: [PATCH 4/7] OBS-URL: https://build.opensuse.org/package/show/server:http/varnish?expand=0&rev=87 --- varnish.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/varnish.spec b/varnish.spec index 8f54e8c..4c20a0c 100644 --- a/varnish.spec +++ b/varnish.spec @@ -17,8 +17,8 @@ #Compat macro for new _fillupdir macro introduced in Nov 2017 -%if ! %{defined _fillupdir} -% define _fillupdir /var/adm/fillup-templates +%if 0%{!?_fillupdir} +% define _fillupdir /var/adm/fillup-templates %endif %define library_name libvarnishapi1 From 1e883b5ba4bfc80d9bf7d01c2cce1e077cc59b23712aea7f91834625ab934976 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 2 May 2018 07:01:46 +0000 Subject: [PATCH 5/7] OBS-URL: https://build.opensuse.org/package/show/server:http/varnish?expand=0&rev=88 --- varnish.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish.spec b/varnish.spec index 4c20a0c..4587351 100644 --- a/varnish.spec +++ b/varnish.spec @@ -17,7 +17,7 @@ #Compat macro for new _fillupdir macro introduced in Nov 2017 -%if 0%{!?_fillupdir} +%if !0%{?_fillupdir:1} % define _fillupdir /var/adm/fillup-templates %endif From 7a114d32f47c004a1ec8c91767aaa964dc414e943db496062575d8a7d2478f2a Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 2 May 2018 07:11:22 +0000 Subject: [PATCH 6/7] OBS-URL: https://build.opensuse.org/package/show/server:http/varnish?expand=0&rev=89 --- varnish.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish.spec b/varnish.spec index 4587351..46548c9 100644 --- a/varnish.spec +++ b/varnish.spec @@ -18,7 +18,7 @@ #Compat macro for new _fillupdir macro introduced in Nov 2017 %if !0%{?_fillupdir:1} -% define _fillupdir /var/adm/fillup-templates +%define _fillupdir /var/adm/fillup-templates %endif %define library_name libvarnishapi1 From 86028201c9e36d5575ccb1e70464708191c026f07eb8c73e202c18449c53aea8 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 2 May 2018 07:17:36 +0000 Subject: [PATCH 7/7] OBS-URL: https://build.opensuse.org/package/show/server:http/varnish?expand=0&rev=90 --- varnish.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish.spec b/varnish.spec index 46548c9..6a07a57 100644 --- a/varnish.spec +++ b/varnish.spec @@ -51,7 +51,7 @@ BuildRequires: systemd-rpm-macros BuildRequires: xz Requires: c_compiler BuildRoot: %_tmppath/%name-%version-build -Prereq(post): %_sbindir/useradd %_sbindir/groupadd +Requires(pre): %_sbindir/useradd %_sbindir/groupadd %if 0%{?suse_version} >= 1010 Recommends: logrotate %endif