Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:VortexOBS
vortex-2022-04-mingw32-abseil-cpp
vortex-mingw-abseil-cpp.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File vortex-mingw-abseil-cpp.spec of Package vortex-2022-04-mingw32-abseil-cpp
# MinGW header %{?mingw_package_header} # build 32-bit only %global mingw_build_win64 0 # bundle name %define bundle_name 2022-04 %define archive_file abseil-cpp.tgz %define archive_dir abseil-cpp # upstream version %global major_version 2023 %global minor_version 5 %global patch_version 31 %global arch_triplet %(/vortex/mingw-2022/usr/bin/i686-w64-mingw32-gcc -dumpmachine) %global install_dir /vortex/%{arch_triplet}/%{bundle_name} %global host_arch_triplet %(gcc -dumpmachine) %global host_install_dir /vortex/%{host_arch_triplet}/%{bundle_name} %global debug_package %{nil} # ================= IT SHOULD NOT BE NECESSARY TO MAKE CHANGES BELOW ============================== # ================== # Top-level metadata # ================== Name: vortex-%{bundle_name}-mingw32-abseil-cpp Summary: Abseil Common C++ libraries URL: https://github.com/abseil/abseil-cpp License: LGPL Version: %{major_version}.%{minor_version}.%{patch_version} # release number will be determined by OBS Release: 0.0 # ======================= # Build-time requirements # ======================= BuildRequires: gcc-c++ BuildRequires: vortex-devel-cmake BuildRequires: mingw32-2022-filesystem >= 110 BuildRequires: mingw32-2022-binutils BuildRequires: mingw32-2022-headers BuildRequires: mingw32-2022-gcc-c++ # ======================= # Source code and patches # ======================= Source0: %{archive_file} # ========================================== # Descriptions, and metadata for subpackages # ========================================== %description Abseil Common C++ libraries # ====================================================== # The prep phase of the build: # ====================================================== %prep cd %{_topdir}/BUILD %setup -n %{archive_dir} # ====================================================== # Configuring and building the code: # ====================================================== %build # PATH for mingw cross-compiler PATH=/vortex/mingw-2022/usr/bin:$PATH # PATH for cmake >= 3.16 PATH=/vortex/%{host_arch_triplet}/devel/bin:$PATH mkdir build-windows pushd build-windows cmake \ -DCMAKE_TOOLCHAIN_FILE=/vortex/mingw-2022/usr/share/mingw/toolchain-mingw32.cmake \ -DCMAKE_CXX_STANDARD=17 \ -DABSL_PROPAGATE_CXX_STD=ON \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=%{install_dir} \ -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ -DABSL_PROPAGATE_CXX_STD=ON \ .. cmake --build . --parallel popd # ====================================================== # Installing the built code: # ====================================================== %install PATH=/vortex/mingw-2022/usr/bin:$PATH PATH=/vortex/%{host_arch_triplet}/devel/bin:$PATH rm -rf $RPM_BUILD_ROOT cd build-windows DESTDIR=%{buildroot} cmake --install . #rm -r $RPM_BUILD_ROOT%{install_dir}/lib64/pkgconfig %files %{install_dir}
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