Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 0 additions & 59 deletions hls-fix.patch

This file was deleted.

12 changes: 5 additions & 7 deletions hls.spec
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
### RPM external hls 2019.08
%define tag 200a9aecaadf471592558540dc5a88256cbf880f
%define branch master
%define github_user Xilinx
### RPM external hls 2025.05
%define tag a3c0b0b444984aadba245a3b1fdffacaccea3141
%define branch cms/200a9ae
%define github_user cms-externals
%define runpath_opts -m examples
Source: git+https://github.com/%{github_user}/HLS_arbitrary_Precision_Types.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}-%{tag}.tgz
Patch0: hls-fix
Requires: gmake
BuildRequires: gmake

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

%build

Expand Down
6 changes: 6 additions & 0 deletions root.spec
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Source: git+https://github.com/%{github_user}/root.git?obj=%{branch}/%{tag}&expo
BuildRequires: cmake ninja

Requires: gsl libjpeg-turbo libpng libtiff giflib pcre2 python3 fftw3 xz xrootd libxml2 zlib davix tbb OpenBLAS py3-numpy lz4 freetype zstd
%{!?without_cuda:Requires: cuda}

%ifos linux
Requires: dcap
Expand Down Expand Up @@ -178,6 +179,11 @@ export ROOTSYS="%{i}"

ninja -v %{makeprocesses} install

# Generate cuda.pcm if CUDA is available
%if 0%{!?without_cuda:1}
echo '#include <cuda_runtime.h>' | %{i}/bin/root -b -n -l
%endif

find %{i} -type f -name '*.py' | xargs chmod -x
grep -rlI '#!.*python' %{i} | xargs chmod +x
for p in $(grep -rlI -m1 '^#\!.*python' %i/bin %i/etc) ; do
Expand Down