openscap-1.2.6-1
This commit is contained in:
parent
43f5dd6abc
commit
68d1bdee98
1
.gitignore
vendored
1
.gitignore
vendored
@ -48,3 +48,4 @@ openscap-0.6.0.tar.gz
|
|||||||
/openscap-1.2.3.tar.gz
|
/openscap-1.2.3.tar.gz
|
||||||
/openscap-1.2.4.tar.gz
|
/openscap-1.2.4.tar.gz
|
||||||
/openscap-1.2.5.tar.gz
|
/openscap-1.2.5.tar.gz
|
||||||
|
/openscap-1.2.6.tar.gz
|
||||||
|
@ -1,12 +1,20 @@
|
|||||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||||
|
|
||||||
|
%if 0%{?fedora} <= 22 || (0%{?rhel} != 0 && 0%{?rhel} <= 7)
|
||||||
|
%global oscapdocker_pypkg python
|
||||||
|
%global oscapdocker_pysitelib %{python_sitelib}
|
||||||
|
%else
|
||||||
|
%global oscapdocker_pypkg python3
|
||||||
|
%global oscapdocker_pysitelib %{python3_sitelib}
|
||||||
|
%endif
|
||||||
|
|
||||||
%define relabel_files() \
|
%define relabel_files() \
|
||||||
restorecon -R /usr/bin/oscap /usr/libexec/openscap; \
|
restorecon -R /usr/bin/oscap /usr/libexec/openscap; \
|
||||||
|
|
||||||
Name: openscap
|
Name: openscap
|
||||||
Version: 1.2.5
|
Version: 1.2.6
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Set of open source libraries enabling integration of the SCAP line of standards
|
Summary: Set of open source libraries enabling integration of the SCAP line of standards
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
@ -97,6 +105,7 @@ Group: Applications/System
|
|||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
Requires: rpmdevtools rpm-build
|
Requires: rpmdevtools rpm-build
|
||||||
Requires: %{name}-scanner%{?_isa} = %{version}-%{release}
|
Requires: %{name}-scanner%{?_isa} = %{version}-%{release}
|
||||||
|
Requires: %{name}-containers = %{version}-%{release}
|
||||||
|
|
||||||
%description utils
|
%description utils
|
||||||
The %{name}-utils package contains command-line tools build on top
|
The %{name}-utils package contains command-line tools build on top
|
||||||
@ -156,6 +165,16 @@ Requires: pkgconfig
|
|||||||
The %{name}-engine-sce-devel package contains libraries and header files
|
The %{name}-engine-sce-devel package contains libraries and header files
|
||||||
for developing applications that use %{name}-engine-sce.
|
for developing applications that use %{name}-engine-sce.
|
||||||
|
|
||||||
|
%package containers
|
||||||
|
Summary: Utils for scanning containers
|
||||||
|
Group: Applications/System
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Requires: %{name}-scanner atomic
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description containers
|
||||||
|
Tool for scanning Atomic containers.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
@ -169,7 +188,7 @@ export CFLAGS="$RPM_OPT_FLAGS -fpie"
|
|||||||
export LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now"
|
export LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%configure --enable-sce --enable-perl --enable-python3
|
%configure --enable-sce --enable-perl --enable-python3 preferred_python=%{oscapdocker_pypkg}
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
# Remove shebang from bash-completion script
|
# Remove shebang from bash-completion script
|
||||||
@ -287,8 +306,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%doc docs/oscap-scan.cron
|
%doc docs/oscap-scan.cron
|
||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
%exclude %{_mandir}/man8/oscap.8.gz
|
%exclude %{_mandir}/man8/oscap.8.gz
|
||||||
|
%exclude %{_mandir}/man8/oscap-docker.8.gz
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%exclude %{_bindir}/oscap
|
%exclude %{_bindir}/oscap
|
||||||
|
%exclude %{_bindir}/oscap-docker
|
||||||
|
|
||||||
%files content-sectool
|
%files content-sectool
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -305,7 +326,16 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%files engine-sce
|
%files engine-sce
|
||||||
%{_libdir}/libopenscap_sce.so.*
|
%{_libdir}/libopenscap_sce.so.*
|
||||||
|
|
||||||
|
%files containers
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_bindir}/oscap-docker
|
||||||
|
%{_mandir}/man8/oscap-docker.8.gz
|
||||||
|
%{oscapdocker_pysitelib}/oscap_docker_python/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Oct 05 2015 Zbyněk Moravec <zmoravec@redhat.com> - 1.2.6-1
|
||||||
|
- upgrade to the latest upstream release
|
||||||
|
|
||||||
* Wed Jul 29 2015 Martin Preisler <mpreisle@redhat.com> - 1.2.5-2
|
* Wed Jul 29 2015 Martin Preisler <mpreisle@redhat.com> - 1.2.5-2
|
||||||
- rebuilt because of librpm and librpmio ABI break
|
- rebuilt because of librpm and librpmio ABI break
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user