File tree 33 files changed +81
-11
lines changed
33 files changed +81
-11
lines changed Original file line number Diff line number Diff line change @@ -28,3 +28,5 @@ make %{build_opts} CFLAGS="%{arch_build_flags}"
28
28
%install
29
29
make install PREFIX=%i MAKE_NB_JOBS=%{compiling_processes }
30
30
31
+ %post
32
+ %relocateConfigAll lib/cmake * .cmake
Original file line number Diff line number Diff line change @@ -45,6 +45,4 @@ mv ../../%{n}-%{realversion}/DDG4/include/DDG4 %i/include
45
45
%install
46
46
47
47
%post
48
- %{relocateConfig }* .cmake
49
48
%{relocateConfig }bin/* .sh
50
- %{relocateConfig }bin/* .csh
Original file line number Diff line number Diff line change @@ -60,3 +60,6 @@ find %i/lib64 -name "*.*" -exec mv {} %i/lib \;
60
60
rm -rf %i /lib64
61
61
ls %{i }/lib
62
62
cd ..
63
+
64
+ %post
65
+ %relocateConfigAll share/EvtGen/cmake * .cmake
Original file line number Diff line number Diff line change @@ -48,5 +48,7 @@ make %{makeprocesses}
48
48
%install
49
49
make install
50
50
rm -rf %{i }/lib/* .la
51
+
51
52
%post
52
53
%{relocateConfig }bin/fastjet-config
54
+ %relocateConfigAll lib _fastjet.la
Original file line number Diff line number Diff line change @@ -25,3 +25,6 @@ make install
25
25
26
26
# Remove documentation.
27
27
%define drop_files %{i }/share
28
+
29
+ %post
30
+ %relocateConfigAll lib/cmake * .cmake
Original file line number Diff line number Diff line change @@ -25,5 +25,3 @@ perl -p -i -e 's|-lfreetype|-lfreetype-cms|' %{i}/bin/freetype-config
25
25
26
26
# Strip libraries, we are not going to debug them.
27
27
%define strip_files %{i }/lib
28
- %post
29
- %{relocateConfig }bin/freetype-config
Original file line number Diff line number Diff line change @@ -17,3 +17,5 @@ make %{makeprocesses} VERBOSE=1
17
17
make install
18
18
19
19
%post
20
+ %{relocateConfig }bin/h5pcc
21
+ %{relocateConfig }lib/libhdf5.settings
Original file line number Diff line number Diff line change 32
32
33
33
%install
34
34
make install
35
+
36
+ %post
37
+ %{relocateConfig }examples/* /GNUmakefile
Original file line number Diff line number Diff line change @@ -73,12 +73,12 @@ sed -i -e 's|^#!.*python|#!/usr/bin/env python3|' %{i}/lib/Herwig/python/ufo2her
73
73
74
74
%post
75
75
%{relocateConfig }bin/herwig-config
76
- %{relocateConfig }bin/Herwig7
77
76
%{relocateConfig }bin/Herwig-cms
78
77
%{relocateConfig }bin/ufo2herwig
79
78
%{relocateConfig }lib/Herwig/* .la
80
79
%{relocateConfig }lib/Herwig/python/Makefile-FR
81
80
%{relocateConfig }share/Herwig/Makefile-UserModules
82
81
%{relocateConfig }share/Herwig/defaults/PDF.in
83
82
%{relocateConfig }share/Herwig/HerwigDefaults.rpo
84
- sed -i -e " s|^.*/BUILDROOT/[0-9a-f][0-9a-f]*%{installroot}/|$CMS_INSTALL_PREFIX /|g" $RPM_INSTALL_PREFIX /%{pkgrel }/share/Herwig/HerwigDefaults.rpo
83
+ %{relocateConfig }share/Herwig/Doc/* .conf
84
+ %{relocateConfig }share/Herwig/defaults/setup.gosam.in
Original file line number Diff line number Diff line change @@ -26,3 +26,5 @@ cmake ../%{n}-%{realversion} \
26
26
cd %{_builddir }/build
27
27
make install
28
28
29
+ %post
30
+ %{relocateConfig }share/HighFive/CMake/HighFiveTargets.cmake
Original file line number Diff line number Diff line change @@ -84,3 +84,5 @@ rm -f %{i}/bin/set-xcode-analyzer
84
84
85
85
%post
86
86
%{relocateConfig }include/llvm/Config/llvm-config.h
87
+ %{relocateConfig }include/clang/Config/config.h
88
+ %{relocateConfig }lib64/cmake/llvm/LLVMConfig.cmake
Original file line number Diff line number Diff line change @@ -30,3 +30,6 @@ ninja -v %{makeprocesses}
30
30
cd ../build
31
31
32
32
ninja -v %{makeprocesses } install
33
+
34
+ %post
35
+ %{relocateConfig }cmake/lwtnnConfig-targets.cmake
Original file line number Diff line number Diff line change 45
45
46
46
# Remove all downloaded tgz files before building the package
47
47
find . -type f -name '*.tgz' -delete
48
+ rm -rf HEPTools/ninja/Ninja HEPTools/ninja/ninja_install.log \
49
+ ME5_debug basiceventgeneration/run*debug.log \
50
+ basiceventgeneration/Source/StdHEP/log.mcfio.*
51
+ find HEPTools/oneloop -type f -print | xargs chmod a+r
48
52
49
53
%install
50
54
rsync -avh %{_builddir }/MG5_aMC_v%{versiontag }_py3/ %{i }/
@@ -54,4 +58,8 @@ sed -ideleteme 's|#!.*/bin/python|#!/usr/bin/env python|' \
54
58
find %{i } -name ' *deleteme' -delete
55
59
56
60
%post
61
+ %relocateConfigAll . py.py
57
62
%{relocateConfig }input/mg5_configuration.txt
63
+ %{relocateConfig }basiceventgeneration/Cards/amcatnlo_configuration.txt
64
+ %{relocateConfig }basiceventgeneration/Source/make_opts
65
+ %{relocateConfig }HEPTools/ninja/lib/lib* .la
Original file line number Diff line number Diff line change @@ -48,3 +48,7 @@ cd ../build
48
48
ninja -v %{makeprocesses } install
49
49
rm %{i }/* .so
50
50
mv %{i }/python* %{i }/lib
51
+
52
+ %post
53
+ %{%relocateConfig }include/mxnet-cpp/op.h
54
+ %relocateConfigAll lib/cmake * .cmake
Original file line number Diff line number Diff line change @@ -30,4 +30,4 @@ make install
30
30
find %{i }/lib -type f | xargs chmod 0755
31
31
32
32
# Remove man pages.
33
- rm -rf %{i }/man
33
+ rm -rf %{i }/man %{ i }/share/man
Original file line number Diff line number Diff line change @@ -9,3 +9,5 @@ Provides: python%{cms_python3_major_minor_version}dist(scipy) = %{realversion}
9
9
Provides: python3dist(scipy) = %{realversion}
10
10
%define __find_provides true
11
11
%endif
12
+
13
+ %define PipPostPost %{relocateConfig}lib/python*/site-packages/scipy/__config__.py
Original file line number Diff line number Diff line change @@ -48,3 +48,6 @@ make install
48
48
%install
49
49
tar -c lib include | tar -x -C %i
50
50
51
+ %post
52
+ %{relocateConfig }include/Makefile
53
+ %{relocateConfig }lib/lib* .la
Original file line number Diff line number Diff line change @@ -15,3 +15,7 @@ make %makeprocesses
15
15
%install
16
16
make install
17
17
test -f %i /lib/libpythia8lhapdf6.so || exit 1
18
+ rm -rf %{i }/share/Pythia8/examples
19
+
20
+ %post
21
+ %{relocateConfig }bin/pythia8-config
Original file line number Diff line number Diff line change @@ -17,3 +17,6 @@ make %{makeprocesses}
17
17
18
18
%install
19
19
make install
20
+
21
+ %post
22
+ %{relocateConfig }bin/qd-config
Original file line number Diff line number Diff line change @@ -58,3 +58,5 @@ sed -i -e 's|^#!.*python.*|#!/usr/bin/env python3|' %{i}/bin/*
58
58
%post
59
59
%{relocateConfig }bin/rivet-config
60
60
%{relocateConfig }bin/rivet-buildplugin
61
+ %{relocateConfig }bin/rivet-build
62
+ %{relocateConfig }lib/python* /site-packages/rivet-* egg-info/SOURCES.txt
Original file line number Diff line number Diff line change @@ -184,4 +184,9 @@ cd ..
184
184
rm -rf build
185
185
186
186
%post
187
- %{relocateConfig }etc/cling/llvm/Config/llvm-config.h
187
+ %{relocateConfig }bin/root-config
188
+ %{relocateConfig }cmake/ROOTConfig-targets.cmake
189
+ %{relocateConfig }config/Makefile.config
190
+ %{relocateConfig }etc/notebook/jupyter_notebook_config.py
191
+ %{relocateConfig }include/RConfigOptions.h
192
+ %{relocateConfig }include/compiledata.h
Original file line number Diff line number Diff line change 192
192
%define relocateRpmPkg perl -p -i -e "s|\\Q%{instroot}\\E|%{cmsroot}|g;s|\\Q%{cmsroot}\\E|$RPM_INSTALL_PREFIX|g" $RPM_INSTALL_PREFIX/%{pkgrel}/
193
193
%define relocateCmsPkg perl -p -i -e "s|\\Q%{instroot}\\E|%{cmsroot}|g;s|\\Q%{cmsroot}\\E|$CMS_INSTALL_PREFIX|g" $RPM_INSTALL_PREFIX/%{pkgrel}/
194
194
%define relocateConfig %relocateCmsPkg
195
+ %define relocateConfigAll() find $RPM_INSTALL_PREFIX/%{pkgrel}/%{1} -name '%{2}' -print -type f | xargs %{relocateCmsFiles}
195
196
%define relocatePy3SitePackages \
196
197
for py in $(grep -RlI -m1 '^#\!.*python' %{i}/${PYTHON3_LIB_SITE_PACKAGES} | grep -v '\.pyc$') ; do \
197
198
lnum=$(grep -n -m1 '^#\!.*python' $py | sed 's|:.*||') \
Original file line number Diff line number Diff line change 340
340
if [ -f compile_commands.json ] ; then
341
341
%{relocateConfig}compile_commands.json
342
342
fi
343
-
343
+ %{relocateConfig}external/%cmsplatf/links.DB
344
344
%postun
345
345
rm -fR $RPM_INSTALL_PREFIX/%pkgrel
Original file line number Diff line number Diff line change @@ -27,3 +27,6 @@ rm -rf %{i}/lib/pkgconfig
27
27
# Read documentation online.
28
28
%define drop_files %{i }/share
29
29
cp %{i }/lib/sigc++-3.0/include/sigc++config.h %{i }/include/sigc++-3.0/
30
+
31
+ %post
32
+ %{relocateConfig }lib/cmake/sigc++-3/* .cmake
Original file line number Diff line number Diff line change @@ -34,3 +34,6 @@ make install
34
34
35
35
mkdir %{i }/share
36
36
cp TauSpinner/examples/CP-tests/Z-pi/*.txt %{i }/share/
37
+
38
+ %post
39
+ %{relocateConfig }lib/lib* .la
Original file line number Diff line number Diff line change 25
25
%install
26
26
27
27
tar xfz ${%{tf_root }}/libtensorflow_cc.tar.gz -C %{i }
28
+
29
+ %post
30
+ %{relocateConfig }lib/lib* .params
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ find %{i}/lib -name '*.la' -exec rm -f {} \;
63
63
64
64
65
65
%post
66
+ %{relocateConfig }bin/thepeg-config
66
67
%{relocateConfig }lib/ThePEG/Makefile.common
67
68
%{relocateConfig }lib/ThePEG/Makefile
68
69
%{relocateConfig }lib/ThePEG/ThePEGDefaults.rpo
Original file line number Diff line number Diff line change @@ -80,3 +80,4 @@ rm -f %{i}/lib/ucx/lib*.la
80
80
rm -rf %{i }/share/ucx/examples
81
81
82
82
%post
83
+ %{relocateConfig }lib/cmake/ucx/* .cmake
Original file line number Diff line number Diff line change @@ -21,3 +21,6 @@ cmake ../%{n}-%{realversion} \
21
21
cd ../build
22
22
make %{makeprocesses }
23
23
make install
24
+
25
+ %post
26
+ %{relocateConfig }lib64/pkgconfig/xgboost.pc
Original file line number Diff line number Diff line change @@ -55,3 +55,6 @@ make %makeprocesses VERBOSE=1
55
55
cd ../build
56
56
make install
57
57
%{relocatePy3SitePackages }
58
+
59
+ %post
60
+ %{relocateConfig }bin/xrootd-config
Original file line number Diff line number Diff line change @@ -16,3 +16,5 @@ make %{makeprocesses}
16
16
cd ../build
17
17
make install
18
18
19
+ %post
20
+ %{relocateConfig }lib64/pkgconfig/xtensor.pc
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ BuildRequires: cmake
6
6
%setup -n %{n }-%{realversion }
7
7
8
8
%build
9
-
10
9
cmake -DCMAKE_INSTALL_PREFIX=%{i }
11
10
make %{makeprocesses }
12
11
13
12
%install
14
-
15
13
make install
16
14
15
+ %post
16
+ %{relocateConfig }share/pkgconfig/xtl.pc
Original file line number Diff line number Diff line change @@ -25,3 +25,4 @@ make install
25
25
26
26
%post
27
27
%{relocateConfig }bin/yoda-config
28
+ %{relocateConfig }lib/python* /site-packages/yoda* egg-info/SOURCES.txt
You can’t perform that action at this time.
0 commit comments