Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37567302
en ru br
Репозитории ALT
S:3.27.6-alt1
5.1: 2.6.4-alt2
4.1: 2.6.3-alt1.M41.1
3.0: 2.0.5-alt1
www.altlinux.org/Changes

Группа :: Development/Tools
Пакет: cmake

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: cmake
Version: 2.6.4
Release: alt2

Summary: Cross-platform, open-source make system

License: BSD
Group: Development/Tools
Url: http://cmake.org/

Packager: Andrey Rahmatullin <wrar at altlinux.ru>

Source: http://www.cmake.org/files/v2.6/%name-%version.tar.gz
Patch0: %name-2.6.0-alt-dynamic-linking.patch
Patch1: %name-2.6.3-alt-FindQt3-remove-glob.patch
Patch2: %name-2.6.3-alt-desktop-fix.patch
Patch3: %name-2.6.4-alt-gcc-workarounds.patch

BuildPreReq: gcc-c++ libncurses-devel libtinfo-devel
BuildPreReq: libcurl-devel zlib-devel libqt4-devel
BuildPreReq: libxmlrpc-devel >= 1.08.00-alt2
BuildRequires(pre): shared-mime-info rpm-build-vim

Obsoletes: cpack < 2.4.5-alt3
Provides: cpack = %version-%release

Requires: %name-modules = %version-%release

%define _unpackaged_files_terminate_build 1

%description
CMake is used to control the software compilation process using
simple platform and compiler independent configuration files.
CMake generates native makefiles and workspaces that can be
used in the compiler environment of your choice. CMake is quite
sophisticated: it is possible to support complex environments
requiring system configuration, pre-processor generation, code
generation, and template instantiation.


%package modules
Summary: Standard CMake modules
Group: Development/Tools
BuildArch: noarch

%description modules
CMake is used to control the software compilation process using
simple platform and compiler independent configuration files.

This package contains the standard modules from the CMake distribution.


%package -n ccmake
Summary: Curses interface for CMake
Group: Development/Tools
Requires: %name = %version-%release

%description -n ccmake
The "ccmake" executable is the CMake curses interface. Project
configuration settings may be specified interactively through this GUI.
Brief instructions are provided at the bottom of the terminal when the
program is running.


%package -n ctest
Summary: CMake test driver program
Group: Development/Tools
Requires: %name = %version-%release

%description -n ctest
The ctest executable is the CMake test driver program. CMake-generated
build trees created for projects that use the ENABLE_TESTING and
ADD_TEST commands have testing support. This program will run the tests
and report results.


%package gui
Summary: Qt interface for CMake
Group: Development/Tools
Requires: %name = %version-%release

%description gui
The "cmake-gui" executable is the CMake GUI.  Project configuration settings
may be specified interactively.  Brief instructions are provided at the
bottom of the window when the program is running.


%package doc
Summary: CMake docs
Group: Documentation
BuildArch: noarch

%description doc
This package contains CMake docs in DocBook, html and txt formats.


%package -n vim-plugin-%name
Summary: Vim plugins for CMake files
Group: Editors
BuildArch: noarch

%description -n vim-plugin-%name
This package contains updated indent and syntax Vim plugins for CMake files.

%prep
%setup
%patch0 -p1 -b .orig
%patch1 -p1
%patch2 -p1
%patch3 -p2
%__subst 's,SET(BUILD_SHARED_LIBS OFF),SET(BUILD_SHARED_LIBS ON),' CMakeLists.txt

%build
mkdir build
pushd build
CFLAGS="%optflags" CXXFLAGS="%optflags" ../bootstrap \
--system-libs \
--qt-gui \
--prefix=%prefix \
--datadir=/share/CMake \
--mandir=/share/man \
--docdir=/share/doc/%name-%version

%make_build VERBOSE=1
%make test

%install
pushd build
%makeinstall_std
popd
install -m644 ChangeLog.manual %buildroot%_docdir/%name-%version
mv %buildroot/usr/lib %buildroot%_libdir || :
mkdir -p %buildroot%_niconsdir
mv %buildroot%_pixmapsdir/CMakeSetup.png %buildroot%_niconsdir/
mkdir -p %buildroot{%vim_indent_dir,%vim_syntax_dir}
install -m644 Docs/cmake-indent.vim %buildroot%vim_indent_dir/%name.vim
install -m644 Docs/cmake-syntax.vim %buildroot%vim_syntax_dir/%name.vim


%files
%_bindir/cmake
%_bindir/cpack
%_libdir/libCMakeLib.so
%_libdir/libCPackLib.so
%_libdir/libcmcompress.so
%_libdir/libcmsys.so
%_libdir/libcmsys_c.so
%_libdir/libcmtar.so
%_datadir/CMake/
%exclude %_datadir/CMake/Modules/
%_man1dir/cmake*.*
%_man1dir/cpack.*
%dir %_docdir/%name-%version/
%_docdir/%name-%version/ChangeLog.manual


%files modules
%dir %_datadir/CMake/
%_datadir/CMake/Modules/


%files -n ccmake
%_bindir/ccmake
%_libdir/libcmForm.so
%_man1dir/ccmake.*


%files -n ctest
%_bindir/ctest
%_libdir/libCTestLib.so
%_man1dir/ctest.*


%files gui
%_bindir/cmake-gui
%_desktopdir/CMake.desktop
%_xdgmimedir/packages/cmakecache.xml
%_niconsdir/CMakeSetup.png


%files doc
%dir %_docdir/%name-%version
%_docdir/%name-%version/ccmake.*
%_docdir/%name-%version/cmake*
%_docdir/%name-%version/cpack*
%_docdir/%name-%version/ctest.*


%files -n vim-plugin-%name
%vim_indent_dir/*
%vim_syntax_dir/*


%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin