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 Name: openscap
Version: 1.3.3 Version: 1.3.3
Release: 3%{?dist} Release: 4%{?dist}
Epoch: 1 Epoch: 1
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
License: LGPLv2+ License: LGPLv2+
@ -120,12 +120,10 @@ Tool for scanning Atomic containers.
%prep %prep
%autosetup -p1 %autosetup -p1
mkdir build
%build %build
cd build
%cmake -DENABLE_DOCS=ON .. %cmake -DENABLE_DOCS=ON ..
make %{?_smp_mflags} %cmake_build
make docs make docs
%check %check
@ -134,8 +132,7 @@ ctest -V %{?_smp_mflags}
%endif %endif
%install %install
cd build %cmake_install
%make_install
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' 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* %{_mandir}/man8/oscap-podman.8*
%changelog %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 * Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1:1.3.3-3
- Rebuilt for Python 3.9 - Rebuilt for Python 3.9