%global major_version 20 %global minor_version 2 %global patch_version 2 %global api_patch_version 830 Name: libigdgmm11 Version: 20.2.2 Release: 1%{?dist} Summary: Intel(R) Graphics Memory Management Library Package Group: Development/Libraries/C and C++ License: MIT URL: https://github.com/intel/gmmlib Source0: %{url}/archive/intel-gmmlib-%{version}.tar.gz ExclusiveArch: x86_64 BuildRequires: gcc-c++ cmake make pkg-config %description Intel(R) Graphics Memory Management Library %package devel Summary: Intel(R) Graphics Memory Management Library development package Group: Development/Libraries/C and C++ 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 %cmake -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' %make_build %install cd build %make_install %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %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 * 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 - Package renamed to libigdgmm11 * Tue Nov 19 2019 Jacek Danecki - 19.3.4-1 - Update to 19.3.4