Skip to content

Commit 5c0789a

Browse files
rpm build improvements
remove version from folder name to improve ccache utilization Related-To: NEO-7310 Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
1 parent ec04de6 commit 5c0789a

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

manifests/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ components:
2727
branch: master
2828
dest_dir: infra
2929
fetch_tags: true
30-
revision: v4207
30+
revision: v4211
3131
type: git
3232
internal:
3333
branch: master

scripts/packaging/l0_gpu_driver/build_l0_gpu_driver_rpm.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ if [ "${BUILD_SRPM}" == "1" ]; then
5757
#setup rpm build tree
5858
rm -rf $BUILD_DIR
5959
mkdir -p $BUILD_DIR/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
60-
tar -c -I 'xz -6 -T0' -f $BUILD_DIR/SOURCES/compute-runtime-$VERSION.tar.xz -C $REPO_DIR --transform "s,${REPO_DIR:1},compute-runtime-$VERSION," --exclude=.git\* $REPO_DIR
60+
tar -c -I 'xz -6 -T0' -f $BUILD_DIR/SOURCES/compute-runtime.tar.xz -C $REPO_DIR --transform "s,${REPO_DIR:1},compute-runtime," --exclude=.git\* $REPO_DIR
6161
cp $COPYRIGHT $BUILD_DIR/SOURCES/
6262
cp $SPEC_SRC $BUILD_DIR/SPECS/
6363

@@ -93,7 +93,7 @@ if [ "${BUILD_RPM}" == "1" ]; then
9393
if [ "${LOG_CCACHE_STATS}" == "1" ]; then
9494
ccache -z
9595
fi
96-
export CCACHE_BASEDIR=$(readlink -m $BUILD_DIR/BUILD/compute-runtime-${VERSION}/)
96+
export CCACHE_BASEDIR=$(readlink -m $BUILD_DIR/BUILD/compute-runtime/)
9797
rpmbuild --rebuild ${REPO_DIR}/../output/SRPMS/intel-level-zero-gpu-${VERSION}*.src.rpm "${build_args[@]}"
9898
if [ "${LOG_CCACHE_STATS}" == "1" ]; then
9999
ccache -s

scripts/packaging/l0_gpu_driver/rhel_8/SPECS/l0_gpu_driver.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Summary: Intel(R) GPU Driver for oneAPI Level Zero.
1515
Group: System Environment/Libraries
1616
License: MIT
1717
URL: https://github.com/intel/compute-runtime
18-
Source0: %{url}/archive/%{version}/compute-runtime-%{version}.tar.xz
18+
Source0: %{url}/archive/%{version}/compute-runtime.tar.xz
1919
Source1: copyright
2020

2121
BuildRequires: libva-devel gcc-c++ cmake ninja-build make
@@ -36,7 +36,7 @@ exposing hardware capabilities to applications.
3636
%define debug_package %{nil}
3737

3838
%prep
39-
%autosetup -p1 -n compute-runtime-%{ver}
39+
%autosetup -p1 -n compute-runtime
4040

4141
%build
4242
mkdir build

scripts/packaging/l0_gpu_driver/sles_15.3/SPECS/l0_gpu_driver.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Summary: Intel(R) GPU Driver for oneAPI Level Zero.
2424
Group: System Environment/Libraries
2525
License: MIT
2626
URL: https://github.com/intel/compute-runtime
27-
Source0: %{url}/archive/%{version}/compute-runtime-%{version}.tar.xz
27+
Source0: %{url}/archive/%{version}/compute-runtime.tar.xz
2828
Source1: copyright
2929

3030
ExclusiveArch: x86_64
@@ -48,7 +48,7 @@ exposing hardware capabilities to applications.
4848
%debug_package %{nil}
4949

5050
%prep
51-
%autosetup -p1 -n compute-runtime-%{version}
51+
%autosetup -p1 -n compute-runtime
5252

5353
%build
5454
%cmake .. \

scripts/packaging/opencl/build_opencl_rpm.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ if [ "${BUILD_SRPM}" == "1" ]; then
5757
#setup rpm build tree
5858
rm -rf $BUILD_DIR
5959
mkdir -p $BUILD_DIR/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
60-
tar -c -I 'xz -6 -T0' -f $BUILD_DIR/SOURCES/compute-runtime-$VERSION.tar.xz -C $REPO_DIR --transform "s,${REPO_DIR:1},compute-runtime-$VERSION," --exclude=.git\* $REPO_DIR
60+
tar -c -I 'xz -6 -T0' -f $BUILD_DIR/SOURCES/compute-runtime.tar.xz -C $REPO_DIR --transform "s,${REPO_DIR:1},compute-runtime," --exclude=.git\* $REPO_DIR
6161
cp $COPYRIGHT $BUILD_DIR/SOURCES/
6262
cp $SPEC_SRC $BUILD_DIR/SPECS/
6363

@@ -98,7 +98,7 @@ if [ "${BUILD_RPM}" == "1" ]; then
9898
if [ "${LOG_CCACHE_STATS}" == "1" ]; then
9999
ccache -z
100100
fi
101-
export CCACHE_BASEDIR=$(readlink -m $BUILD_DIR/BUILD/compute-runtime-${VERSION}/)
101+
export CCACHE_BASEDIR=$(readlink -m $BUILD_DIR/BUILD/compute-runtime/)
102102
rpmbuild --rebuild ${REPO_DIR}/../output/SRPMS/intel-opencl-${VERSION}*.src.rpm "${build_args[@]}"
103103
if [ "${LOG_CCACHE_STATS}" == "1" ]; then
104104
ccache -s

scripts/packaging/opencl/rhel_8/SPECS/opencl.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Summary: Intel(R) Graphics Compute Runtime for OpenCL(TM)
1818
Group: System Environment/Libraries
1919
License: MIT
2020
URL: https://github.com/intel/compute-runtime
21-
Source0: %{url}/archive/%{version}/compute-runtime-%{version}.tar.xz
21+
Source0: %{url}/archive/%{version}/compute-runtime.tar.xz
2222
Source1: copyright
2323

2424
Requires: intel-gmmlib
@@ -40,7 +40,7 @@ Intel(R) Graphics Compute Runtime for OpenCL(TM) is a open source project to con
4040
%define debug_package %{nil}
4141

4242
%prep
43-
%autosetup -p1 -n compute-runtime-%{ver}
43+
%autosetup -p1 -n compute-runtime
4444

4545
%build
4646
mkdir build

scripts/packaging/opencl/sles_15.3/SPECS/opencl.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Summary: Intel(R) Graphics Compute Runtime for OpenCL(TM)
2626
License: MIT
2727
Group: System Environment/Libraries
2828
Url: https://github.com/intel/compute-runtime
29-
Source0: %{url}/archive/%{version}/compute-runtime-%{version}.tar.xz
29+
Source0: %{url}/archive/%{version}/compute-runtime.tar.xz
3030
Source1: copyright
3131

3232
ExclusiveArch: x86_64
@@ -50,7 +50,7 @@ Summary: ocloc package for opencl
5050
%debug_package %{nil}
5151

5252
%prep
53-
%autosetup -p1 -n compute-runtime-%{version}
53+
%autosetup -p1 -n compute-runtime
5454

5555
%build
5656
%cmake .. \

0 commit comments

Comments
 (0)