summaryrefslogtreecommitdiffstats
path: root/redhat/common/cmake/cmake.spec
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/common/cmake/cmake.spec')
-rw-r--r--redhat/common/cmake/cmake.spec34
1 files changed, 20 insertions, 14 deletions
diff --git a/redhat/common/cmake/cmake.spec b/redhat/common/cmake/cmake.spec
index fc4e0ca42..9a730145f 100644
--- a/redhat/common/cmake/cmake.spec
+++ b/redhat/common/cmake/cmake.spec
@@ -21,6 +21,12 @@
%endif
%define tde_pkg cmake
+%if 0%{?rhel} == 7
+%define cmake_datadir %{_datadir}/cmake3
+%else
+%define cmake_datadir %{_datadir}/cmake
+%endif
+
Name: trinity-%{tde_pkg}
Version: %{tde_version}
@@ -93,20 +99,20 @@ fi
%files
%defattr(-,root,root,-)
-%{_datadir}/cmake/Modules/FindTDE.cmake
-%{_datadir}/cmake/Modules/FindTQt.cmake
-%{_datadir}/cmake/Modules/FindTQtQUI.cmake
-%{_datadir}/cmake/Modules/TDEL10n.cmake
-%{_datadir}/cmake/Modules/TDEMacros.cmake
-%{_datadir}/cmake/Modules/TDESetupPaths.cmake
-%{_datadir}/cmake/Modules/tde_automoc.cmake
-%{_datadir}/cmake/Modules/tde_l10n_merge.pl
-%{_datadir}/cmake/Modules/tde_uic.cmake
-%{_datadir}/cmake/Templates/tde_dummy_cpp.cmake
-%{_datadir}/cmake/Templates/tde_export_library.cmake
-%{_datadir}/cmake/Templates/tde_libtool_file.cmake
-%{_datadir}/cmake/Templates/tde_tdeinit_executable.cmake
-%{_datadir}/cmake/Templates/tde_tdeinit_module.cmake
+%{cmake_datadir}/Modules/FindTDE.cmake
+%{cmake_datadir}/Modules/FindTQt.cmake
+%{cmake_datadir}/Modules/FindTQtQUI.cmake
+%{cmake_datadir}/Modules/TDEL10n.cmake
+%{cmake_datadir}/Modules/TDEMacros.cmake
+%{cmake_datadir}/Modules/TDESetupPaths.cmake
+%{cmake_datadir}/Modules/tde_automoc.cmake
+%{cmake_datadir}/Modules/tde_l10n_merge.pl
+%{cmake_datadir}/Modules/tde_uic.cmake
+%{cmake_datadir}/Templates/tde_dummy_cpp.cmake
+%{cmake_datadir}/Templates/tde_export_library.cmake
+%{cmake_datadir}/Templates/tde_libtool_file.cmake
+%{cmake_datadir}/Templates/tde_tdeinit_executable.cmake
+%{cmake_datadir}/Templates/tde_tdeinit_module.cmake
%changelog