Projects
home:pandora:RobinOS23
cmake
_service:download_src_package:cmake.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:cmake.spec of Package cmake
%bcond_with bootstrap %bcond_without emacs %bcond_without git_test %bcond_without gui %bcond_without ncurses %bcond_without sphinx %bcond_without bundled_jsoncpp %bcond_without bundled_rhash %bcond_without test %bcond_without X11_test %global optflags %(echo '%{optflags}' | sed -e 's!-ffat-lto-objects!-fno-fat-lto-objects!g') %global rpm_macros_dir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d) %{!?_pkgdocdir:%global _pkgdocdir %{_docdir}/%{name}-%{version}} %{!?_vpath_builddir:%global _vpath_builddir %{_target_platform}} %global major_version 3 %global minor_version 22 Name: cmake Version: 3.22.3 Release: 1%{?dist} Summary: Cross-platform make system License: BSD and MIT and zlib URL: http://www.cmake.org Source0: http://www.cmake.org/files/v%{major_version}.%{minor_version}/%{name}-%{version}.tar.gz Source1: %{name}-init.el Source2: macros.%{name} Source3: %{name}.attr Source4: %{name}.prov Source5: %{name}.req Patch100: %{name}-findruby.patch Patch102: %{name}-mingw-dl.patch BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc-c++ BuildRequires: gcc-gfortran BuildRequires: sed %if %{with git_test} BuildRequires: git %else BuildConflicts: git-core %endif %if %{with X11_test} BuildRequires: libX11-devel %endif %if %{with ncurses} BuildRequires: ncurses-devel %endif %if %{with sphinx} BuildRequires: %{_bindir}/sphinx-build %endif %if %{without bootstrap} BuildRequires: bzip2-devel BuildRequires: curl-devel BuildRequires: expat-devel %if %{with bundled_jsoncpp} Provides: bundled(jsoncpp) %else BuildRequires: jsoncpp-devel %endif BuildRequires: libarchive-devel BuildRequires: libuv-devel %if %{with bundled_rhash} Provides: bundled(rhash) %else BuildRequires: rhash-devel %endif BuildRequires: xz-devel BuildRequires: zlib-devel BuildRequires: vim-filesystem %endif %if %{with emacs} BuildRequires: emacs %endif BuildRequires: openssl-devel %{!?python3_pkgversion: %global python3_pkgversion 3} BuildRequires: python%{python3_pkgversion}-devel %if %{with gui} BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: desktop-file-utils %endif BuildRequires: pkgconfig(bash-completion) %global bash_completionsdir %(pkg-config --variable=completionsdir bash-completion 2>/dev/null || echo '%{_datadir}/bash-completion/completions') %if %{without bootstrap} BuildRequires: %{name}-rpm-macros %endif BuildRequires: make Requires: %{name}-data = %{version}-%{release} Requires: %{name}-rpm-macros = %{version}-%{release} Requires: %{name}-filesystem%{?_isa} = %{version}-%{release} Requires: make Provides: %{name}%{major_version} = %{version}-%{release} Provides: bundled(md5-deutsch) Provides: bundled(kwsys) %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, preprocessor generation, code generation, and template instantiation. %package data Summary: Common data-files for %{name} Requires: %{name} = %{version}-%{release} Requires: %{name}-filesystem = %{version}-%{release} Requires: %{name}-rpm-macros = %{version}-%{release} %if %{with emacs} Requires: emacs-filesystem%{?_emacs_version: >= %{_emacs_version}} %endif Requires: vim-filesystem BuildArch: noarch %description data This package contains common data-files for %{name}. %package doc Summary: Documentation for %{name} BuildArch: noarch %description doc This package contains documentation for %{name}. %package filesystem Summary: Directories used by CMake modules %description filesystem This package owns all directories used by CMake modules. %if %{with gui} %package gui Summary: Qt GUI for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: hicolor-icon-theme Requires: shared-mime-info%{?_isa} %description gui The %{name}-gui package contains the Qt based GUI for %{name}. %endif %package rpm-macros Summary: Common RPM macros for %{name} Requires: rpm BuildArch: noarch %description rpm-macros This package contains common RPM macros for %{name}. %prep %autosetup -n %{name}-%{version} -p 1 echo '#!%{__python3}' > %{name}.prov echo '#!%{__python3}' > %{name}.req tail -n +2 %{SOURCE4} >> %{name}.prov tail -n +2 %{SOURCE5} >> %{name}.req %build %if 0%{?set_build_flags:1} %{set_build_flags} %else CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS FFLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FFLAGS FCFLAGS="${FCFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FCFLAGS %{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags}" ; export LDFLAGS ;} %endif SRCDIR="$(/usr/bin/pwd)" mkdir %{_vpath_builddir} pushd %{_vpath_builddir} $SRCDIR/bootstrap --prefix=%{_prefix} \ --datadir=/share/%{name} \ --docdir=/share/doc/%{name} \ --mandir=/share/man \ --%{?with_bootstrap:no-}system-libs \ --parallel="$(echo %{?_smp_mflags} | sed -e 's|-j||g')" \ %if %{with bundled_rhash} --no-system-librhash \ %endif %if %{with bundled_jsoncpp} --no-system-jsoncpp \ %endif %if %{with sphinx} --sphinx-man --sphinx-html \ %else --sphinx-build=%{_bindir}/false \ %endif --%{!?with_gui:no-}qt-gui \ -- \ -DCMAKE_C_FLAGS_RELEASE:STRING="-O2 -g -DNDEBUG" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="-O2 -g -DNDEBUG" \ -DCMAKE_Fortran_FLAGS_RELEASE:STRING="-O2 -g -DNDEBUG" \ -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF popd %make_build -C %{_vpath_builddir} %install mkdir -p %{buildroot}%{_pkgdocdir} %make_install -C %{_vpath_builddir} CMAKE_DOC_DIR=%{buildroot}%{_pkgdocdir} find %{buildroot}%{_datadir}/%{name}/Modules -type f | xargs chmod -x [ -n "$(find %{buildroot}%{_datadir}/%{name}/Modules -name \*.orig)" ] && echo "Found .orig files in %{_datadir}/%{name}/Modules, rebase patches" && exit 1 %{!?name_suffix:for f in ccmake cmake cpack ctest; do ln -s $f %{buildroot}%{_bindir}/${f}%{major_version}; done} %if %{with emacs} mkdir -p %{buildroot}%{_emacs_sitelispdir}/%{name} %{buildroot}%{_emacs_sitestartdir} mv %{buildroot}%{_emacs_sitelispdir}/%{name}-mode.el %{buildroot}%{_emacs_sitelispdir}/%{name} %{_emacs_bytecompile} %{buildroot}%{_emacs_sitelispdir}/%{name}/%{name}-mode.el install -p -m 0644 %{SOURCE1} %{buildroot}%{_emacs_sitestartdir} %else rm -f %{buildroot}%{_emacs_sitelispdir} %endif install -p -m0644 -D %{SOURCE2} %{buildroot}%{rpm_macros_dir}/macros.%{name} sed -i -e "s|@@CMAKE_VERSION@@|%{version}|" -e "s|@@CMAKE_MAJOR_VERSION@@|%{major_version}|" %{buildroot}%{rpm_macros_dir}/macros.%{name} touch -r %{SOURCE2} %{buildroot}%{rpm_macros_dir}/macros.%{name} %if 0%{?_rpmconfigdir:1} install -p -m0644 -D %{SOURCE3} %{buildroot}%{_prefix}/lib/rpm/fileattrs/%{name}.attr install -p -m0755 -D %{name}.prov %{buildroot}%{_prefix}/lib/rpm/%{name}.prov install -p -m0755 -D %{name}.req %{buildroot}%{_prefix}/lib/rpm/%{name}.req %endif mkdir -p %{buildroot}%{_libdir}/%{name} find Source Utilities -type f -iname copy\* | while read f do fname=$(basename $f) dir=$(dirname $f) dname=$(basename $dir) cp -p $f ./${fname}_${dname} done %if %{with sphinx} mv %{buildroot}%{_docdir}/%{name}/html . %endif rm -rf %{buildroot}%{_docdir}/%{name} mkdir -p %{buildroot}%{_pkgdocdir} cp -pr %{buildroot}%{_datadir}/%{name}/Help %{buildroot}%{_pkgdocdir} mv %{buildroot}%{_pkgdocdir}/Help %{buildroot}%{_pkgdocdir}/rst %if %{with sphinx} mv html %{buildroot}%{_pkgdocdir} %endif %if %{with gui} desktop-file-install --delete-original \ --dir=%{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/%{name}-gui.desktop %endif find %{buildroot}%{_datadir}/%{name} -type d | \ sed -e 's!^%{buildroot}!%%dir "!g' -e 's!$!"!g' > data_dirs.mf find %{buildroot}%{_datadir}/%{name} -type f | \ sed -e 's!^%{buildroot}!"!g' -e 's!$!"!g' > data_files.mf find %{buildroot}%{_libdir}/%{name} -type d | \ sed -e 's!^%{buildroot}!%%dir "!g' -e 's!$!"!g' > lib_dirs.mf find %{buildroot}%{_libdir}/%{name} -type f | \ sed -e 's!^%{buildroot}!"!g' -e 's!$!"!g' > lib_files.mf find %{buildroot}%{_bindir} -type f -or -type l -or -xtype l | \ sed -e '/.*-gui$/d' -e '/^$/d' -e 's!^%{buildroot}!"!g' -e 's!$!"!g' >> lib_files.mf %if %{with test} %check pushd %{_vpath_builddir} NO_TEST="CTestTestUpload" NO_TEST="$NO_TEST|CustomCommand|CMakeLib.testCTestResourceAllocator" NO_TEST="$NO_TEST|CMakeLib.testCTestResourceSpec|RunCMake.PositionIndependentCode" %if %{with bootstrap} NO_TEST="$NO_TEST|curl" %endif bin/ctest%{?name_suffix} %{?_smp_mflags} -V -E "$NO_TEST" --output-on-failure popd %endif %files -f lib_files.mf %doc %dir %{_pkgdocdir} %license Copyright.txt* %license COPYING* %if %{with sphinx} %{_mandir}/man1/c%{name}.1.* %{_mandir}/man1/%{name}.1.* %{_mandir}/man1/cpack%{?name_suffix}.1.* %{_mandir}/man1/ctest%{?name_suffix}.1.* %{_mandir}/man7/*.7.* %endif %files data -f data_files.mf %{_datadir}/aclocal/%{name}.m4 %{bash_completionsdir}/c* %if %{with emacs} %{_emacs_sitelispdir}/%{name} %{_emacs_sitestartdir}/%{name}-init.el %endif %{vimfiles_root}/indent/%{name}.vim %{vimfiles_root}/syntax/%{name}.vim %files doc %{?_licensedir:%license %{_datadir}/licenses/%{name}*} %doc %{_pkgdocdir} %files filesystem -f data_dirs.mf -f lib_dirs.mf %if %{with gui} %files gui %{_bindir}/%{name}-gui %{_datadir}/applications/%{name}-gui.desktop %{_datadir}/mime/packages %{_datadir}/icons/hicolor/*/apps/CMake%{?name_suffix}Setup.png %if %{with sphinx} %{_mandir}/man1/%{name}-gui.1.* %endif %endif %files rpm-macros %{rpm_macros_dir}/macros.%{name} %if 0%{?_rpmconfigdir:1} %{_rpmconfigdir}/fileattrs/%{name}.attr %{_rpmconfigdir}/%{name}.prov %{_rpmconfigdir}/%{name}.req %endif %changelog * Wed Mar 9 2022 forrest_ly <flin@linux.alibaba.com> - 3.22.3-1 - Init for Anolis OS 23
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2