Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:rhabacker:linkedprojecttest
mingw32-llvm13
mingw32-llvm13.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mingw32-llvm13.spec of Package mingw32-llvm13
# # spec file for package mingw32-llvm13 # # Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define _tagver 13.0.1 %define _sonum 13 %define _soclang 13 %define _name llvm%{_soclang} Name: mingw32-%{_name} Version: %{_tagver}.1 Release: 6 Summary: Low Level Virtual Machine License: Apache-2.0 WITH LLVM-exception AND NCSA Group: Development/Languages/Other URL: https://www.llvm.org/ # NOTE: please see README.packaging in the llvm package for details on how to update this package Source: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{_tagver}/llvm-%{_tagver}.src.tar.xz Source2: mingw32-llvm13-rpmlintrc Patch0: llvm-13.0.1-fix-mingw-soversion-support.patch Patch1: llvm-13.0.1-tumbleweed-build-fix.patch # native tools BuildRequires: gcc-c++ BuildRequires: libxml2-devel BuildRequires: mingw32-cross-filesystem BuildRequires: pkgconfig(zlib) BuildRequires: mingw32-cross-cmake BuildRequires: mingw32-cross-gcc-c++ BuildRequires: mingw32-libxml2-devel BuildRequires: mingw32(pkg:zlib) %_mingw32_package_header_debug ExcludeArch: aarch64 ExcludeArch: ppc64le ExcludeArch: i586 %description LLVM is a compiler infrastructure designed for compile-time, link-time, runtime, and idle-time optimization of programs from arbitrary programming languages. The compiler infrastructure includes mirror sets of programming tools as well as libraries with equivalent functionality. %package -n mingw32-libLLVM%{_sonum} Summary: Libraries for LLVM Group: System/Libraries BuildArch: noarch %description -n mingw32-libLLVM%{_sonum} This package contains the shared libraries needed for LLVM. %package -n mingw32-llvm%{_sonum}-devel Summary: Header Files for LLVM Group: Development/Libraries/C and C++ Requires: mingw32-cross-llvm%{_sonum}-tools = %{version} Requires: %{name} = %{version} %if %{with openmp} # Referenced by LLVMExports.cmake Requires: mingw32-libomp%{_sonum}-devel %endif Requires: mingw32-libLLVM%{_sonum} = %{version} Requires: mingw32-libLTO%{_sonum} = %{version} # provided by mingw32-gcc-c++ yet #Requires: mingw32-libstdc++6-devel Requires: libtool #Requires: mingw32-llvm%%{_sonum}-gold %if %{with polly} # Referenced by LLVMExports.cmake Requires: mingw32-llvm%{_sonum}-polly-devel %endif #Requires: pkgconfig Conflicts: mingw32-llvm-devel-provider < %{version} #Conflicts: cmake(LLVM) # libLTO.so used to be a separate package. #Conflicts: mingw32-libLTO%%{_sonum} < %%{version} #Provides: libLTO.so = %%{version} Obsoletes: mingw32-llvm%{_sonum}-LTO-devel < %{version} Provides: mingw32-llvm%{_sonum}-LTO-devel = %{version} Provides: mingw32-llvm-devel-provider = %{version} Provides: mingw32-llvm-devel = %{version} %if %{with ffi} Requires: mingw32(pkg:libffi) %endif %if %{with oprofile} Requires: mingw32-oprofile-devel %endif BuildArch: noarch %description -n mingw32-llvm%{_sonum}-devel This package contains library and header files needed to develop new native programs that use the LLVM infrastructure. %package -n mingw32-libLTO%{_sonum} Summary: Link-time optimizer for LLVM Group: System/Libraries BuildArch: noarch %description -n mingw32-libLTO%{_sonum} This package contains the link-time optimizer for LLVM. %package -n mingw32-cross-llvm%{_sonum}-tools Summary: Tools for LLVM Group: Development/Languages/C and C++ %description -n mingw32-cross-llvm%{_sonum}-tools Tools for cross building llvm/clang %_mingw32_debug_package %prep %autosetup -p1 -n llvm-%{_tagver}.src %build %_mingw32_cmake \ -DCLANG_ENABLE_ARCMT:BOOL=OFF \ -DCLANG_ENABLE_STATIC_ANALYZER:BOOL=OFF \ -DCMAKE_DLL_NAME_WITH_SOVERSION=1 \ -DCOMPILER_RT_BUILD_SANITIZERS:BOOL=OFF \ -DCOMPILER_RT_BUILD_XRAY:BOOL=OFF \ -DCOMPILER_RT_USE_LIBCXX:BOOL=OFF \ -DENABLE_LINKER_BUILD_ID=ON \ -DHAVE_STEADY_CLOCK_EXITCODE=0 \ -DLIBCXX_INCLUDE_BENCHMARKS:BOOL=OFF \ -DLLVM_BUILD_EXAMPLES:BOOL=OFF \ -DLLVM_BUILD_LLVM_DYLIB:BOOL=OFF \ -DLLVM_BUILD_RUNTIME:BOOL=OFF \ -DLLVM_BUILD_UTILS:BOOL=OFF \ -DLLVM_INCLUDE_BENCHMARKS:BOOL=OFF \ -DLLVM_INCLUDE_TESTS:BOOL=OFF \ -DLLVM_LINK_LLVM_DYLIB:BOOL=OFF \ -DLLVM_PARALLEL_COMPILE_JOBS="$max_compile_jobs" \ -DLLVM_PARALLEL_LINK_JOBS="$max_link_jobs" \ -DLLVM_TARGETS_TO_BUILD=Native \ -DLLVM_TOOL_CLANG_TOOLS_EXTRA_BUILD:BOOL=OFF \ -DPACKAGE_VERSION=%{version} \ -DRUN_HAVE_STEADY_CLOCK=0 \ -Dexternal_project_source_dirs="-DCMAKE_C_COMPILER=gcc;-DCMAKE_CXX_COMPILER=g++" \ %_mingw32_cmake_build %install %_mingw32_cmake_install # install native tools used by clang package mkdir -p %{buildroot}%{_prefix}/%{_mingw32_target}/bin mkdir -p %{buildroot}%{_bindir}/ cp build/NATIVE/bin/llvm-tblgen %{buildroot}%{_prefix}/%{_mingw32_target}/bin ln -s ../%{_mingw32_target}/bin/llvm-tblgen %{buildroot}%{_bindir}/%{_mingw32_target}-llvm-tblgen cp build/bin/llvm-tblgen.exe %{buildroot}%{_mingw32_bindir} # fix mingw32-llvm13-devel.noarch: E: env-script-interpreter sed -i 's,/usr/bin/env ,/usr/bin/,g' %{buildroot}%{_mingw32_datadir}/opt-viewer/*.py # mingw32-llvm13-devel.noarch: W: script-without-shebang /usr/i686-w64-mingw32/sys-root/mingw/share/opt-viewer/optpmap.py chmod a-x %{buildroot}%{_mingw32_datadir}/opt-viewer/optpmap.py chmod a-x %{buildroot}%{_mingw32_datadir}/opt-viewer/style.css %files -n mingw32-llvm%{_sonum} %license CREDITS.TXT LICENSE.TXT %{_mingw32_bindir}/bugpoint.exe %{_mingw32_bindir}/dsymutil.exe %{_mingw32_bindir}/llc.exe %{_mingw32_bindir}/lli.exe %{_mingw32_bindir}/llvm-addr2line.exe %{_mingw32_bindir}/llvm-ar.exe %{_mingw32_bindir}/llvm-as.exe %{_mingw32_bindir}/llvm-bcanalyzer.exe %{_mingw32_bindir}/llvm-bitcode-strip.exe %{_mingw32_bindir}/llvm-c-test.exe %{_mingw32_bindir}/llvm-cat.exe %{_mingw32_bindir}/llvm-cfi-verify.exe %{_mingw32_bindir}/llvm-config.exe %{_mingw32_bindir}/llvm-cov.exe %{_mingw32_bindir}/llvm-cvtres.exe %{_mingw32_bindir}/llvm-cxxdump.exe %{_mingw32_bindir}/llvm-cxxfilt.exe %{_mingw32_bindir}/llvm-cxxmap.exe %{_mingw32_bindir}/llvm-diff.exe %{_mingw32_bindir}/llvm-dis.exe %{_mingw32_bindir}/llvm-dlltool.exe %{_mingw32_bindir}/llvm-dwarfdump.exe %{_mingw32_bindir}/llvm-dwp.exe %{_mingw32_bindir}/llvm-exegesis.exe %{_mingw32_bindir}/llvm-extract.exe %{_mingw32_bindir}/llvm-gsymutil.exe %{_mingw32_bindir}/llvm-ifs.exe %{_mingw32_bindir}/llvm-install-name-tool.exe %{_mingw32_bindir}/llvm-jitlink.exe %{_mingw32_bindir}/llvm-lib.exe %{_mingw32_bindir}/llvm-libtool-darwin.exe %{_mingw32_bindir}/llvm-link.exe %{_mingw32_bindir}/llvm-lipo.exe %{_mingw32_bindir}/llvm-lto.exe %{_mingw32_bindir}/llvm-lto2.exe %{_mingw32_bindir}/llvm-mc.exe %{_mingw32_bindir}/llvm-mca.exe %{_mingw32_bindir}/llvm-ml.exe %{_mingw32_bindir}/llvm-modextract.exe %{_mingw32_bindir}/llvm-mt.exe %{_mingw32_bindir}/llvm-nm.exe %{_mingw32_bindir}/llvm-objcopy.exe %{_mingw32_bindir}/llvm-objdump.exe %{_mingw32_bindir}/llvm-opt-report.exe %{_mingw32_bindir}/llvm-otool.exe %{_mingw32_bindir}/llvm-pdbutil.exe %{_mingw32_bindir}/llvm-profdata.exe %{_mingw32_bindir}/llvm-profgen.exe %{_mingw32_bindir}/llvm-ranlib.exe %{_mingw32_bindir}/llvm-rc.exe %{_mingw32_bindir}/llvm-readelf.exe %{_mingw32_bindir}/llvm-readobj.exe %{_mingw32_bindir}/llvm-reduce.exe %{_mingw32_bindir}/llvm-rtdyld.exe %{_mingw32_bindir}/llvm-sim.exe %{_mingw32_bindir}/llvm-size.exe %{_mingw32_bindir}/llvm-split.exe %{_mingw32_bindir}/llvm-stress.exe %{_mingw32_bindir}/llvm-strings.exe %{_mingw32_bindir}/llvm-strip.exe %{_mingw32_bindir}/llvm-symbolizer.exe %{_mingw32_bindir}/llvm-tapi-diff.exe %{_mingw32_bindir}/llvm-undname.exe %{_mingw32_bindir}/llvm-windres.exe %{_mingw32_bindir}/llvm-xray.exe %{_mingw32_bindir}/opt.exe %{_mingw32_bindir}/sancov.exe %{_mingw32_bindir}/sanstats.exe %{_mingw32_bindir}/split-file.exe %{_mingw32_bindir}/verify-uselistorder.exe %files -n mingw32-libLLVM%{_sonum} %license CREDITS.TXT LICENSE.TXT %{_mingw32_bindir}/libLLVM*.dll %{_mingw32_bindir}/libRemarks*.dll %files -n mingw32-libLTO%{_sonum} %license CREDITS.TXT LICENSE.TXT %{_mingw32_bindir}/libLTO*.dll %files -n mingw32-llvm%{_sonum}-devel %license CREDITS.TXT LICENSE.TXT %{_mingw32_bindir}/llvm-tblgen.exe %{_mingw32_datadir}/opt-viewer %{_mingw32_includedir}/llvm %{_mingw32_includedir}/llvm-c %{_mingw32_libdir}/cmake/llvm %{_mingw32_libdir}/libLLVM*.dll.a %{_mingw32_libdir}/libRemarks*.dll.a %{_mingw32_libdir}/libLTO*.dll.a %files -n mingw32-cross-llvm%{_sonum}-tools %license CREDITS.TXT LICENSE.TXT %{_prefix}/%{_mingw32_target}/bin/llvm-tblgen %{_bindir}/%{_mingw32_target}-llvm-tblgen
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor