forked from cms-sw/cmsdist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmssw-partial-build.file
25 lines (20 loc) · 1.01 KB
/
cmssw-partial-build.file
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
### FILE cmssw-partial-build
%define isPartial yes
%define ucprojtype CMSSW
%define lcproject %(echo %n | sed -e "s|-patch||")
%define ucproject %(echo %lcproject | tr 'a-z' 'A-Z')
%define buildsetfile %{lcproject}_build_set
# Sources from 5 over are copied in the %%_sourcedir directly.
# No need to use additional macros, since we do not need
# to %setup them.
Source5: %buildsetfile
Source6: partial.py
%define cvssrc %ucprojtype
%if "%{?cvstag:set}" != "set"
%define cvstag %(echo %realversion | sed -e "s|_%{ucproject}.*||")
%endif
%define PartialBootstrapPatch \
perl -p -i -e 'if (s/(<download.*)(file:%{srctree})(.*)(name="%{srctree})("\\/>)/#$1$2$3$4$5/){open $fh,"%{_sourcedir}/%{buildsetfile}" or die; while(readline $fh){chomp;print "$1$2/$_$3$4/$_$5\\n"}}' config/bootsrc.xml
%define PartialReleasePackageList \
chmod +x %{_sourcedir}/partial.py;\
%{_sourcedir}/partial.py %{_sourcedir}/%buildsetfile %{_builddir}/%{srctree}/PackageList.cmssw %{srctree}/PackageList.cmssw