Improve compatibility with new CMake macro

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Raits 2020-07-20 13:15:59 +02:00
parent d8f9a7389f
commit ea758ca426
No known key found for this signature in database
GPG Key ID: 115D5AB89C5C1E1E

View File

@ -1,3 +1,5 @@
%undefine __cmake_in_source_build
%global libmspack_version 0.4
Name: evolution-ews
@ -51,19 +53,12 @@ This package contains translations for %{name}.
%autosetup -p1 -S gendiff
%build
mkdir _build
cd _build
export CFLAGS="$RPM_OPT_FLAGS -Wno-deprecated-declarations"
%cmake -G "Unix Makefiles" ..
make %{?_smp_mflags}
%cmake -G "Unix Makefiles"
%cmake_build
%install
rm -rf $RPM_BUILD_ROOT
cd _build
make install DESTDIR=$RPM_BUILD_ROOT
%cmake_install
%find_lang %{name}
@ -84,7 +79,7 @@ make install DESTDIR=$RPM_BUILD_ROOT
%{_datadir}/evolution/errors/module-ews-configuration.error
%{_datadir}/evolution-data-server/ews/windowsZones.xml
%files langpacks -f _build/%{name}.lang
%files langpacks -f %{name}.lang
%changelog
* Fri Jul 03 2020 Milan Crha <mcrha@redhat.com> - 3.37.3-1