diff --git a/mapserver.spec b/mapserver.spec index a37e773..bbc5d96 100644 --- a/mapserver.spec +++ b/mapserver.spec @@ -11,7 +11,7 @@ Name: mapserver Version: 7.4.3 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Environment for building spatially-enabled internet applications %global dashver %(echo %version | sed 's|\\.|-|g') @@ -157,10 +157,6 @@ rm -rf mapscript/perl/mapscript_wrap.c %build - -mkdir build -cd build - export CFLAGS="${CFLAGS} -ldl -fPIC -fno-strict-aliasing" export CXXFLAGS="%{optflags} -fno-strict-aliasing" @@ -211,14 +207,13 @@ export CXXFLAGS="%{optflags} -fno-strict-aliasing" -DWITH_SDE=FALSE \ -DWITH_SDE_PLUGIN=FALSE \ -DWITH_EXEMPI=FALSE \ - -Wno-dev \ - .. + -Wno-dev -%make_build +%cmake_build %install -%make_install -C build +%cmake_install mkdir -p %{buildroot}%{_datadir}/%{name} install -p -m 644 xmlmapfile/mapfile.xsd %{buildroot}%{_datadir}/%{name} @@ -226,7 +221,7 @@ install -p -m 644 xmlmapfile/mapfile.xsl %{buildroot}%{_datadir}/%{name} # install java mkdir -p %{buildroot}%{_javadir} -install -p -m 644 build/mapscript/java/mapscript.jar %{buildroot}%{_javadir}/ +install -p -m 644 %{_vpath_builddir}/mapscript/java/mapscript.jar %{buildroot}%{_javadir}/ %if 0%{php_mapscript} # install php config file @@ -308,6 +303,9 @@ fi %changelog +* Thu Oct 01 2020 Petr Pisar - 7.4.3-10 +- Adapt to new CMake (bug #1864110) + * Thu Sep 24 2020 Adrian Reber - 7.4.3-9 - Rebuilt for protobuf 3.13