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