cmake-vl.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. # Set to bcond_with or use --without gui to disable qt4 gui build
  2. %bcond_without gui
  3. Name: cmake
  4. Summary: Cross-platform make system
  5. Summary(ja): クロスプラットフォームな Make システム
  6. Version: 2.8.2
  7. Release: 2%{?_dist_release}
  8. Group: Development/Tools
  9. License: BSD
  10. URL: http://www.cmake.org/
  11. Source0: http://www.cmake.org/files/v2.8/%{name}-%{version}.tar.gz
  12. Source1: macros.cmake
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. %if %{with gui}
  15. BuildRequires: qt4-devel, desktop-file-utils
  16. %define qt_gui --qt-gui
  17. %endif
  18. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. %description
  21. CMake is used to control the software compilation process using simple
  22. platform and compiler independent configuration files. CMake generates
  23. native makefiles and workspaces that can be used in the compiler
  24. environment of your choice. CMake is quite sophisticated: it is possible
  25. to support complex environments requiring system configuration, pre-processor
  26. generation, code generation, and template instantiation.
  27. %package gui
  28. Summary: Qt GUI for %{name}
  29. Group: Development/Tools
  30. Requires: %{name} = %{version}-%{release}
  31. Requires(post): desktop-file-utils, shared-mime-info
  32. Requires(postun): desktop-file-utils, shared-mime-info
  33. %description gui
  34. The %{name}-gui package contains the Qt based GUI for CMake.
  35. %prep
  36. %setup -q
  37. # Fixup permissions
  38. find -name \*.h -o -name \*.cxx -print0 | xargs -0 chmod -x
  39. %build
  40. ./bootstrap --prefix=%{_prefix} --datadir=/share/%{name} \
  41. --mandir=/share/man --with-system-libs %{?qt_gui}
  42. make VERBOSE=1 %{?_smp_mflags}
  43. %install
  44. rm -rf $RPM_BUILD_ROOT
  45. make install DESTDIR=$RPM_BUILD_ROOT
  46. find $RPM_BUILD_ROOT/%{_datadir}/%{name}/Modules -type f | xargs chmod -x
  47. rm -rf $RPM_BUILD_ROOT/usr/doc
  48. # RPM macros
  49. install -p -m0644 -D %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.cmake
  50. sed -i -e "s|@@CMAKE_VERSION@@|%{version}|" $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.cmake
  51. touch -r %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.cmake
  52. %if %{with gui}
  53. # Desktop file
  54. desktop-file-install --delete-original \
  55. --dir=$RPM_BUILD_ROOT%{_datadir}/applications \
  56. $RPM_BUILD_ROOT/%{_datadir}/applications/CMake.desktop
  57. %endif
  58. %clean
  59. rm -rf $RPM_BUILD_ROOT
  60. %if %{with gui}
  61. %post gui
  62. update-desktop-database &> /dev/null || :
  63. update-mime-database %{_datadir}/mime &> /dev/null || :
  64. %postun gui
  65. update-desktop-database &> /dev/null || :
  66. update-mime-database %{_datadir}/mime &> /dev/null || :
  67. %endif
  68. %files
  69. %defattr(-,root,root)
  70. %doc CMakeLogo.gif ChangeLog.* Copyright.txt
  71. %doc Docs/*
  72. %doc Example/
  73. %config(noreplace) %{_sysconfdir}/rpm/macros.cmake
  74. %{_bindir}/ccmake
  75. %{_bindir}/cmake
  76. %{_bindir}/cpack
  77. %{_bindir}/ctest
  78. %{_datadir}/%{name}/
  79. %{_mandir}/man1/*
  80. %if %{with gui}
  81. %files gui
  82. %defattr(-,root,root,-)
  83. %{_bindir}/cmake-gui
  84. %{_datadir}/applications/CMake.desktop
  85. %{_datadir}/mime/packages/cmakecache.xml
  86. %{_datadir}/pixmaps/CMakeSetup32.png
  87. %endif
  88. %changelog
  89. * Sun Aug 22 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.2-2
  90. - generate gui package
  91. - renamed module directory
  92. * Sun Jul 25 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.2-1
  93. - new upstream release
  94. * Fri Feb 05 2010 Shu KONNO <owa@bg.wakwak.com> 2.6.4-3
  95. - rebuilt with new toolchain
  96. * Sun Aug 30 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.6.4-2
  97. - imported RPM macros from Fedora (cmake-2.6.4-3.fc12)
  98. * Tue Aug 25 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.6.4-1
  99. - new upstream release
  100. - added Vendor/Distribution tag
  101. * Wed Mar 25 2009 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.6.3-1
  102. - new upstream release
  103. * Tue Oct 21 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.6.2-1
  104. - new upstream release
  105. * Sat Mar 29 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.4.8-1
  106. - new upstream release
  107. * Wed Aug 15 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.4.7-0vl1
  108. - new upstream release
  109. * Mon May 14 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.4.6-0vl1
  110. - new upstream release
  111. - drop Patch100
  112. - use bootstrap script instead of configure
  113. - delete caches from %%doc
  114. * Sat May 12 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.4.3-0vl2
  115. - rebuilt with new toolchain
  116. * Tue Oct 31 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.4.3-0vl1
  117. - new upstream release
  118. - delete duped docs
  119. * Fri Oct 13 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.2.3-0vl2
  120. - added Patch100 (especially for ppc to solve ppc/powerpc issue)
  121. * Mon Feb 06 2006 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 2.2.3-0vl1
  122. - source version up
  123. * Sun Mar 20 2005 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 2.0.5-0vl1
  124. - initial build for Vine Linux