## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global forgeurl https://github.com/dmlc/dmlc-core/ %global commit 4baa84e627849e675a3f99c92990ef9c39e4269e %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global commitdate 20260129 %forgemeta Name: dmlc-core Version: 0.3^%{commitdate}git%{shortcommit} Release: %{autorelease} Summary: Common bricks library for building distributed machine learning License: Apache-2.0 URL: %{forgeurl} Source0: %{forgesource} Patch: build-flags.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: libcurl-devel # Tests BuildRequires: gtest-devel # Documentation BuildRequires: doxygen BuildRequires: python3dist(breathe) BuildRequires: python3dist(recommonmark) BuildRequires: python3dist(sphinx) BuildRequires: texinfo %description DMLC-Core is the backbone library to support all DMLC projects, offers the bricks to build efficient and scalable distributed machine learning libraries. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package doc Summary: Documentation for %{name} BuildArch: noarch %description doc Documetation for %{name} in docbook format. %prep %autosetup -n %{name}-%{commit} -p1 %build %cmake -DUSE_OPENMP=ON \ -DGOOGLE_TEST=ON \ -DINSTALL_DOCUMENTATION=OFF \ -DBUILD_SHARED_LIBS=ON %cmake_build pushd doc make texinfo pushd _build pushd texinfo makeinfo --docbook dmlc-core.texi popd popd popd %install %cmake_install mkdir -p %{buildroot}%{_datadir}/help/en/dmlc install -m644 doc/_build/texinfo/dmlc-core.xml %{buildroot}%{_datadir}/help/en/dmlc %check %ctest %files %license LICENSE %doc README.md %{_libdir}/libdmlc.so.0{.,*} %files devel %{_includedir}/dmlc/ %{_libdir}/libdmlc.so %{_libdir}/cmake/dmlc/ %files doc %dir %{_datadir}/help/en %lang(en) %{_datadir}/help/en/dmlc/ %changelog ## START: Generated by rpmautospec * Sun Mar 01 2026 John Doe - 0.3^20260129git4baa84e-1 - Uncommitted changes ## END: Generated by rpmautospec