From 12d4ae4a0518078930b44f258bc1ce8ed207ca99 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 5 Oct 2008 11:30:19 +0000 Subject: [PATCH] - BR glib2-devel - provided makefile is pointless, compile here and add glib includepath - however build fails with nagios3 Changed files: cacti-plugin-npc.spec -> 1.17 --- cacti-plugin-npc.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cacti-plugin-npc.spec b/cacti-plugin-npc.spec index 2469d90..d1b1711 100644 --- a/cacti-plugin-npc.spec +++ b/cacti-plugin-npc.spec @@ -17,6 +17,7 @@ Patch0: %{name}-path_headers.patch # from http://forums.cacti.net/about10327-0-asc-135.html Patch1: %{name}-extinfo.patch URL: http://forums.cacti.net/about10327.html +BuildRequires: glib2-devel BuildRequires: mysql-devel >= 4.1.0 BuildRequires: nagios-devel >= 2.1 BuildRequires: rpm-perlprov @@ -41,7 +42,8 @@ zintegrowany z Cacti. %patch1 -p1 %build -%{__make} -C neb +cd neb +%{__cc} %{rpmcflags} -Wall -o inserter.o inserter.c -shared -I../include $(pkg-config glib-2.0 --cflags) $(mysql_config --cflags --libs) -fPIC %install rm -rf $RPM_BUILD_ROOT -- 2.43.0