diff options
Diffstat (limited to 'cmake.spec')
| -rw-r--r-- | cmake.spec | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -15,17 +15,17 @@ Release: 1 Summary: Cross-platform make system License: BSD and MIT and zlib URL: http://www.cmake.org -Source0: https://cmake.org/files/v3.26/cmake-%{version}.tar.gz -#Source1: cmake-init.el -#Source2: macros.cmake -#Source3: cmake.attr -#Source4: cmake.prov -#Source5: cmake.req -#Patch0: cmake-findruby.patch +Source0: https://www.cmake.org/files/v3.26/cmake-%{version}.tar.gz +Source1: cmake-init.el +Source2: macros.cmake +Source3: cmake.attr +Source4: cmake.prov +Source5: cmake.req +Patch0: cmake-findruby.patch #Patch1: cmake-fedora-flag_release.patch -#Patch2: cmake-mingw-dl.patch +Patch2: cmake-mingw-dl.patch %ifarch sw_64 -#Patch3: cmake-3.22.0-sw.patch +Patch3: cmake-3.22.0-sw.patch %endif BuildRequires: coreutils findutils gcc-c++ gcc-gfortran sed @@ -103,8 +103,8 @@ Documentation for cmake. %prep %autosetup -n cmake-%{version}%{?versuf} -p 1 -#sed '1c #!%{__python3}' %{SOURCE4} > cmake.prov -#sed '1c #!%{__python3}' %{SOURCE5} > cmake.req +sed '1c #!%{__python3}' %{SOURCE4} > cmake.prov +sed '1c #!%{__python3}' %{SOURCE5} > cmake.req %build export CFLAGS=`echo %{optflags} | sed 's/-g\b/-s/g'` @@ -143,11 +143,11 @@ install -d %{buildroot}%{_emacs_sitelispdir}/cmake install -p -m 0644 Auxiliary/cmake-mode.el %{buildroot}%{_emacs_sitelispdir}/cmake/cmake-mode.el %{_emacs_bytecompile} %{buildroot}%{_emacs_sitelispdir}/cmake/cmake-mode.el install -d %{buildroot}%{_emacs_sitestartdir} -#install -p -m 0644 %SOURCE1 %{buildroot}%{_emacs_sitestartdir} -#install -p -m0644 -D %{SOURCE2} %{buildroot}%{rpm_macros_dir}/macros.cmake +install -p -m 0644 %SOURCE1 %{buildroot}%{_emacs_sitestartdir} +install -p -m0644 -D %{SOURCE2} %{buildroot}%{rpm_macros_dir}/macros.cmake sed -i -e "s|@@CMAKE_VERSION@@|%{version}|" -e "s|@@CMAKE_MAJOR_VERSION@@|3|" %{buildroot}%{rpm_macros_dir}/macros.cmake -#touch -r %{SOURCE2} %{buildroot}%{rpm_macros_dir}/macros.cmake -#install -p -m0644 -D %{SOURCE3} %{buildroot}%{_prefix}/lib/rpm/fileattrs/cmake.attr +touch -r %{SOURCE2} %{buildroot}%{rpm_macros_dir}/macros.cmake +install -p -m0644 -D %{SOURCE3} %{buildroot}%{_prefix}/lib/rpm/fileattrs/cmake.attr install -p -m0755 -D cmake.prov %{buildroot}%{_prefix}/lib/rpm/cmake.prov install -p -m0755 -D cmake.req %{buildroot}%{_prefix}/lib/rpm/cmake.req install -d %{buildroot}%{_libdir}/cmake |
