From 2cbf1b3e050a6bd9427944a7cd8b622f57018555 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Thu, 30 Jul 2020 15:52:51 -0500 Subject: [PATCH] adjust for new %cmake macros (#1859850) --- openbabel.spec | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/openbabel.spec b/openbabel.spec index a95657f..04d1b5c 100644 --- a/openbabel.spec +++ b/openbabel.spec @@ -6,9 +6,11 @@ # we don't want to provide private Perl or Python extension libs %global __provides_exclude_from ^(%{perl_vendorarch}/auto|%{python3_sitearch})/.*\\.so$ +%global __cmake_in_source_build 1 + Name: openbabel Version: 2.4.1 -Release: 31%{?dist} +Release: 32%{?dist} Summary: Chemistry software file format converter License: GPLv2 URL: https://openbabel.org/ @@ -180,12 +182,12 @@ popd -DENABLE_VERSIONED_FORMATS=false \ -DRUN_SWIG=true \ -DENABLE_TESTS:BOOL=ON \ - -DOPTIMIZE_NATIVE=OFF \ - . -make VERBOSE=1 %{?_smp_mflags} + -DOPTIMIZE_NATIVE=OFF + +%cmake_build %install -make VERBOSE=1 DESTDIR=%{buildroot} install +%cmake_install rm %{buildroot}%{_libdir}/cmake/openbabel2/*.cmake @@ -244,6 +246,9 @@ export CTEST_OUTPUT_ON_FAILURE=1 PYTHONPATH=%{buildroot}%{python3_sitearch} %{ruby_vendorarchdir}/openbabel.so %changelog +* Thu Jul 30 2020 Rex Dieter - 2.4.1-32 +- adjust for new %%cmake macros (#1859850) + * Tue Jul 28 2020 Fedora Release Engineering - 2.4.1-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild