mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
packaging refactor
- update versioning for RPM - make .spec files more verbose Print information about CCACHE_BASEDIR from environment. Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ed1f4a1adf
commit
878d646772
@@ -42,7 +42,7 @@ export NEO_OCL_VERSION_BUILD
|
||||
if [ -z "${BRANCH_SUFFIX}" ]; then
|
||||
VERSION="${NEO_OCL_VERSION_MAJOR}.${NEO_OCL_VERSION_MINOR}.${NEO_OCL_VERSION_BUILD}${API_DEB_MODEL_LINK}"
|
||||
else
|
||||
VERSION="1:${NEO_OCL_VERSION_MAJOR}.${NEO_OCL_VERSION_MINOR}.${NEO_OCL_VERSION_BUILD}.${API_VERSION}-${NEO_OCL_VERSION_HOTFIX}${API_VERSION_SRC}${API_DEB_MODEL_LINK}"
|
||||
VERSION="1:${NEO_OCL_VERSION_MAJOR}.${NEO_OCL_VERSION_MINOR}.${NEO_OCL_VERSION_BUILD}${API_VERSION}-${NEO_OCL_VERSION_HOTFIX}${API_VERSION_SRC}${API_DEB_MODEL_LINK}"
|
||||
fi
|
||||
|
||||
PKG_VERSION=${VERSION}
|
||||
|
||||
@@ -49,7 +49,7 @@ if [ "${BUILD_SRPM}" == "1" ]; then
|
||||
get_opencl_version # NEO_OCL_VERSION_MAJOR.NEO_OCL_VERSION_MINOR.NEO_OCL_VERSION_BUILD
|
||||
get_api_version # API_VERSION-API_VERSION_SRC and API_RPM_MODEL_LINK
|
||||
|
||||
VERSION="${NEO_OCL_VERSION_MAJOR}.${NEO_OCL_VERSION_MINOR}.${NEO_OCL_VERSION_BUILD}.${API_VERSION}"
|
||||
VERSION="${NEO_OCL_VERSION_MAJOR}.${NEO_OCL_VERSION_MINOR}.${NEO_OCL_VERSION_BUILD}${API_VERSION}"
|
||||
RELEASE="${NEO_OCL_VERSION_HOTFIX}${API_VERSION_SRC}${API_RPM_MODEL_LINK}"
|
||||
|
||||
RELEASE_WITH_REGKEYS="${RELEASE_WITH_REGKEYS:-FALSE}"
|
||||
|
||||
@@ -61,16 +61,17 @@ cd build
|
||||
%install
|
||||
cd build
|
||||
%ninja_install
|
||||
|
||||
chmod +x %{buildroot}/%{_libdir}/intel-opencl/libigdrcl.so
|
||||
chmod +x %{buildroot}/%{_libdir}/libocloc.so
|
||||
rm -f %{buildroot}/%{_libdir}/intel-opencl/libigdrcl.so.debug
|
||||
rm -f %{buildroot}/%{_libdir}/libocloc.so.debug
|
||||
rm -rf %{buildroot}/usr/lib/debug/
|
||||
rm -vf %{buildroot}/%{_libdir}/intel-opencl/libigdrcl.so.debug
|
||||
rm -vf %{buildroot}/%{_libdir}/libocloc.so.debug
|
||||
rm -rvf %{buildroot}/usr/lib/debug/
|
||||
#insert license into package
|
||||
mkdir -p %{buildroot}/usr/share/doc/intel-opencl/
|
||||
cp -pR %{_sourcedir}/copyright %{buildroot}/usr/share/doc/intel-opencl/.
|
||||
cp -pvR %{_sourcedir}/copyright %{buildroot}/usr/share/doc/intel-opencl/.
|
||||
mkdir -p %{buildroot}/usr/share/doc/intel-ocloc/
|
||||
cp -pR %{_sourcedir}/copyright %{buildroot}/usr/share/doc/intel-ocloc/.
|
||||
cp -pvR %{_sourcedir}/copyright %{buildroot}/usr/share/doc/intel-ocloc/.
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
|
||||
@@ -47,7 +47,7 @@ the GEN graphics hardware architecture.
|
||||
Summary: ocloc package for opencl
|
||||
%description -n intel-ocloc%{?name_suffix}
|
||||
|
||||
%debug_package
|
||||
%debug_package %{nil}
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n compute-runtime-%{version}
|
||||
@@ -69,16 +69,17 @@ Summary: ocloc package for opencl
|
||||
%install
|
||||
cd build
|
||||
%ninja_install
|
||||
|
||||
chmod +x %{buildroot}/%{_libdir}/intel-opencl/libigdrcl.so
|
||||
rm -f %{buildroot}/%{_libdir}/intel-opencl/libigdrcl.so.debug
|
||||
rm -f %{buildroot}/%{_libdir}/libocloc.so.debug
|
||||
rm -rf %{buildroot}/usr/lib/debug/
|
||||
rm -vf %{buildroot}/%{_libdir}/intel-opencl/libigdrcl.so.debug
|
||||
rm -vf %{buildroot}/%{_libdir}/libocloc.so.debug
|
||||
rm -rvf %{buildroot}/usr/lib/debug/
|
||||
|
||||
#insert license into package
|
||||
mkdir -p %{buildroot}/usr/share/doc/intel-opencl%{?name_suffix}/
|
||||
cp -pR %{_sourcedir}/copyright %{buildroot}/usr/share/doc/intel-opencl%{?name_suffix}/.
|
||||
cp -pvR %{_sourcedir}/copyright %{buildroot}/usr/share/doc/intel-opencl%{?name_suffix}/.
|
||||
mkdir -p %{buildroot}/usr/share/doc/intel-ocloc%{?name_suffix}/
|
||||
cp -pR %{_sourcedir}/copyright %{buildroot}/usr/share/doc/intel-ocloc%{?name_suffix}/.
|
||||
cp -pvR %{_sourcedir}/copyright %{buildroot}/usr/share/doc/intel-ocloc%{?name_suffix}/.
|
||||
|
||||
%files -n intel-opencl%{?name_suffix}
|
||||
%defattr(-,root,root)
|
||||
|
||||
@@ -33,3 +33,6 @@ override_dh_install:
|
||||
|
||||
override_dh_builddeb:
|
||||
dh_builddeb -- -Zxz
|
||||
|
||||
override_dh_auto_test:
|
||||
echo "ULTs already executed"
|
||||
|
||||
Reference in New Issue
Block a user