%global major_version 21 %global minor_version 2 %global patch_version 1 %global api_patch_version 1176 Name: intel-gmmlib Version: 21.2.1 Release: 1%{?dist} Summary: Intel(R) Graphics Memory Management Library Package Group: System Environment/Libraries License: MIT URL: https://github.com/intel/gmmlib Source0: %{url}/archive/%{name}-%{version}.tar.gz ExclusiveArch: x86_64 BuildRequires: centos-release-scl epel-release BuildRequires: devtoolset-7-gcc-c++ cmake3 BuildRequires: make %description Intel(R) Graphics Memory Management Library %package devel Summary: Intel(R) Graphics Memory Management Library development package Group: Development Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package contains library and header files for developing applications that use %{name}. %prep %autosetup -p1 -n gmmlib-intel-gmmlib-%{version} find Source -name "*.cpp" -exec chmod -x {} ';' find Source -name "*.h" -exec chmod -x {} ';' %build mkdir build pushd build scl enable devtoolset-7 "cmake3 -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TYPE=release \ -DMAJOR_VERSION=%{major_version} -DMINOR_VERSION=%{minor_version} -DPATCH_VERSION=%{patch_version} \ -DGMMLIB_API_PATCH_VERSION=%{api_patch_version} \ -DRUN_TEST_SUITE:BOOL='ON' .." scl enable devtoolset-7 "make -j`nproc`" %install cd build %make_install %files %defattr(-,root,root) /usr/lib64/libigdgmm.so.11 /usr/lib64/libigdgmm.so.11.* %files devel %defattr(-,root,root) /usr/include/igdgmm/* /usr/lib64/libigdgmm.so /usr/lib64/pkgconfig/igdgmm.pc %changelog * Fri Jul 09 2021 Jacek Danecki - 21.2.1-1 - Update to 21.2.1 * Tue May 25 2021 Jacek Danecki - 21.1.3-1 - Update to 21.1.3 * Mon May 10 2021 Jacek Danecki - 21.1.2-1 - Update to 21.1.2 * Thu Apr 08 2021 Jacek Danecki - 20.4.1-1 - Update to 20.4.1 * Mon Nov 02 2020 Jacek Danecki - 20.3.2-1 - Update to 20.3.2 * Fri Oct 16 2020 Jacek Danecki - 20.3.1-1 - Update to 20.3.1 * Fri Oct 02 2020 Jacek Danecki - 20.2.5-1 - Update to 20.2.5 * Wed Jul 08 2020 Jacek Danecki - 20.2.2-1 - Update to 20.2.2 * Thu Apr 09 2020 Jacek Danecki - 20.1.1-1 - Update to 20.1.1 * Fri Jan 10 2020 Jacek Danecki - 19.4.1-1 - Update to 19.4.1 * Tue Nov 19 2019 Jacek Danecki - 19.3.4-1 - Update to 19.3.4