Resync.
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / CPack / cmCPackRPMGenerator.h
blobc596781b4c4fb925d21fa1b6483c9ef7af585ed7
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCPackRPMGenerator.h,v $
5 Language: C++
6 Date: $Date: 2007/11/05 21:55:45 $
7 Version: $Revision: 1.5 $
9 Copyright (c) 2002 Kitware, Inc. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
18 #ifndef cmCPackRPMGenerator_h
19 #define cmCPackRPMGenerator_h
22 #include "cmCPackGenerator.h"
24 /** \class cmCPackRPMGenerator
25 * \brief A generator for RPM packages
26 * The idea of the CPack RPM generator is to use
27 * as minimal C++ code as possible.
28 * Ideally the C++ part of the CPack RPM generator
29 * will only 'execute' (aka ->ReadListFile) several
30 * CMake macros files.
32 class cmCPackRPMGenerator : public cmCPackGenerator
34 public:
35 cmCPackTypeMacro(cmCPackRPMGenerator, cmCPackGenerator);
37 /**
38 * Construct generator
40 cmCPackRPMGenerator();
41 virtual ~cmCPackRPMGenerator();
43 protected:
44 virtual int InitializeInternal();
45 virtual int CompressFiles(const char* outFileName, const char* toplevel,
46 const std::vector<std::string>& files);
47 virtual const char* GetOutputExtension() { return ".rpm"; }
51 #endif