Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:VortexOBS
vortex-2022-04-mingw32-pdfium
vortex-mingw32-pdfium.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File vortex-mingw32-pdfium.spec of Package vortex-2022-04-mingw32-pdfium
# MinGW header %{?mingw_package_header} # build 32-bit only %global mingw_build_win64 0 # bundle name %define bundle_name 2022-04 %define archive_file pdfium.tar.xz %define archive_dir pdfium # upstream version %global major_version 2023 %global minor_version 6 %global patch_version 3 %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-pdfium Summary: PDF rendering library URL: https://pdfium.googlesource.com/pdfium License: Apache 2.0 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: vortex-%{bundle_name}-mingw32-qt6-qtbase BuildRequires: vortex-%{bundle_name}-mingw32-abseil-cpp BuildRequires: mingw32-2022-filesystem >= 110 BuildRequires: mingw32-2022-binutils BuildRequires: mingw32-2022-headers BuildRequires: mingw32-2022-gcc-c++ BuildRequires: mingw32-2022-zlib BuildRequires: mingw32-2022-zlib-static # ======================= # Source code and patches # ======================= Source0: %{archive_file} # ========================================== # Descriptions, and metadata for subpackages # ========================================== %description PDF rendering library # ====================================================== # 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_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=%{install_dir} \ -Dabsl_DIR=%{install_dir}/lib/cmake/absl \ -DFREETYPE_INCLUDE_DIRS=%{install_dir}/include/QtFreetype \ -DFREETYPE_LIBRARY=%{install_dir}/lib/libQt6BundledFreetype.a \ -DJPEG_INCLUDE_DIR=%{install_dir}/include/QtJpeg \ -DJPEG_LIBRARY=%{install_dir}/lib/libQt6BundledLibjpeg.a \ -DPNG_PNG_INCLUDE_DIR=%{install_dir}/include/QtPng \ -DPNG_LIBRARY=%{install_dir}/lib/libQt6BundledLibpng.a \ .. 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 . %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