Update spec file to use new cmake macros

https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds
This commit is contained in:
Tom Stellard 2020-07-14 02:21:58 +00:00
parent ff78dd8fef
commit 4067972f58

View File

@ -1,6 +1,6 @@
Name: openscap
Version: 1.3.3
Release: 3%{?dist}
Release: 4%{?dist}
Epoch: 1
Summary: Set of open source libraries enabling integration of the SCAP line of standards
License: LGPLv2+
@ -120,12 +120,10 @@ Tool for scanning Atomic containers.
%prep
%autosetup -p1
mkdir build
%build
cd build
%cmake -DENABLE_DOCS=ON ..
make %{?_smp_mflags}
%cmake_build
make docs
%check
@ -134,8 +132,7 @@ ctest -V %{?_smp_mflags}
%endif
%install
cd build
%make_install
%cmake_install
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
@ -198,6 +195,10 @@ pathfix.py -i %{__python3} -p -n $RPM_BUILD_ROOT%{_bindir}/scap-as-rpm
%{_mandir}/man8/oscap-podman.8*
%changelog
* Tue Jul 14 2020 Tom Stellard <tstellar@redhat.com> - 1:1.3.3-4
- Update spec file to use new cmake macros
- https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1:1.3.3-3
- Rebuilt for Python 3.9