summaryrefslogtreecommitdiffstats
path: root/Modules/CPackRPM.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-08-08 15:33:42 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-08-08 15:33:42 (GMT)
commit7432ef206e47118d8812be5dc62c7250c9e0bfdd (patch)
treed103f0a5fa3a97c614d1876b494e0515507a3b8b /Modules/CPackRPM.cmake
parentb34078bca98a052907bb1198e2301d1223b3aae0 (diff)
downloadCMake-7432ef206e47118d8812be5dc62c7250c9e0bfdd.zip
CMake-7432ef206e47118d8812be5dc62c7250c9e0bfdd.tar.gz
CMake-7432ef206e47118d8812be5dc62c7250c9e0bfdd.tar.bz2
ENH: add empty RPM package generator, Eric Noulard wants to work on it
Alex
Diffstat (limited to 'Modules/CPackRPM.cmake')
-rw-r--r--Modules/CPackRPM.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/Modules/CPackRPM.cmake b/Modules/CPackRPM.cmake
new file mode 100644
index 0000000..dc6cd1f
--- /dev/null
+++ b/Modules/CPackRPM.cmake
@@ -0,0 +1,14 @@
+IF(CMAKE_BINARY_DIR)
+ MESSAGE(FATAL_ERROR "CPackRPM.cmake may only be used by CPack internally.")
+ENDIF(CMAKE_BINARY_DIR)
+
+IF(NOT UNIX)
+ MESSAGE(FATAL_ERROR "CPackRPM.cmake may only be used under UNIX.")
+ENDIF(NOT UNIX)
+
+FIND_PROGRAM(RPMBUILD_EXECUTABLE rpmbuild)
+
+IF(NOT RPMBUILD_EXECUTABLE)
+ MESSAGE(FATAL_ERROR "RPM package requires rpmbuild executable")
+ENDIF(NOT RPMBUILD_EXECUTABLE)
+