Buildroot: @CMAKE_CURRENT_BINARY_DIR@/_CPack_Packages/Linux/RPM/@CPACK_PACKAGE_FILE_NAME@ Summary: Microsoft Applications Telemetry C++ SDK for Linux Name: @CPACK_PACKAGE_NAME@ Version: @CPACK_PACKAGE_VERSION@ Release: @CPACK_PACKAGE_RELEASE@ License: MIT Group: Development/Tools/Other Vendor: @CPACK_PACKAGE_VENDOR@ Prefix: @CPACK_PACKAGING_INSTALL_PREFIX@ %define _rpmdir @CMAKE_CURRENT_BINARY_DIR@/_CPack_Packages/Linux/RPM %define _rpmfilename @CPACK_PACKAGE_FILE_NAME@.rpm %define _unpackaged_files_terminate_build 0 %define _topdir @CMAKE_CURRENT_BINARY_DIR@/_CPack_Packages/Linux/RPM %description Microsoft Applications Telemetry C++ SDK # This is a shortcutted spec file generated by CMake RPM generator # we skip _install step because CPack does that for us. # We do only save CPack installed tree in _prepr # and then restore it in build. %prep mv $RPM_BUILD_ROOT @CMAKE_CURRENT_BINARY_DIR@/_CPack_Packages/Linux/RPM/tmpBBroot %install if [ -e $RPM_BUILD_ROOT ]; then rm -Rf $RPM_BUILD_ROOT fi mv "@CMAKE_CURRENT_BINARY_DIR@/_CPack_Packages/Linux/RPM/tmpBBroot" $RPM_BUILD_ROOT %files %defattr(-,root,root,-) @CPACK_PACKAGING_INSTALL_PREFIX@/@LIB_INSTALL_DIR@/* @CPACK_PACKAGING_INSTALL_PREFIX@/bin/my_project %changelog * Wed Feb 26 2019 Max Golovanov 3.1.57-0 Package name changed to MAT - preparing for opensource release * Thu Sep 6 2018 Max Golovanov 3.0.249-0 Package created