Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
### RPM external fmt-toolfile 1.0 | ||
Requires: fmt | ||
%prep | ||
|
||
%build | ||
|
||
%install | ||
|
||
mkdir -p %{i}/etc/scram.d | ||
cat << \EOF_TOOLFILE >%{i}/etc/scram.d/fmt.xml | ||
<tool name="fmt" version="@TOOL_VERSION@"> | ||
<info url="https://github.com/fmtlib/fmt"/> | ||
<client> | ||
<environment name="FMT_BASE" default="@TOOL_ROOT@"/> | ||
<environment name="LIBDIR" default="$FMT_BASE/lib"/> | ||
<environment name="INCLUDE" default="$FMT_BASE/include"/> | ||
</client> | ||
<runtime name="ROOT_INCLUDE_PATH" value="$INCLUDE" type="path"/> | ||
</tool> | ||
EOF_TOOLFILE | ||
|
||
## IMPORT scram-tools-post |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
### RPM external fmt 6.2.1 | ||
|
||
Source: https://github.com/fmtlib/fmt/archive/%{realversion}.tar.gz | ||
BuildRequires: gmake cmake | ||
|
||
%prep | ||
%setup -n %{n}-%{realversion} | ||
|
||
%build | ||
|
||
cd %{_builddir} | ||
rm -rf build && mkdir build && cd build | ||
|
||
cmake ../%{n}-%{realversion} \ | ||
-DCMAKE_INSTALL_PREFIX:STRING=%{i} \ | ||
-DCMAKE_INSTALL_LIBDIR:STRING=lib \ | ||
-DBUILD_SHARED_LIBS=TRUE | ||
|
||
make %{makeprocesses} | ||
|
||
%install | ||
|
||
cd %{_builddir}/build | ||
make install | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
- Requested, AddedBy: @makortel | ||
|
||
- PR: https://github.com/cms-sw/cmsdist/pull/ | ||
|
||
- Description: | ||
{fmt} is an open-source formatting library providing a fast and safe alternative to C stdio and C++ iostreams. | ||
https://github.com/fmtlib/fmt | ||
|
||
- Documentation | ||
https://fmt.dev/latest/ |