Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
b1ec9a4ead
!14 openscap升级至1.3.6版本
From: @lyn1001 
Reviewed-by: @licihua 
Signed-off-by: @licihua
2022-10-24 09:04:12 +00:00
lyn1001
6436b3f058 update to 1.3.6 2022-10-24 15:59:31 +08:00
openeuler-ci-bot
5cfc4a669a
!12 openscap升级至1.3.5
Merge pull request !12 from 吴磊磊/openEuler-22.03-LTS-Next
2022-01-15 08:37:39 +00:00
wu-leilei
4ac4aead0f package update 2022-01-14 15:48:26 +08:00
openeuler-ci-bot
054c5fce2e !10 del rpath for some binaries and bin
From: @chen-jan
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-09-14 01:33:32 +00:00
chen-jan
72b6674c48 del rpath for some binaries and bin 2021-09-14 01:17:44 +00:00
openeuler-ci-bot
dc66fabe5d !6 update openscap version from 1.3.2 to 1.3.3
Merge pull request !6 from 吴超超/master
2020-08-03 14:26:57 +08:00
吴超超
f9d4f8361d 删除文件 Fix-scap_workbench-builderror.patch 2020-07-27 17:55:31 +08:00
吴超超
ce962fcdb9 删除文件 1.3.2.tar.gz 2020-07-27 17:55:27 +08:00
19909236985
baa3c2b513 update package 2020-07-27 17:54:34 +08:00
3 changed files with 29 additions and 32 deletions

Binary file not shown.

View File

@ -1,29 +0,0 @@
diff -Nur openscap-1.3.2_old/src/OVAL/oval_variable.c openscap-1.3.2/src/OVAL/oval_variable.c
--- openscap-1.3.2_old/src/OVAL/oval_variable.c 2020-03-11 04:30:50.534661136 -0400
+++ openscap-1.3.2/src/OVAL/oval_variable.c 2020-03-11 04:32:05.787195584 -0400
@@ -156,11 +156,11 @@
return oval_collection_iterator_remaining((struct oval_iterator*)iter);
}
-struct oval_variable_possible_restriction *oval_variable_possible_restriction_new(oval_operator_t operator, const char *hint)
+struct oval_variable_possible_restriction *oval_variable_possible_restriction_new(oval_operator_t opera, const char *hint)
{
struct oval_variable_possible_restriction *pr;
pr = malloc(sizeof(oval_variable_possible_restriction_t));
- pr->operator = operator;
+ pr->operator = opera;
pr->hint = oscap_strdup(hint);
pr->restrictions = oval_collection_new();
return pr;
diff -Nur openscap-1.3.2_old/src/OVAL/public/oval_definitions.h openscap-1.3.2/src/OVAL/public/oval_definitions.h
--- openscap-1.3.2_old/src/OVAL/public/oval_definitions.h 2020-03-11 04:30:50.546661222 -0400
+++ openscap-1.3.2/src/OVAL/public/oval_definitions.h 2020-03-11 04:31:30.354943942 -0400
@@ -1669,7 +1669,7 @@
* @param hint A short description of what the value means or represents.
* @memberof oval_variable_possible_restriction
*/
-OSCAP_API struct oval_variable_possible_restriction *oval_variable_possible_restriction_new(oval_operator_t operator, const char *hint);
+OSCAP_API struct oval_variable_possible_restriction *oval_variable_possible_restriction_new(oval_operator_t opera, const char *hint);
/**

View File

@ -1,14 +1,14 @@
Name: openscap
Version: 1.3.2
Release: 5
Version: 1.3.6
Release: 1
Summary: An open source framework in order to provide a interface for using scap
License: LGPLv2+
URL: http://www.open-scap.org
Source0: https://github.com/OpenSCAP/openscap/archive/%{version}.tar.gz
Patch9000: Fix-scap_workbench-builderror.patch
BuildRequires: cmake >= 2.6 gcc gcc-c++ swig libxml2-devel libxslt-devel perl-generators perl-XML-Parser
BuildRequires: rpm-devel libgcrypt-devel pcre-devel libacl-devel libselinux-devel libcap-devel libblkid-devel
BuildRequires: bzip2-devel asciidoc openldap-devel GConf2-devel dbus-devel chrpath libcurl-devel >= 7.12.0
BuildRequires: make glib2-devel libyaml-devel xmlsec1-devel xmlsec1-openssl-devel
%if %{?_with_check:1}%{!?_with_check:0}
BuildRequires: perl-XML-XPath bzip2
@ -86,6 +86,17 @@ cd build
pathfix.py -i %{__python3} -p -n $RPM_BUILD_ROOT%{_bindir}/scap-as-rpm
cd $RPM_BUILD_ROOT/usr
file `find -type f`| grep -w ELF | awk -F":" '{print $1}' | for i in `xargs`
do
chrpath -d $i
done
cd -
mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d
echo "%{_bindir}/%{name}" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf
echo "%{_libdir}/%{name}" >> $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf
%clean
rm -rf $RPM_BUILD_ROOT
@ -105,6 +116,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/openscap/cpe/*
%{_sysconfdir}/bash_completion.d
%{_libexecdir}/oscap-remediate
%{_unitdir}/oscap-remediate.service
%config(noreplace) /etc/ld.so.conf.d/*
%files devel
%{_libdir}/libopenscap.so
@ -128,6 +142,18 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man8/*
%changelog
* Tue May 17 2022 wulei <wulei80@h-partners.com> - 1.3.6-1
- Update package
* Fri Jan 14 2022 wulei <wulei80@huawei.com> - 1.3.5-1
- Package update
* Mon Sep 13 2021 chenchen <chen_aka_jan@163.com> - 1.3.3-2
- del rpath for some binaries and bin
* Mon Jul 27 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.3.3-1
- update package
* Wed Mar 11 2020 Senlin Xia <xiasenlin1@huawei.com> 1.3.2-5
- Fix scap-workbench compilation failure: declaration of 'operator' as parameter in oval_definitions.h