qclib/qclib.makefile.libdir.patch
Mark Post a7e4abd4e6 Accepting request 835596 from home:markkp:branches:hardware
- Upgraded to version 2.2.0 (jsc#SLE-14064)
  Changes:
  - Add new tools zname and zhypinfo
  Bug fixes:
  - KVM hosts in mixed mode LPARs indicated both, CPs and IFLs, while only
    CPs are actually used
- Updated qclib.makefile.libdir.patch to apply against the current
  version, and to make sure the two new man pages go to the right
  directory.
- Added qclib.fix.missing.makefile.if.statement.patch to correct a
  problem in the Makefile.
- Changed spec file from "make" to "%make_build" per spec-cleaner.
- Updated the URL in the spec file to point to current location of
  the package.

OBS-URL: https://build.opensuse.org/request/show/835596
OBS-URL: https://build.opensuse.org/package/show/hardware/qclib?expand=0&rev=28
2020-09-19 17:03:21 +00:00

32 lines
1.5 KiB
Diff

--- qclib-2.2.0/Makefile 2015-10-26 07:46:09.000000000 +0100
+++ qclib-2.2.0/Makefile 2015-10-26 07:50:21.000000000 +0100
@@ -13,6 +13,7 @@
OBJECTS = $(patsubst %.c,%.o,$(CFILES))
.SUFFIXES: .o .c
DOCDIR ?= /usr/share/doc/packages/
+MANDIR ?= $(INSTALLDIR)/usr/share/man
ifneq ("${V}","1")
MAKEFLAGS += --quiet
@@ -76,14 +77,14 @@
install: libqc.a libqc.so.$(VERSION)
echo " INSTALL"
- install -Dm 644 libqc.a $(DESTDIR)/usr/lib64/libqc.a
- install -Dm 755 libqc.so.$(VERSION) $(DESTDIR)/usr/lib64/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 libqc.a $(DESTDIR)/usr/$(LIBDIR)/libqc.a
+ install -Dm 755 libqc.so.$(VERSION) $(DESTDIR)/usr/$(LIBDIR)/libqc.so.$(VERSION)
+ ln -sr $(DESTDIR)/usr/$(LIBDIR)/libqc.so.$(VERSION) $(DESTDIR)/usr/$(LIBDIR)/libqc.so.$(VERM)
+ ln -sr $(DESTDIR)/usr/$(LIBDIR)/libqc.so.$(VERSION) $(DESTDIR)/usr/$(LIBDIR)/libqc.so
install -Dm 755 zname $(DESTDIR)/usr/bin/zname
install -Dm 755 zhypinfo $(DESTDIR)/usr/bin/zhypinfo
- install -Dm 644 zname.8 $(DESTDIR)/usr/share/man8/zname.8
- install -Dm 644 zhypinfo.8 $(DESTDIR)/usr/share/man8/zhypinfo.8
+ install -Dm 644 zname.8 $(DESTDIR)$(MANDIR)/man8/zname.8
+ install -Dm 644 zhypinfo.8 $(DESTDIR)$(MANDIR)/man8/zhypinfo.8
install -Dm 644 query_capacity.h $(DESTDIR)/usr/include/query_capacity.h
install -Dm 644 README $(DESTDIR)/$(DOCDIR)/qclib/README
install -Dm 644 LICENSE $(DESTDIR)/$(DOCDIR)/qclib/LICENSE