[5159] | 1 | # Set to bcond_without or use --with bootstrap if bootstrapping a new release |
---|
| 2 | # or architecture |
---|
| 3 | %bcond_with bootstrap |
---|
[1640] | 4 | # Set to bcond_with or use --without gui to disable qt4 gui build |
---|
| 5 | %bcond_without gui |
---|
| 6 | |
---|
[1442] | 7 | Name: cmake |
---|
[521] | 8 | Summary: Cross-platform make system |
---|
[1640] | 9 | Summary(ja): クロスプラットフォームな Make システム |
---|
[10245] | 10 | Version: 3.5.2 |
---|
[10439] | 11 | Release: 2%{?_dist_release} |
---|
[521] | 12 | |
---|
| 13 | Group: Development/Tools |
---|
[1640] | 14 | License: BSD |
---|
[521] | 15 | URL: http://www.cmake.org/ |
---|
| 16 | |
---|
[10245] | 17 | Source0: http://www.cmake.org/files/v3.5/%{name}-%{version}.tar.gz |
---|
[1442] | 18 | Source1: macros.cmake |
---|
| 19 | |
---|
[521] | 20 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[5159] | 21 | BuildRequires: curl-devel |
---|
| 22 | BuildRequires: expat-devel |
---|
| 23 | BuildRequires: gcc-gfortran |
---|
| 24 | BuildRequires: libarchive-devel |
---|
[2604] | 25 | BuildRequires: libidn-devel |
---|
[1643] | 26 | BuildRequires: ncurses-devel |
---|
[2604] | 27 | BuildRequires: openssl-devel |
---|
[5159] | 28 | BuildRequires: zlib-devel |
---|
[10245] | 29 | BuildRequires: xz-devel |
---|
| 30 | BuildRequires: jsoncpp-devel |
---|
[1640] | 31 | %if %{with gui} |
---|
| 32 | BuildRequires: qt4-devel, desktop-file-utils |
---|
| 33 | %define qt_gui --qt-gui |
---|
[1777] | 34 | %else |
---|
| 35 | %define qt_gui --no-qt-gui |
---|
[1640] | 36 | %endif |
---|
[521] | 37 | |
---|
| 38 | Vendor: Project Vine |
---|
| 39 | Distribution: Vine Linux |
---|
| 40 | |
---|
| 41 | %description |
---|
| 42 | CMake is used to control the software compilation process using simple |
---|
| 43 | platform and compiler independent configuration files. CMake generates |
---|
| 44 | native makefiles and workspaces that can be used in the compiler |
---|
| 45 | environment of your choice. CMake is quite sophisticated: it is possible |
---|
| 46 | to support complex environments requiring system configuration, pre-processor |
---|
| 47 | generation, code generation, and template instantiation. |
---|
| 48 | |
---|
[1640] | 49 | %package gui |
---|
| 50 | Summary: Qt GUI for %{name} |
---|
| 51 | Group: Development/Tools |
---|
| 52 | Requires: %{name} = %{version}-%{release} |
---|
| 53 | Requires(post): desktop-file-utils, shared-mime-info |
---|
| 54 | Requires(postun): desktop-file-utils, shared-mime-info |
---|
| 55 | |
---|
| 56 | %description gui |
---|
| 57 | The %{name}-gui package contains the Qt based GUI for CMake. |
---|
| 58 | |
---|
| 59 | |
---|
[521] | 60 | %prep |
---|
| 61 | %setup -q |
---|
[5159] | 62 | |
---|
[1640] | 63 | # Fixup permissions |
---|
[5159] | 64 | #find -name \*.h -o -name \*.cxx -print0 | xargs -0 chmod -x |
---|
[521] | 65 | |
---|
[7639] | 66 | #fix desktop file warning |
---|
| 67 | sed -i 's:\(Icon=\)\(CMakeSetup32.png\):\1/usr/share/pixmaps/\2:' Source/QtDialog/CMake.desktop |
---|
| 68 | |
---|
[521] | 69 | %build |
---|
[1777] | 70 | ./bootstrap \ |
---|
| 71 | --prefix=%{_prefix} \ |
---|
| 72 | --datadir=/share/%{name} \ |
---|
| 73 | --mandir=/share/man \ |
---|
[5159] | 74 | --%{?with_bootstrap:no-}system-libs \ |
---|
[1777] | 75 | %{?qt_gui} |
---|
| 76 | |
---|
[5159] | 77 | sed -i 's/-lcurses/-lcurses -ltinfo/' Source/CMakeFiles/ccmake.dir/link.txt |
---|
[2604] | 78 | %if %{?_dist_release} == "vl5" |
---|
| 79 | sed -i 's/HAVE_SYS_WAIT_H:INTERNAL=/HAVE_SYS_WAIT_H:INTERNAL=1/' CMakeCache.txt |
---|
| 80 | %endif |
---|
| 81 | |
---|
[1640] | 82 | make VERBOSE=1 %{?_smp_mflags} |
---|
[521] | 83 | |
---|
| 84 | %install |
---|
| 85 | rm -rf $RPM_BUILD_ROOT |
---|
[1640] | 86 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
[521] | 87 | |
---|
[1640] | 88 | find $RPM_BUILD_ROOT/%{_datadir}/%{name}/Modules -type f | xargs chmod -x |
---|
[521] | 89 | rm -rf $RPM_BUILD_ROOT/usr/doc |
---|
| 90 | |
---|
| 91 | # RPM macros |
---|
| 92 | install -p -m0644 -D %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.cmake |
---|
| 93 | sed -i -e "s|@@CMAKE_VERSION@@|%{version}|" $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.cmake |
---|
| 94 | touch -r %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.cmake |
---|
| 95 | |
---|
[1640] | 96 | %if %{with gui} |
---|
| 97 | # Desktop file |
---|
| 98 | desktop-file-install --delete-original \ |
---|
| 99 | --dir=$RPM_BUILD_ROOT%{_datadir}/applications \ |
---|
| 100 | $RPM_BUILD_ROOT/%{_datadir}/applications/CMake.desktop |
---|
| 101 | %endif |
---|
| 102 | |
---|
| 103 | |
---|
[521] | 104 | %clean |
---|
| 105 | rm -rf $RPM_BUILD_ROOT |
---|
| 106 | |
---|
[1640] | 107 | %if %{with gui} |
---|
| 108 | %post gui |
---|
| 109 | update-desktop-database &> /dev/null || : |
---|
| 110 | update-mime-database %{_datadir}/mime &> /dev/null || : |
---|
| 111 | |
---|
| 112 | %postun gui |
---|
| 113 | update-desktop-database &> /dev/null || : |
---|
| 114 | update-mime-database %{_datadir}/mime &> /dev/null || : |
---|
| 115 | %endif |
---|
| 116 | |
---|
| 117 | |
---|
[521] | 118 | %files |
---|
| 119 | %defattr(-,root,root) |
---|
| 120 | %doc CMakeLogo.gif ChangeLog.* Copyright.txt |
---|
| 121 | %doc Docs/* |
---|
| 122 | %doc Example/ |
---|
| 123 | %config(noreplace) %{_sysconfdir}/rpm/macros.cmake |
---|
[1640] | 124 | %{_bindir}/ccmake |
---|
| 125 | %{_bindir}/cmake |
---|
| 126 | %{_bindir}/cpack |
---|
| 127 | %{_bindir}/ctest |
---|
| 128 | %{_datadir}/%{name}/ |
---|
[5159] | 129 | %{_datadir}/aclocal/cmake.m4 |
---|
[521] | 130 | |
---|
[1640] | 131 | %if %{with gui} |
---|
| 132 | %files gui |
---|
| 133 | %defattr(-,root,root,-) |
---|
| 134 | %{_bindir}/cmake-gui |
---|
| 135 | %{_datadir}/applications/CMake.desktop |
---|
| 136 | %{_datadir}/mime/packages/cmakecache.xml |
---|
[10245] | 137 | %{_datadir}/icons/hicolor/*/*/* |
---|
[1640] | 138 | %endif |
---|
| 139 | |
---|
| 140 | |
---|
[521] | 141 | %changelog |
---|
[10439] | 142 | * Thu Jun 30 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.5.2-2 |
---|
| 143 | - rebuild with gcc-5.4.0 |
---|
| 144 | |
---|
[10245] | 145 | * Sat May 07 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.5.2-1 |
---|
| 146 | - update to 3.5.2 |
---|
| 147 | - add BuildRequires: xz-devel, jsoncpp-devel |
---|
| 148 | - remove old patches |
---|
| 149 | |
---|
[9748] | 150 | * Sat Sep 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.12.2-1 |
---|
| 151 | - update to 2.8.12.2 |
---|
[10245] | 152 | |
---|
| 153 | * Sat Sep 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.12.2-1 |
---|
| 154 | - update to 2.8.12.2 |
---|
[9748] | 155 | - add Patch2 (cmake-2.8.12.2-ruby-2.2.x.patch) |
---|
| 156 | |
---|
[8758] | 157 | * Sun Jul 06 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.12.1-2 |
---|
| 158 | - rebuild with libarchive-3.1.2 |
---|
| 159 | |
---|
[8056] | 160 | * Mon Dec 23 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.12.1-1 |
---|
| 161 | - new upstream release |
---|
| 162 | - add Patch1 (cmake-2.8.12.1-FindFreetype.patch) |
---|
| 163 | |
---|
[7728] | 164 | * Sun Jul 07 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.11.2-1 |
---|
| 165 | - new upstream release |
---|
| 166 | |
---|
[7712] | 167 | * Wed Jun 05 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.11-1 |
---|
| 168 | - new upstream release |
---|
| 169 | |
---|
[7639] | 170 | * Mon Apr 29 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.10.2-1 |
---|
| 171 | - new upstream release |
---|
| 172 | - fixed desktop file warning |
---|
| 173 | |
---|
[6304] | 174 | * Sun Jun 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.6-2 |
---|
[6305] | 175 | - rebuild with libarchive-3.0.4 |
---|
[6304] | 176 | |
---|
[5159] | 177 | * Sat Nov 19 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.6-1 |
---|
| 178 | - new upstream release |
---|
| 179 | - forced to link with libtinfo.so (ccmake) |
---|
| 180 | - used --system-libs again |
---|
| 181 | |
---|
[2604] | 182 | * Sat Jan 8 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.3-1 |
---|
| 183 | - new upstream release |
---|
| 184 | - used --no-system-libs, removed BR: curl-devel, expat-devel, zlib-devel |
---|
| 185 | |
---|
[1777] | 186 | * Sun Sep 5 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.2-4 |
---|
| 187 | - fixed typo (not --with-system-libs, but --system-libs) |
---|
| 188 | - added BR: curl-devel, expat-devel, zlib-devel |
---|
| 189 | |
---|
[1643] | 190 | * Mon Aug 23 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.2-3 |
---|
| 191 | - add BuildRequires: ncurses-devel |
---|
| 192 | |
---|
[1640] | 193 | * Sun Aug 22 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.2-2 |
---|
| 194 | - generate gui package |
---|
| 195 | - renamed module directory |
---|
| 196 | |
---|
[1442] | 197 | * Sun Jul 25 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.2-1 |
---|
| 198 | - new upstream release |
---|
| 199 | |
---|
[521] | 200 | * Fri Feb 05 2010 Shu KONNO <owa@bg.wakwak.com> 2.6.4-3 |
---|
| 201 | - rebuilt with new toolchain |
---|
| 202 | |
---|
| 203 | * Sun Aug 30 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.6.4-2 |
---|
| 204 | - imported RPM macros from Fedora (cmake-2.6.4-3.fc12) |
---|
| 205 | |
---|
| 206 | * Tue Aug 25 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.6.4-1 |
---|
| 207 | - new upstream release |
---|
| 208 | - added Vendor/Distribution tag |
---|
| 209 | |
---|
| 210 | * Wed Mar 25 2009 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.6.3-1 |
---|
| 211 | - new upstream release |
---|
| 212 | |
---|
| 213 | * Tue Oct 21 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.6.2-1 |
---|
| 214 | - new upstream release |
---|
| 215 | |
---|
| 216 | * Sat Mar 29 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.4.8-1 |
---|
| 217 | - new upstream release |
---|
| 218 | |
---|
| 219 | * Wed Aug 15 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.4.7-0vl1 |
---|
| 220 | - new upstream release |
---|
| 221 | |
---|
| 222 | * Mon May 14 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.4.6-0vl1 |
---|
| 223 | - new upstream release |
---|
| 224 | - drop Patch100 |
---|
| 225 | - use bootstrap script instead of configure |
---|
| 226 | - delete caches from %%doc |
---|
| 227 | |
---|
| 228 | * Sat May 12 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.4.3-0vl2 |
---|
| 229 | - rebuilt with new toolchain |
---|
| 230 | |
---|
| 231 | * Tue Oct 31 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.4.3-0vl1 |
---|
| 232 | - new upstream release |
---|
| 233 | - delete duped docs |
---|
| 234 | |
---|
| 235 | * Fri Oct 13 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.2.3-0vl2 |
---|
| 236 | - added Patch100 (especially for ppc to solve ppc/powerpc issue) |
---|
| 237 | |
---|
| 238 | * Mon Feb 06 2006 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 2.2.3-0vl1 |
---|
| 239 | - source version up |
---|
| 240 | |
---|
| 241 | * Sun Mar 20 2005 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 2.0.5-0vl1 |
---|
| 242 | - initial build for Vine Linux |
---|