From 7fd8871b3e8c221ec1be8b04f41ef09fd46974aa Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 3 Nov 2020 06:44:50 -0500 Subject: [PATCH] import qclib-2.1.0-1.el8 --- .gitignore | 2 +- .qclib.metadata | 2 +- SOURCES/qclib-1.3.1-ldflags.patch | 20 ---------- SOURCES/qclib-2.0.1-z15-t02.patch | 11 ------ ...-docdir.patch => qclib-2.1.0-docdir.patch} | 31 ++++++++++++---- SOURCES/qclib-2.1.0-ldflags.patch | 37 +++++++++++++++++++ SPECS/qclib.spec | 16 ++++---- 7 files changed, 70 insertions(+), 49 deletions(-) delete mode 100644 SOURCES/qclib-1.3.1-ldflags.patch delete mode 100644 SOURCES/qclib-2.0.1-z15-t02.patch rename SOURCES/{qclib-2.0.0-docdir.patch => qclib-2.1.0-docdir.patch} (65%) create mode 100644 SOURCES/qclib-2.1.0-ldflags.patch diff --git a/.gitignore b/.gitignore index e34c40e..4df4832 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/qclib-2.0.1.tgz +SOURCES/qclib-2.1.0.tgz diff --git a/.qclib.metadata b/.qclib.metadata index fbd5a6e..22c577e 100644 --- a/.qclib.metadata +++ b/.qclib.metadata @@ -1 +1 @@ -fba3cf3becbf609d08bc5245412fe875c626e826 SOURCES/qclib-2.0.1.tgz +143b479d1978eddcad14923b7f6de69ecfc90048 SOURCES/qclib-2.1.0.tgz diff --git a/SOURCES/qclib-1.3.1-ldflags.patch b/SOURCES/qclib-1.3.1-ldflags.patch deleted file mode 100644 index a47fd79..0000000 --- a/SOURCES/qclib-1.3.1-ldflags.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff -up qclib-1.3.1/Makefile.ldflags qclib-1.3.1/Makefile ---- qclib-1.3.1/Makefile.ldflags 2018-03-12 10:36:52.428425169 +0100 -+++ qclib-1.3.1/Makefile 2018-03-12 10:37:27.328425169 +0100 -@@ -8,6 +8,7 @@ VERSION = 1.3.1 - VERM = $(shell echo $(VERSION) | cut -d '.' -f 1) - DOCDIR ?= /usr/share/doc/packages/ - CFLAGS ?= -g -Wall -O2 -+LDFLAGS ?= - CFILES = query_capacity.c query_capacity_data.c query_capacity_sysinfo.c query_capacity_ocf.c \ - query_capacity_hypfs.c query_capacity_sthyi.c - OBJECTS = $(patsubst %.c,%.o,$(CFILES)) -@@ -38,7 +39,7 @@ libqc.a: $(OBJECTS) - $(AR) rcs $@ $^ - - libqc.so.$(VERSION): $(OBJECTS) -- $(LINK) -Wl,-soname,libqc.so.$(VERM) -shared $^ -o $@ -+ $(LINK) $(LDFLAGS) -Wl,-soname,libqc.so.$(VERM) -shared $^ -o $@ - -rm libqc.so.$(VERM) 2>/dev/null - ln -s libqc.so.$(VERSION) libqc.so.$(VERM) - diff --git a/SOURCES/qclib-2.0.1-z15-t02.patch b/SOURCES/qclib-2.0.1-z15-t02.patch deleted file mode 100644 index 89d6d52..0000000 --- a/SOURCES/qclib-2.0.1-z15-t02.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -up qclib-2.0.1/query_capacity.c.orig qclib-2.0.1/query_capacity.c ---- qclib-2.0.1/query_capacity.c.orig 2020-05-14 12:19:06.002068645 +0200 -+++ qclib-2.0.1/query_capacity.c 2020-05-14 12:19:22.949968994 +0200 -@@ -520,6 +520,7 @@ static struct qc_mtype mtypes[] = { - {3907, "IBM z14 ZR1", "IBM LinuxONE Rockhopper II"}, - {3906, "IBM z14", "IBM LinuxONE Emperor II"}, - {8561, "IBM z15", "IBM LinuxONE III"}, -+ {8562, "IBM z15 Model T02", "IBM LinuxONE III Model LT2"}, - {0, NULL, NULL} - }; - diff --git a/SOURCES/qclib-2.0.0-docdir.patch b/SOURCES/qclib-2.1.0-docdir.patch similarity index 65% rename from SOURCES/qclib-2.0.0-docdir.patch rename to SOURCES/qclib-2.1.0-docdir.patch index b0fee96..75ef486 100644 --- a/SOURCES/qclib-2.0.0-docdir.patch +++ b/SOURCES/qclib-2.1.0-docdir.patch @@ -1,15 +1,29 @@ -diff -up qclib-1.3.1/Makefile.docdir qclib-1.3.1/Makefile ---- qclib-1.3.1/Makefile.docdir 2017-10-24 07:02:42.000000000 +0200 -+++ qclib-1.3.1/Makefile 2017-12-04 14:15:08.000000000 +0100 +From f9f4404f0ee2f788d7ff195a50322a5480d72fed Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Dan=20Hor=C3=A1k?= +Date: Wed, 22 Apr 2020 09:51:22 +0200 +Subject: [PATCH 1/2] introduce DOCDIR + +With a DOCDIR variable in the Makefile the distributions can set the docs +location to their preferred place. + +Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1306280 +--- + Makefile | 15 ++++++++------- + 1 file changed, 8 insertions(+), 7 deletions(-) + +diff --git a/Makefile b/Makefile +index 9f48fcb..700783a 100644 +--- a/Makefile ++++ b/Makefile @@ -6,6 +6,7 @@ # bugfix: Bugfixes only - VERSION = 2.0.1 + VERSION = 2.1.0 VERM = $(shell echo $(VERSION) | cut -d '.' -f 1) +DOCDIR ?= /usr/share/doc/packages/ CFLAGS ?= -g -Wall -O2 - CFILES = query_capacity.c query_capacity_data.c query_capacity_sysinfo.c query_capacity_ocf.c \ - query_capacity_hypfs.c query_capacity_sthyi.c -@@ -69,16 +70,16 @@ install: libqc.a libqc.so.$(VERSION) + CFILES = query_capacity.c query_capacity_data.c query_capacity_sysinfo.c \ + query_capacity_sysfs.c query_capacity_hypfs.c query_capacity_sthyi.c +@@ -72,16 +73,16 @@ install: libqc.a libqc.so.$(VERSION) ln -sr $(DESTDIR)/usr/lib64/libqc.so.$(VERSION) $(DESTDIR)/usr/lib64/libqc.so.$(VERM) ln -sr $(DESTDIR)/usr/lib64/libqc.so.$(VERSION) $(DESTDIR)/usr/lib64/libqc.so install -Dm 644 query_capacity.h $(DESTDIR)/usr/include/query_capacity.h @@ -33,3 +47,6 @@ diff -up qclib-1.3.1/Makefile.docdir qclib-1.3.1/Makefile clean: echo " CLEAN" +-- +2.21.1 + diff --git a/SOURCES/qclib-2.1.0-ldflags.patch b/SOURCES/qclib-2.1.0-ldflags.patch new file mode 100644 index 0000000..2eb488a --- /dev/null +++ b/SOURCES/qclib-2.1.0-ldflags.patch @@ -0,0 +1,37 @@ +From 58e01a3e2f0c7f84a9942e34ef31ef17182e243f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Dan=20Hor=C3=A1k?= +Date: Wed, 22 Apr 2020 09:53:52 +0200 +Subject: [PATCH 2/2] introduce LDFLAGS + +With an LDFLAGS variable distributions can pass their system-wide linker +options to the build. + +Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1552658 +--- + Makefile | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 700783a..4495356 100644 +--- a/Makefile ++++ b/Makefile +@@ -8,6 +8,7 @@ VERSION = 2.1.0 + VERM = $(shell echo $(VERSION) | cut -d '.' -f 1) + DOCDIR ?= /usr/share/doc/packages/ + CFLAGS ?= -g -Wall -O2 ++LDFLAGS ?= + CFILES = query_capacity.c query_capacity_data.c query_capacity_sysinfo.c \ + query_capacity_sysfs.c query_capacity_hypfs.c query_capacity_sthyi.c + OBJECTS = $(patsubst %.c,%.o,$(CFILES)) +@@ -41,7 +42,7 @@ libqc.a: $(OBJECTS) + $(AR) rcs $@ $^ + + libqc.so.$(VERSION): $(OBJECTS) +- $(LINK) -Wl,-soname,libqc.so.$(VERM) -shared $^ -o $@ ++ $(LINK) $(LDFLAGS) -Wl,-soname,libqc.so.$(VERM) -shared $^ -o $@ + -rm libqc.so.$(VERM) 2>/dev/null + ln -s libqc.so.$(VERSION) libqc.so.$(VERM) + +-- +2.21.1 + diff --git a/SPECS/qclib.spec b/SPECS/qclib.spec index 62f56b9..778484c 100644 --- a/SPECS/qclib.spec +++ b/SPECS/qclib.spec @@ -1,16 +1,14 @@ Name: qclib -Version: 2.0.1 -Release: 1%{?dist}.1 +Version: 2.1.0 +Release: 1%{?dist} Summary: Library for extraction of system information for Linux on z Systems License: BSD URL: http://www.ibm.com/developerworks/linux/linux390/qclib.html Source0: http://public.dhe.ibm.com/software/dw/linux390/ht_src/%{name}-%{version}.tgz # https://bugzilla.redhat.com/show_bug.cgi?id=1306280 -Patch0: %{name}-2.0.0-docdir.patch +Patch0: %{name}-2.1.0-docdir.patch # https://bugzilla.redhat.com/show_bug.cgi?id=1552658 -Patch1: %{name}-1.3.1-ldflags.patch -# https://bugzilla.redhat.com/show_bug.cgi?id=1834712 -Patch2: %{name}-2.0.1-z15-t02.patch +Patch1: %{name}-2.1.0-ldflags.patch ExclusiveArch: s390 s390x BuildRequires: gcc BuildRequires: glibc-static @@ -82,9 +80,9 @@ make test-sh test %changelog -* Thu May 14 2020 Dan Horák - 2.0.1-1.1 -- Add support for new z15 (#1834712) -- Resolves: #1834712 +* Wed Apr 22 2020 Dan Horák - 2.1.0-1 +- updated to 2.1.0 (#1780305) +- Resolves: #1780305 * Mon Jan 13 2020 Dan Horák - 2.0.1-1 - updated to 2.0.1 (#1790369)