cmake/cmake.spec

Mon, 17 Sep 2012 19:10:10 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 17 Sep 2012 19:10:10 +0200
changeset 689
9fe04d4d4e5a
parent 519
eb13d07d5435
child 716
b45328b0ff26
permissions
-rw-r--r--

Update to new version of vendor software although Oracle fails to deliver.
More specifically, newer db(3) patch revisions exist but Oracle has
removed them from the canonical download server URI for Berkely DB.

michael@519 1 ##
michael@519 2 ## cmake.spec -- OpenPKG RPM Package Specification
michael@519 3 ## Copyright (c) 2000-2012 OpenPKG Foundation e.V. <http://openpkg.net/>
michael@519 4 ##
michael@519 5 ## Permission to use, copy, modify, and distribute this software for
michael@519 6 ## any purpose with or without fee is hereby granted, provided that
michael@519 7 ## the above copyright notice and this permission notice appear in all
michael@519 8 ## copies.
michael@519 9 ##
michael@519 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@519 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@519 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@519 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@519 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@519 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@519 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@519 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@519 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@519 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@519 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@519 21 ## SUCH DAMAGE.
michael@519 22 ##
michael@519 23
michael@519 24 # package version
michael@519 25 %define V_major 2.8
michael@519 26 %define V_opkg 2.8.9
michael@519 27 %define V_dist 2.8.9
michael@519 28
michael@519 29 # package information
michael@519 30 Name: cmake
michael@519 31 Summary: Cross-Platform Build System
michael@519 32 URL: http://www.cmake.org/
michael@519 33 Vendor: Kitware Inc., Insight Consortium
michael@519 34 Packager: OpenPKG Foundation e.V.
michael@519 35 Distribution: OpenPKG Community
michael@519 36 Class: EVAL
michael@519 37 Group: Building
michael@519 38 License: MIT-style
michael@519 39 Version: %{V_opkg}
michael@520 40 Release: 20120800
michael@519 41
michael@519 42 # list of sources
michael@519 43 Source0: http://www.cmake.org/files/v%{V_major}/cmake-%{V_dist}.tar.gz
michael@519 44
michael@519 45 # build information
michael@519 46 BuildPreReq: OpenPKG, openpkg >= 20100101, gcc, gcc::with_cxx = yes, make
michael@519 47 PreReq: OpenPKG, openpkg >= 20100101
michael@519 48
michael@519 49 %description
michael@519 50 CMake is an extensible, open-source system that manages the build
michael@519 51 process in an operating system and compiler independent manner.
michael@519 52 Unlike many cross-platform systems, CMake is designed to be used in
michael@519 53 conjunction with the native build environment. Simple configuration
michael@519 54 files placed in each source directory (called CMakeLists.txt files)
michael@519 55 are used to generate standard build files (e.g., makefiles on Unix
michael@519 56 and projects/workspaces in Windows MSVC) which are used in the usual
michael@519 57 way. CMake can compile source code, create libraries, generate
michael@519 58 wrappers, and build executables in arbitrary combinations. CMake
michael@519 59 supports in-place and out-of-place builds, and can therefore support
michael@519 60 multiple builds from a single source tree. CMake also supports
michael@519 61 static and dynamic library builds. Another nice feature of CMake is
michael@519 62 that it generates a cache file that is designed to be used with a
michael@519 63 graphical editor. For example, when CMake runs, it locates include
michael@519 64 files, libraries, and executable, and may encounter optional build
michael@519 65 directives. This information is gathered into the cache, which may
michael@519 66 be changed by the user prior to the generation of the native build
michael@519 67 files.
michael@519 68
michael@519 69 %track
michael@519 70 prog cmake = {
michael@519 71 version = %{V_dist}
michael@519 72 url = http://www.cmake.org/cmake/resources/software.html
michael@519 73 regex = cmake-(__VER__)\.tar\.gz
michael@519 74 }
michael@519 75
michael@519 76 %prep
michael@519 77 %setup -q -n cmake-%{V_dist}
michael@519 78
michael@519 79 %build
michael@519 80 CC="%{l_cc}" \
michael@519 81 CXX="%{l_cxx}" \
michael@519 82 CFLAGS="%{l_cflags -O}" \
michael@519 83 CXXFLAGS="%{l_cxxflags -O}" \
michael@519 84 ./configure \
michael@519 85 --prefix=%{l_prefix} \
michael@519 86 --datadir=/share/cmake \
michael@519 87 --docdir=/share/cmake/doc
michael@520 88 %{l_make} %{l_mflags -O}
michael@519 89
michael@519 90 %install
michael@519 91 bin/cmake -D CMAKE_INSTALL_PREFIX=$RPM_BUILD_ROOT%{l_prefix} -P cmake_install.cmake
michael@519 92 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
michael@519 93 %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/man/man1
michael@519 94 %{l_shtool} install -c -m 644 Docs/*.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
michael@519 95 rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/cmake/doc
michael@519 96 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@519 97
michael@519 98 %files -f files
michael@519 99
michael@519 100 %clean
michael@519 101

mercurial