Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cpu_features library #7781

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions cmssw-tool-conf.spec
Expand Up @@ -17,6 +17,7 @@ Requires: classlib
Requires: clhep
Requires: coral
Requires: cppunit
Requires: cpu_features
Requires: curl
Requires: das_client
Requires: db6
Expand Down
16 changes: 16 additions & 0 deletions cpu_features.spec
@@ -0,0 +1,16 @@
### RPM external cpu_features 0.7.0

Source: https://github.com/google/cpu_features/archive/refs/tags/v%{realversion}.tar.gz
BuildRequires: gmake cmake

%prep
%setup -n %{n}-%{realversion}

%build
cmake -S. -Bbuild \
-DBUILD_TESTING=OFF \
-DCMAKE_INSTALL_PREFIX:STRING=%{i}

%install
cd build
make install
11 changes: 11 additions & 0 deletions scram-tools.file/tools/cpu_features/cpu_features.xml
@@ -0,0 +1,11 @@
<tool name="cpu_features" version="@TOOL_VERSION@">
<info url="https://github.com/google/cpu_features"/>
<lib name="cpu_features"/>
<client>
<environment name="CPU_FEATURES_BASE" default="@TOOL_ROOT@"/>
<environment name="LIBDIR" default="$CPU_FEATURES_BASE/lib64"/>
<environment name="INCLUDE" default="$CPU_FEATURES_BASE/include"/>
<environment name="BINDIR" default="$CPU_FEATURES_BASE/bin"/>
</client>
<runtime name="PATH" value="$BINDIR" type="path"/>
</tool>