Эх сурвалжийг харах

cmake-3.10.1-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11306 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 7 жил өмнө
parent
commit
d2e45277ae
1 өөрчлөгдсөн 34 нэмэгдсэн , 18 устгасан
  1. 34 18
      c/cmake/cmake-vl.spec

+ 34 - 18
c/cmake/cmake-vl.spec

@@ -2,19 +2,22 @@
 # or architecture
 # or architecture
 %bcond_with bootstrap
 %bcond_with bootstrap
 # Set to bcond_with or use --without gui to disable qt4 gui build
 # Set to bcond_with or use --without gui to disable qt4 gui build
-%bcond_without gui
+%bcond_with gui
+
+%global major_version 3
+%global minor_version 10
 
 
 Name: cmake
 Name: cmake
 Summary: Cross-platform make system
 Summary: Cross-platform make system
 Summary(ja): クロスプラットフォームな Make システム
 Summary(ja): クロスプラットフォームな Make システム
-Version: 3.5.2
-Release: 2%{?_dist_release}
+Version: 3.10.1
+Release: 1%{?_dist_release}
 
 
 Group: Development/Tools
 Group: Development/Tools
 License: BSD
 License: BSD
 URL: http://www.cmake.org/
 URL: http://www.cmake.org/
 
 
-Source0: http://www.cmake.org/files/v3.5/%{name}-%{version}.tar.gz
+Source0: http://www.cmake.org/files/v3.10/%{name}-%{version}.tar.gz
 Source1: macros.cmake
 Source1: macros.cmake
 
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
@@ -60,24 +63,30 @@ The %{name}-gui package contains the Qt based GUI for CMake.
 %prep
 %prep
 %setup -q
 %setup -q
 
 
-# Fixup permissions
-#find -name \*.h -o -name \*.cxx -print0 | xargs -0 chmod -x
-
-#fix desktop file warning
-sed -i 's:\(Icon=\)\(CMakeSetup32.png\):\1/usr/share/pixmaps/\2:' Source/QtDialog/CMake.desktop 
 
 
 %build
 %build
 ./bootstrap \
 ./bootstrap \
     --prefix=%{_prefix} \
     --prefix=%{_prefix} \
     --datadir=/share/%{name} \
     --datadir=/share/%{name} \
+    --docdir=/share/doc/%{name} \
     --mandir=/share/man \
     --mandir=/share/man \
-    --%{?with_bootstrap:no-}system-libs \
-    %{?qt_gui}
+%if 0%{?with_bootstrap}
+    --no-system-libs \
+%else
+    --system-curl \
+    --system-expat \
+    --system-jsoncpp \
+    --system-zlib \
+    --system-bzip2 \
+    --system-liblzma \
+    --system-libarchive \
+    --no-system-librhash \
+%endif
+    --parallel=`/usr/bin/getconf _NPROCESSORS_ONLN` \
+    %{?qt_gui} \
+    -- -DCMAKE_USE_SYSTEM_LIBUV=OFF
 
 
 sed -i 's/-lcurses/-lcurses -ltinfo/' Source/CMakeFiles/ccmake.dir/link.txt
 sed -i 's/-lcurses/-lcurses -ltinfo/' Source/CMakeFiles/ccmake.dir/link.txt
-%if %{?_dist_release} == "vl5"
-sed -i 's/HAVE_SYS_WAIT_H:INTERNAL=/HAVE_SYS_WAIT_H:INTERNAL=1/' CMakeCache.txt
-%endif
 
 
 make VERBOSE=1 %{?_smp_mflags}
 make VERBOSE=1 %{?_smp_mflags}
 
 
@@ -90,7 +99,7 @@ rm -rf $RPM_BUILD_ROOT/usr/doc
 
 
 # RPM macros
 # RPM macros
 install -p -m0644 -D %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.cmake
 install -p -m0644 -D %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.cmake
-sed -i -e "s|@@CMAKE_VERSION@@|%{version}|" $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.cmake
+sed -i -e "s|@@CMAKE_MAJOR_VERSION@@|%{major_version}|" $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.cmake
 touch -r %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.cmake
 touch -r %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.cmake
 
 
 %if %{with gui}
 %if %{with gui}
@@ -100,6 +109,8 @@ desktop-file-install --delete-original \
   $RPM_BUILD_ROOT/%{_datadir}/applications/CMake.desktop
   $RPM_BUILD_ROOT/%{_datadir}/applications/CMake.desktop
 %endif
 %endif
 
 
+rm -rf doc
+mv -f %{buildroot}%{_docdir}/%{name} ./doc
 
 
 %clean
 %clean
 rm -rf $RPM_BUILD_ROOT
 rm -rf $RPM_BUILD_ROOT
@@ -117,9 +128,9 @@ update-mime-database %{_datadir}/mime &> /dev/null || :
 
 
 %files
 %files
 %defattr(-,root,root)
 %defattr(-,root,root)
-%doc CMakeLogo.gif ChangeLog.* Copyright.txt
-%doc Docs/*
-%doc Example/
+%doc CMakeLogo.gif README.* doc
+%doc Help
+%doc Licenses
 %config(noreplace) %{_sysconfdir}/rpm/macros.cmake
 %config(noreplace) %{_sysconfdir}/rpm/macros.cmake
 %{_bindir}/ccmake
 %{_bindir}/ccmake
 %{_bindir}/cmake
 %{_bindir}/cmake
@@ -139,6 +150,11 @@ update-mime-database %{_datadir}/mime &> /dev/null || :
 
 
 
 
 %changelog
 %changelog
+* Mon Jan 01 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.10.1-1
+- updated to 3.10.1.
+- updated macros.cmake.
+- disabled gui.
+
 * Thu Jun 30 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.5.2-2
 * Thu Jun 30 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.5.2-2
 - rebuild with gcc-5.4.0
 - rebuild with gcc-5.4.0