Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7c31d43060 |
||
|
|
09c6d04828 |
||
|
|
b550da2d27 |
||
|
|
9faafbf93c |
6 changed files with 29 additions and 114 deletions
|
|
@ -1,8 +1,8 @@
|
|||
Index: cmake-3.31.4/Modules/FindRuby.cmake
|
||||
Index: cmake-3.30.5/Modules/FindRuby.cmake
|
||||
===================================================================
|
||||
--- cmake-3.31.4.orig/Modules/FindRuby.cmake
|
||||
+++ cmake-3.31.4/Modules/FindRuby.cmake
|
||||
@@ -307,14 +307,9 @@ if(Ruby_EXECUTABLE AND NOT Ruby_VERSION_
|
||||
--- cmake-3.30.5.orig/Modules/FindRuby.cmake
|
||||
+++ cmake-3.30.5/Modules/FindRuby.cmake
|
||||
@@ -312,14 +312,9 @@ if(Ruby_EXECUTABLE AND NOT Ruby_VERSION_
|
||||
_RUBY_CONFIG_VAR("sitearchdir" Ruby_SITEARCH_DIR)
|
||||
_RUBY_CONFIG_VAR("sitelibdir" Ruby_SITELIB_DIR)
|
||||
|
||||
|
|
|
|||
103
cmake.spec
103
cmake.spec
|
|
@ -58,6 +58,9 @@
|
|||
%global build_fflags %(echo '%{build_fflags}' | sed -e 's!-ffat-lto-objects!-fno-fat-lto-objects!g')
|
||||
%global build_fcflags %(echo '%{build_fflags}' | sed -e 's!-ffat-lto-objects!-fno-fat-lto-objects!g')
|
||||
|
||||
# Place rpm-macros into proper location
|
||||
%global rpm_macros_dir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
|
||||
|
||||
# Setup _pkgdocdir if not defined already
|
||||
%{!?_pkgdocdir:%global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
||||
|
||||
|
|
@ -65,11 +68,11 @@
|
|||
%{!?_vpath_builddir:%global _vpath_builddir %{_target_platform}}
|
||||
|
||||
%global major_version 3
|
||||
%global minor_version 31
|
||||
%global patch_version 10
|
||||
%global minor_version 30
|
||||
%global patch_version 8
|
||||
|
||||
# For handling bump release by rpmdev-bumpspec and mass rebuild
|
||||
%global baserelease 3
|
||||
%global baserelease 1
|
||||
|
||||
# Set to RC version if building RC, else comment out.
|
||||
#%%global rcsuf rc3
|
||||
|
|
@ -101,11 +104,10 @@ URL: http://www.cmake.org
|
|||
Source0: http://www.cmake.org/files/v%{major_version}.%{minor_version}/%{orig_name}-%{tar_version}.tar.gz
|
||||
Source1: %{name}-init.el
|
||||
Source2: macros.%{name}.in
|
||||
Source3: macros.aaa-%{name}-srpm
|
||||
# See https://bugzilla.redhat.com/show_bug.cgi?id=1202899
|
||||
Source4: %{name}.attr
|
||||
Source5: %{name}.prov
|
||||
Source6: %{name}.req
|
||||
Source3: %{name}.attr
|
||||
Source4: %{name}.prov
|
||||
Source5: %{name}.req
|
||||
|
||||
# Always start regular patches with numbers >= 100.
|
||||
# We need lower numbers for patches in compat package.
|
||||
|
|
@ -286,16 +288,6 @@ BuildArch: noarch
|
|||
This package contains common RPM macros for %{name}.
|
||||
|
||||
|
||||
%package srpm-macros
|
||||
Summary: Common SRPM macros for %{name}
|
||||
Requires: rpm
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%description srpm-macros
|
||||
This package contains common SRPM macros for %{name}.
|
||||
|
||||
|
||||
%package -n python3-cmake
|
||||
Summary: Python metadata for packages depending on %{name}
|
||||
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
|
|
@ -318,8 +310,8 @@ echo '#!%{__python3}' > %{name}.req
|
|||
echo '#!%{__python2}' > %{name}.prov
|
||||
echo '#!%{__python2}' > %{name}.req
|
||||
%endif
|
||||
tail -n +2 %{SOURCE5} >> %{name}.prov
|
||||
tail -n +2 %{SOURCE6} >> %{name}.req
|
||||
tail -n +2 %{SOURCE4} >> %{name}.prov
|
||||
tail -n +2 %{SOURCE5} >> %{name}.req
|
||||
%endif
|
||||
|
||||
|
||||
|
|
@ -395,13 +387,12 @@ install -p -m 0644 %{SOURCE1} %{buildroot}%{_emacs_sitestartdir}
|
|||
rm -f %{buildroot}%{_emacs_sitelispdir}
|
||||
%endif
|
||||
# RPM macros
|
||||
install -p -m0644 -D %{SOURCE2} %{buildroot}%{_rpmmacrodir}/macros.%{name}
|
||||
install -p -m0644 -D %{SOURCE3} %{buildroot}%{_rpmmacrodir}/macros.aaa-%{name}-srpm
|
||||
sed -i -e "s|@@CMAKE_VERSION@@|%{version}|" -e "s|@@CMAKE_MAJOR_VERSION@@|%{major_version}|" %{buildroot}%{_rpmmacrodir}/macros.%{name}
|
||||
touch -r %{SOURCE2} %{buildroot}%{_rpmmacrodir}/macros.%{name}
|
||||
install -p -m0644 -D %{SOURCE2} %{buildroot}%{rpm_macros_dir}/macros.%{name}
|
||||
sed -i -e "s|@@CMAKE_VERSION@@|%{version}|" -e "s|@@CMAKE_MAJOR_VERSION@@|%{major_version}|" %{buildroot}%{rpm_macros_dir}/macros.%{name}
|
||||
touch -r %{SOURCE2} %{buildroot}%{rpm_macros_dir}/macros.%{name}
|
||||
%if %{with rpm} && 0%{?_rpmconfigdir:1}
|
||||
# RPM auto provides
|
||||
install -p -m0644 -D %{SOURCE4} %{buildroot}%{_prefix}/lib/rpm/fileattrs/%{name}.attr
|
||||
install -p -m0644 -D %{SOURCE3} %{buildroot}%{_prefix}/lib/rpm/fileattrs/%{name}.attr
|
||||
install -p -m0755 -D %{name}.prov %{buildroot}%{_prefix}/lib/rpm/%{name}.prov
|
||||
install -p -m0755 -D %{name}.req %{buildroot}%{_prefix}/lib/rpm/%{name}.req
|
||||
%endif
|
||||
|
|
@ -513,10 +504,6 @@ NO_TEST="$NO_TEST|curl"
|
|||
# These three tests timeout on riscv64, skip them.
|
||||
NO_TEST="$NO_TEST|Qt5Autogen.ManySources|Qt5Autogen.MocInclude|Qt5Autogen.MocIncludeSymlink|Qt6Autogen.MocIncludeSymlink"
|
||||
%endif
|
||||
%if 0%{?fedora} == 41
|
||||
# Test failing on Fedora 41, only.
|
||||
NO_TEST="$NO_TEST|RunCMake.Make|RunCMake.BuildDepends|Qt6Autogen.RerunMocBasic|Qt6Autogen.RerunRccDepends"
|
||||
%endif
|
||||
bin/ctest%{?name_suffix} %{?_smp_mflags} -V -E "$NO_TEST" --output-on-failure
|
||||
## do this only periodically, not for every build -- besser82 20221102
|
||||
# Keep an eye on failing tests
|
||||
|
|
@ -584,78 +571,32 @@ popd
|
|||
|
||||
|
||||
%files rpm-macros
|
||||
%{_rpmmacrodir}/macros.%{name}
|
||||
%{rpm_macros_dir}/macros.%{name}
|
||||
%if %{with rpm} && 0%{?_rpmconfigdir:1}
|
||||
%{_rpmconfigdir}/fileattrs/%{name}.attr
|
||||
%{_rpmconfigdir}/%{name}.prov
|
||||
%{_rpmconfigdir}/%{name}.req
|
||||
%endif
|
||||
|
||||
%files srpm-macros
|
||||
%{_rpmmacrodir}/macros.aaa-%{name}-srpm
|
||||
|
||||
|
||||
%files -n python3-cmake
|
||||
%{python3_sitelib}/%{cmake_distinfo}
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Dec 12 2025 Miro Hrončok <mhroncok@redhat.com> - 3.31.10-3
|
||||
- Declarative %%generate_buildrequires: Keep the BRs stable
|
||||
* Mon Feb 24 2025 Björn Esser <besser82@fedoraproject.org> - 3.30.8-1
|
||||
- cmake-3.30.8
|
||||
|
||||
* Thu Dec 11 2025 Neal Gompa <ngompa@fedoraproject.org> - 3.31.10-2
|
||||
- macros: Enable support for RPM 4.20+ declarative buildsystem feature
|
||||
* Sun Jan 26 2025 Björn Esser <besser82@fedoraproject.org> - 3.30.7-1
|
||||
- cmake-3.30.7
|
||||
|
||||
* Tue Dec 02 2025 Yaakov Selkowitz <yselkowi@redhat.com> - 3.31.10-1
|
||||
- Update to 3.31.10
|
||||
|
||||
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.31.6-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Tue Jun 03 2025 Python Maint <python-maint@redhat.com> - 3.31.6-3
|
||||
- Rebuilt for Python 3.14
|
||||
|
||||
* Tue Mar 18 2025 Yaakov Selkowitz <yselkowi@redhat.com> - 3.31.6-2
|
||||
- Revert to 3.31.6
|
||||
- Rebuild (jsoncpp)
|
||||
- Fix build with latest curl
|
||||
|
||||
* Mon Feb 24 2025 Björn Esser <besser82@fedoraproject.org> - 3.31.6-1
|
||||
- cmake-3.31.6
|
||||
Fixes rhbz#2347346
|
||||
|
||||
* Fri Jan 24 2025 Björn Esser <besser82@fedoraproject.org> - 3.31.5-1
|
||||
- cmake-3.31.5
|
||||
Fixes rhbz#2341786
|
||||
|
||||
* Thu Jan 23 2025 Orion Poplawski <orion@nwra.com> - 3.31.4-3
|
||||
* Thu Jan 23 2025 Orion Poplawski <orion@nwra.com> - 3.30.5-3
|
||||
- Define CMAKE_INSTALL_FULL_SBINDIR/CMAKE_INSTALL_SBINDIR to help with sbin
|
||||
merge
|
||||
|
||||
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.31.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Sun Jan 12 2025 Björn Esser <besser82@fedoraproject.org> - 3.31.4-1
|
||||
- cmake-3.31.4
|
||||
Fixes rhbz#2336980
|
||||
|
||||
* Sun Dec 22 2024 Björn Esser <besser82@fedoraproject.org> - 3.31.3-1
|
||||
- cmake-3.31.3
|
||||
Fixes rhbz#2333376
|
||||
|
||||
* Thu Dec 05 2024 Björn Esser <besser82@fedoraproject.org> - 3.31.2-1
|
||||
- cmake-3.31.2
|
||||
Fixes rhbz#2330603
|
||||
|
||||
* Sun Dec 01 2024 Björn Esser <besser82@fedoraproject.org> - 3.31.1-1
|
||||
- cmake-3.31.1
|
||||
Fixes rhbz#2324190
|
||||
* Sun Dec 01 2024 Björn Esser <besser82@fedoraproject.org> - 3.30.5-2
|
||||
- macros: Fix handling of double-dash without argument for ctest
|
||||
|
||||
* Fri Nov 08 2024 Björn Esser <besser82@fedoraproject.org> - 3.31.0-1
|
||||
- cmake-3.31.0
|
||||
Fixes rhbz#2324190
|
||||
|
||||
* Sun Nov 03 2024 Björn Esser <besser82@fedoraproject.org> - 3.30.5-1
|
||||
- cmake-3.30.5
|
||||
Fixes rhbz#2262837
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
# Declarative buildsystem macros (usable with rpm >= 4.20)
|
||||
# https://rpm-software-management.github.io/rpm/manual/buildsystem.html
|
||||
|
||||
# When this file is installed but macros.cmake is not,
|
||||
# this macro will just cause the real macros to get installed.
|
||||
%cmake_generate_buildrequires(-) echo "cmake-rpm-macros"
|
||||
|
||||
%buildsystem_cmake_generate_buildrequires() %cmake_generate_buildrequires %{*}
|
||||
%buildsystem_cmake_conf() %{nil}
|
||||
%buildsystem_cmake_build() %{nil}
|
||||
%buildsystem_cmake_install() %{nil}
|
||||
%buildsystem_cmake_check() %{nil}
|
||||
|
|
@ -56,19 +56,6 @@
|
|||
%{lua:print((string.gsub(rpm.expand('%{**}'),"%-%-%s","")))}
|
||||
|
||||
|
||||
# Declarative buildsystem macros (usable with rpm >= 4.20)
|
||||
# https://rpm-software-management.github.io/rpm/manual/buildsystem.html
|
||||
%cmake_generate_buildrequires(-) echo "cmake-rpm-macros"; echo "cmake"
|
||||
|
||||
%buildsystem_cmake_generate_buildrequires() %cmake_generate_buildrequires %{*}
|
||||
%buildsystem_cmake_conf() %cmake %{*}
|
||||
%buildsystem_cmake_build() %cmake_build %{*}
|
||||
%buildsystem_cmake_install() %cmake_install %{*}
|
||||
%buildsystem_cmake_check() %{?with_ctest:%ctest %{*}} %{!?with_ctest:%{nil}}
|
||||
|
||||
|
||||
# Legacy cmakeX macros for multiversioned CMake
|
||||
|
||||
%cmake@@CMAKE_MAJOR_VERSION@@ %cmake
|
||||
%cmake@@CMAKE_MAJOR_VERSION@@_build %cmake_build
|
||||
%cmake@@CMAKE_MAJOR_VERSION@@_install %cmake_install
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (cmake-3.31.10.tar.gz) = ae1eed42c143b5afd70124853367dab130b3a668fd161a8fd794a44d2eb42f0a64367d152eb43edbf167ffa95612ffe10f8f18c6db9410ff473b97d4f04a978e
|
||||
SHA512 (cmake-3.30.8.tar.gz) = bb56b64ca6958a349b43153048a7f9230a6d29571cf4d657b7fbde2ee025b82ab0b884fea014a22b3c8209374a6ca7a801f4b86767a6dbcd6e6971da2e314b79
|
||||
|
|
|
|||
|
|
@ -57,9 +57,8 @@ rlJournalStart
|
|||
rlRun "dnf builddep -y $TmpDir/SPECS/*.spec"
|
||||
rlRun "su -c 'rpmbuild -D \"_topdir $TmpDir\" -bp $TmpDir/SPECS/*.spec &>$TmpDir/rpmbuild.log' $BUILD_USER"
|
||||
rlRun "rlFileSubmit $TmpDir/rpmbuild.log"
|
||||
rlRun "BuildDir=`rpmbuild -D \"_topdir $TmpDir\" -bc --short-circuit --define '__spec_build_pre echo %{_builddir}; exit 0' $TmpDir/SPECS/*.spec | tail -1`"
|
||||
rlRun "CMakeDir=`ls $BuildDir | grep -E '^cmake-[0-9]+(\.[0-9]+)+(-rc[0-9]+)?$' | tail -n 1`"
|
||||
rlRun "cd $BuildDir/$CMakeDir"
|
||||
rlRun "CMakeDir=`ls $TmpDir/BUILD | grep -E '^cmake-[0-9]+(\.[0-9]+)+(-rc[0-9]+)?$' | tail -n 1`"
|
||||
rlRun "cd $TmpDir/BUILD/$CMakeDir"
|
||||
rlRun "su -c './bootstrap &>$TmpDir/bootstrap.log' $BUILD_USER"
|
||||
rlRun "rlFileSubmit $TmpDir/bootstrap.log"
|
||||
rlRun "ln -fs /usr/bin/cmake bin/cmake"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue