Changes of Revision 7
[-] | Changed | nagios-plugins-printer.spec |
x 1
2 Source: %realname.tar.bz2 3 Patch1: nagios-plugins-printer-config.patch 4 Patch2: nagios-plugins-printer-destdir.patch 5 +Patch3: nagios-plugins-printer-librarypath.patch 6 Requires: nagios-plugins 7 # for the directory ownership: 8 BuildRequires: nagios-plugins 9
10 %setup -q -n %realname 11 %patch1 -p0 12 %patch2 -p0 13 +%patch3 -p0 14 15 %build 16 make %{?jobs:-j%jobs} 17 |
||
[+] | Added | nagios-plugins-printer-librarypath.patch ^ |
@@ -0,0 +1,11 @@ +--- plugins/Makefile.orig 2019-10-04 09:47:54.363686386 +0200 ++++ plugins/Makefile 2019-10-04 09:48:16.703686067 +0200 +@@ -1,7 +1,7 @@ + all: libs + if gcc -Wall -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I../lib -I../intl -I/include -g -O2 -MT check_printer.o -MD -MP -MF ".deps/check_printer.Tpo" -c -o check_printer.o check_printer.c; \ + then mv -f ".deps/check_printer.Tpo" ".deps/check_printer.Po"; else rm -f ".deps/check_printer.Tpo"; exit 1; fi +- gcc -g -O2 -L. -o check_printer check_printer.o netutils.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a -lnsl -lresolv popen.o -I/usr/include ++ gcc -g -O2 -L. -L/usr/lib64 -L/usr/lib -o check_printer check_printer.o netutils.o utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a -lnsl -lresolv popen.o -I/usr/include + + libs: + if gcc -Wall -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I../lib -I../intl -I/include -g -O2 -MT netutils.o -MD -MP -MF ".deps/netutils.Tpo" -c -o netutils.o netutils.c; \ |