diff --git a/openscap-fixasneeded.patch b/openscap-fixasneeded.patch new file mode 100644 index 0000000..f4ab68b --- /dev/null +++ b/openscap-fixasneeded.patch @@ -0,0 +1,34 @@ +Index: src/OVAL/probes/Makefile.am +=================================================================== +--- src/OVAL/probes.orig/Makefile.am ++++ src/OVAL/probes/Makefile.am +@@ -25,17 +25,17 @@ probe_family_LDFLAGS= + pkglibexec_PROGRAMS += probe_system_info + probe_system_info_SOURCES= independent/system_info.c + probe_system_info_CFLAGS= @libnl_cflags@ +-probe_system_info_LDFLAGS= @libnl_libs@ ++probe_system_info_LDADD= @libnl_libs@ + + pkglibexec_PROGRAMS += probe_textfilecontent54 + probe_textfilecontent54_SOURCES= independent/textfilecontent54.c + probe_textfilecontent54_CFLAGS= @pcre_cflags@ +-probe_textfilecontent54_LDFLAGS= @pcre_libs@ ++probe_textfilecontent54_LDADD= @pcre_libs@ + + pkglibexec_PROGRAMS += probe_xmlfilecontent + probe_xmlfilecontent_SOURCES= independent/xmlfilecontent.c + probe_xmlfilecontent_CFLAGS= @libxml_cflags@ +-probe_xmlfilecontent_LDFLAGS= @libxml_libs@ ++probe_xmlfilecontent_LDADD= @libxml_libs@ + endif + + if WANT_PROBES_UNIX +@@ -54,7 +54,7 @@ if ENABLE_PROBE_RPMINFO + pkglibexec_PROGRAMS += probe_rpminfo + probe_rpminfo_SOURCES= unix/linux/rpminfo.c + probe_rpminfo_CFLAGS= @rpm_cflags@ +-probe_rpminfo_LDFLAGS= @rpm_libs@ ++probe_rpminfo_LDADD= @rpm_libs@ + + endif + endif diff --git a/openscap.spec b/openscap.spec index 68e59ed..3c71df4 100644 --- a/openscap.spec +++ b/openscap.spec @@ -26,6 +26,7 @@ Summary: A Friendly Greeting Program Version: 0.5.5 Release: 1 Source0: http://www.open-scap.org/download/%name-%version.tar.bz2 +Patch0: %name-fixasneeded.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -40,6 +41,7 @@ More information about SCAP can be found at nvd.nist.gov. %prep %setup -q +%patch0 -p0 %build %configure