Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:rhabacker:branches:windows:mingw:win64
mingw64-occt
mingw64-occt.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mingw64-occt.spec of Package mingw64-occt
# # spec file for package mingw64-occt # # Copyright (c) 2022 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 OCCT_TAG V7_7_0 %define _doc 0 %define _name occt Name: mingw64-%{_name} Version: 7.7.0 Release: 0 %define soname 7_7 %define sover -7 Summary: OpenCASCADE Official Edition License: LGPL-2.1-only WITH OCCT-exception-1.0 Group: Productivity/Graphics/CAD URL: https://www.opencascade.com/open-cascade-technology/ # Password protected URL, factory validation will fail # https://www.opencascade.com/sites/default/files/private/occt/OCC_%%{version}_release/opencascade-%%{version}.tgz # getting it from git for patch level releases not existing as tar ball # Source0: https://github.com/Open-Cascade-SAS/OCCT/archive/refs/tags/V%%{OCCT_TAG}.tar.gz#/occt-%%{version}.tar.gz Source0: https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=refs/tags/%{OCCT_TAG};sf=tgz#/occt-%{version}.tar.gz # PATCH-FIX-UPSTREAM Patch0: https://git.dev.opencascade.org/gitweb/?p=occt.git;a=patch;h=b15892da313c8f8e47a4dbf749764105d639a0cf#/fix_missing_limits_header.patch # CMAKE-BUG https://gitlab.kitware.com/cmake/cmake/-/issues/24301 Patch1: occt-7.7.0-fix-exe-version.patch BuildRequires: bison BuildRequires: mingw64-cross-cmake BuildRequires: flex BuildRequires: mingw64-cross-gcc-c++ %if %_doc BuildRequires: doxygen BuildRequires: mingw64-mathjax %endif BuildRequires: mingw64-tcl-devel BuildRequires: mingw64-tk-devel #BuildRequires: mingw64(pkg:RapidJSON) BuildRequires: mingw64(pkg:fontconfig) BuildRequires: mingw64(pkg:freetype2) BuildRequires: mingw64-libqt5-libangle-devel #BuildRequires: mingw64(pkg:egl) # BuildRequires: pkgconfig(xext) # BuildRequires: pkgconfig(xi) # BuildRequires: mingw64(pkg:xmu) %_mingw64_package_header_debug BuildArch: noarch %description OpenCASCADE is a suite for 3D surface and solid modeling, visualization, data exchange and rapid application development. It is an excellent platform for development of numerical simulation software including CAD/CAM/CAE, AEC and GIS, as well as PDM applications. %package resources Summary: Binary resource files for %{name} Group: System/Libraries BuildArch: noarch %description resources This package contains resource files imported from the libraries. %package devel Summary: Development files for %{name} Group: Development/Libraries/C and C++ Provides: mingw64-OpenCASCADE-devel = %{version} Requires: mingw64-libopencascade-applicationframework%{soname} = %{version} Requires: mingw64-libopencascade-dataexchange%{soname} = %{version} Requires: mingw64-libopencascade-draw%{soname} = %{version} Requires: mingw64-libopencascade-foundationclasses%{soname} = %{version} Requires: mingw64-libopencascade-modelingalgorithms%{soname} = %{version} Requires: mingw64-libopencascade-modelingdata%{soname} = %{version} Requires: mingw64-libopencascade-visualization%{soname} = %{version} Requires: mingw64-tcl-devel Requires: mingw64-tk-devel Requires: mingw64(pkg:freetype2) Requires: mingw64-libqt5-libangle-devel #Requires: mingw64(pkg:egl) #Requires: pkgconfig(xext) #Requires: mingw64(pkg:xmu) Conflicts: mingw64-oce-devel %description devel This package contains the files needed for development with OpenCASCADE. %if %_doc %package devel-doc Summary: Development files for %{name} Group: Development/Libraries/C and C++ BuildArch: noarch %description devel-doc Developer documentation for OpenCASCADE %endif %package -n mingw64-libopencascade-applicationframework%{soname} Summary: OpenCASCADE application framework libraries Group: System/Libraries %description -n mingw64-libopencascade-applicationframework%{soname} This package contains the OpenCASCADE libraries from the OpenCASCADE application framework module: TKCDF TKLCAF TKCAF TKBinL TKXmlL TKBin TKXml TKStdL TKStd TKTObj TKBinTObj TKXmlTObj %package -n mingw64-libopencascade-dataexchange%{soname} Summary: OpenCASCADE data exchange libraries Group: System/Libraries %description -n mingw64-libopencascade-dataexchange%{soname} This package contains the OpenCASCADE libraries from the OpenCASCADE data exchange module: TKVCAF TKXSBase TKSTEPBase TKSTEPAttr TKSTEP209 TKSTEP TKIGES TKXCAF TKXDEIGES TKXDESTEP TKSTL TKVRML TKXmlXCAF TKBinXCAF TKRWMesh %package -n mingw64-libopencascade-draw%{soname} Summary: OpenCASCADE Draw support libraries Group: System/Libraries Requires: %{name}-resources %description -n mingw64-libopencascade-draw%{soname} This package contains support libraries for the OpenCASCADE DRAWEXE test harness. %package -n mingw64-libopencascade-foundationclasses%{soname} Summary: OpenCASCADE foundation classes libraries Group: System/Libraries %description -n mingw64-libopencascade-foundationclasses%{soname} This package contains the OpenCASCADE libraries from the OpenCASCADE foundation classes module: TKernel TKMath %package -n mingw64-libopencascade-modelingalgorithms%{soname} Summary: OpenCASCADE modeling algorithms libraries Group: System/Libraries %description -n mingw64-libopencascade-modelingalgorithms%{soname} This package contains the OpenCASCADE libraries from the OpenCASCADE modeling module: TKGeomAlgo TKTopAlgo TKPrim TKBO TKShHealing TKBool TKHLR TKFillet TKOffset TKFeat TKMesh TKXMesh %package -n mingw64-libopencascade-modelingdata%{soname} Summary: OpenCASCADE modeling data libraries Group: System/Libraries %description -n mingw64-libopencascade-modelingdata%{soname} This package contains the OpenCASCADE libraries from the OpenCASCADE modeling module: TKG2d TKG3d TKGeomBase TKBRep %package -n mingw64-libopencascade-visualization%{soname} Summary: OpenCASCADE visualization libraries Group: System/Libraries %description -n mingw64-libopencascade-visualization%{soname} This package contains the OpenCASCADE libraries from the OpenCASCADE visualization module: TKService TKV3D TKOpenGL TKMeshVS %package DRAWEXE Summary: Development files for %{name} Group: Productivity/Graphics/CAD Conflicts: mingw64-oce-DRAWEXE %description DRAWEXE This package contains the OpenCASCADE DRAWEXE test harness executable. %_mingw64_debug_package %prep %autosetup -p1 -n occt-%{OCCT_TAG} %build %_mingw64_cmake \ -DCMAKE_POLICY_DEFAULT_CMP0083=NEW \ -DCMAKE_SHARED_LIBRARY_NAME_WITH_VERSION=1 \ -DBUILD_RELEASE_DISABLE_EXCEPTIONS:BOOL=false \ -DBUILD_SOVERSION_NUMBERS=1 \ -DUSE_RAPIDJSON:BOOL=false \ -DINSTALL_DIR=%{_mingw64_prefix} \ -DINSTALL_DIR_LAYOUT=Unix \ -DINSTALL_DIR_LIB=lib \ -DINSTALL_DIR_CMAKE=%{_mingw64_libdir}/cmake/opencascade \ -D3RDPARTY_FREETYPE_DLL_DIR=%_mingw64_bindir \ -D3RDPARTY_FREETYPE_LIBRARY=%_mingw64_libdir/libfreetype.dll.a \ -D3RDPARTY_FREETYPE_LIBRARY_RELEASE=%_mingw64_libdir/libfreetype.dll.a \ -D3RDPARTY_FREETYPE_LIBRARY_DEBUG=%_mingw64_libdir/libfreetype.dll.a \ -D3RDPARTY_FREETYPE_LIBRARY_DIR=%_mingw64_libdir \ -D3RDPARTY_TCL_DLL_DIR=%_mingw64_bindir \ -D3RDPARTY_TCL_LIBRARY_DIR=%_mingw64_libdir \ -D3RDPARTY_TCL_LIBRARY=%_mingw64_libdir/libtcl.dll.a \ -D3RDPARTY_TCL_LIBRARY_DIR=%_mingw64_libdir \ -D3RDPARTY_TK_DLL_DIR=%_mingw64_bindir \ -D3RDPARTY_TK_LIBRARY=%_mingw64_libdir/libtk.dll.a \ -D3RDPARTY_TK_LIBRARY_DIR=%_mingw64_libdir \ .. %_mingw64_cmake_build %if %_doc cd .. ./gendoc -refman -html -mathjax="%{_mingw64_datadir}/javascript/mathjax" %endif %install %_mingw64_cmake_install # fixing up broken files sed -i -e 's,'%{_mingw64_libdir}'\\${OCCT_INSTALL_BIN_LETTER}/,'%{_mingw64_lib}'/,' %{buildroot}%{_mingw64_libdir}/cmake/opencascade/* sed -i -e 's,/lib\$,/'%{_mingw64_libdir}'\$,' %{buildroot}%{_mingw64_libdir}/cmake/opencascade/* grep -C5 -E "BIN_LETTER|/lib" %{buildroot}%{_mingw64_libdir}/cmake/opencascade/* # fix installing /usr/i686-w64-mingw64/sys-root/mingw/usr/i686-w64-mingw64/sys-root/mingw/lib/cmake/opencascade/OpenCASCADECompileDefinitionsAndFlags-relwithdebinfo.cmake mv %buildroot%{_mingw64_prefix}%{_mingw64_libdir}/cmake/opencascade/*.cmake %buildroot%{_mingw64_libdir}/cmake/opencascade/ rm -rf %buildroot%{_mingw64_prefix}/usr/%{_mingw64_prefix} # fix W: world-writable chmod 644 %buildroot%{_mingw64_bindir}/draw*.bat %if !%_doc rm -rf %buildroot/%{_mingw64_datadir}/doc %endif %files -n mingw64-libopencascade-applicationframework%{soname} %_mingw64_bindir/libTKBin%{sover}.dll %_mingw64_bindir/libTKBinL%{sover}.dll %_mingw64_bindir/libTKBinTObj%{sover}.dll %_mingw64_bindir/libTKCAF%{sover}.dll %_mingw64_bindir/libTKCDF%{sover}.dll %_mingw64_bindir/libTKLCAF%{sover}.dll %_mingw64_bindir/libTKStd%{sover}.dll %_mingw64_bindir/libTKStdL%{sover}.dll %_mingw64_bindir/libTKTObj%{sover}.dll %_mingw64_bindir/libTKVCAF%{sover}.dll %_mingw64_bindir/libTKXml%{sover}.dll %_mingw64_bindir/libTKXmlL%{sover}.dll %_mingw64_bindir/libTKXmlTObj%{sover}.dll %files -n mingw64-libopencascade-dataexchange%{soname} %_mingw64_bindir/libTKBinXCAF%{sover}.dll %_mingw64_bindir/libTKExpress%{sover}.dll %_mingw64_bindir/libTKIGES%{sover}.dll %_mingw64_bindir/libTKRWMesh%{sover}.dll %_mingw64_bindir/libTKSTEP%{sover}.dll %_mingw64_bindir/libTKSTEP209%{sover}.dll %_mingw64_bindir/libTKSTEPAttr%{sover}.dll %_mingw64_bindir/libTKSTEPBase%{sover}.dll %_mingw64_bindir/libTKSTL%{sover}.dll %_mingw64_bindir/libTKVRML%{sover}.dll %_mingw64_bindir/libTKXCAF%{sover}.dll %_mingw64_bindir/libTKXDE%{sover}.dll %_mingw64_bindir/libTKXDECascade%{sover}.dll %_mingw64_bindir/libTKXDEIGES%{sover}.dll %_mingw64_bindir/libTKXDESTEP%{sover}.dll %_mingw64_bindir/libTKXSBase%{sover}.dll %_mingw64_bindir/libTKXmlXCAF%{sover}.dll %files -n mingw64-libopencascade-foundationclasses%{soname} %license LICENSE_LGPL_21.txt OCCT_LGPL_EXCEPTION.txt %_mingw64_bindir/libTKernel%{sover}.dll %_mingw64_bindir/libTKMath%{sover}.dll %files -n mingw64-libopencascade-draw%{soname} %_mingw64_bindir/libTKDCAF%{sover}.dll %_mingw64_bindir/libTKDraw%{sover}.dll %_mingw64_bindir/libTKQADraw%{sover}.dll %_mingw64_bindir/libTKTObjDRAW%{sover}.dll %_mingw64_bindir/libTKXDEDRAW%{sover}.dll %_mingw64_bindir/libTKXSDRAW%{sover}.dll %_mingw64_bindir/libTK*Test%{sover}.dll %files -n mingw64-libopencascade-modelingalgorithms%{soname} %_mingw64_bindir/libTKBO%{sover}.dll %_mingw64_bindir/libTKBool%{sover}.dll %_mingw64_bindir/libTKFeat%{sover}.dll %_mingw64_bindir/libTKFillet%{sover}.dll %_mingw64_bindir/libTKGeomAlgo%{sover}.dll %_mingw64_bindir/libTKHLR%{sover}.dll %_mingw64_bindir/libTKMesh%{sover}.dll %_mingw64_bindir/libTKOffset%{sover}.dll %_mingw64_bindir/libTKPrim%{sover}.dll %_mingw64_bindir/libTKShHealing%{sover}.dll %_mingw64_bindir/libTKTopAlgo%{sover}.dll %_mingw64_bindir/libTKXMesh%{sover}.dll %files -n mingw64-libopencascade-modelingdata%{soname} %_mingw64_bindir/libTKG2d%{sover}.dll %_mingw64_bindir/libTKG3d%{sover}.dll %_mingw64_bindir/libTKGeomBase%{sover}.dll %_mingw64_bindir/libTKBRep%{sover}.dll %files -n mingw64-libopencascade-visualization%{soname} %_mingw64_bindir/libTKMeshVS%{sover}.dll %_mingw64_bindir/libTKOpenGl%{sover}.dll %_mingw64_bindir/libTKService%{sover}.dll %_mingw64_bindir/libTKV3d%{sover}.dll %files resources %dir %{_mingw64_datadir}/opencascade %{_mingw64_datadir}/opencascade/resources %files DRAWEXE %{_mingw64_bindir}/custom*.bat %{_mingw64_bindir}/draw*.bat %{_mingw64_bindir}/env*.bat %{_mingw64_bindir}/DRAWEXE.exe %{_mingw64_datadir}/opencascade/samples %{_mingw64_datadir}/opencascade/data %files devel %doc README.txt %{_mingw64_includedir}/opencascade %dir %{_mingw64_libdir}/cmake %{_mingw64_libdir}/cmake/opencascade %{_mingw64_libdir}/lib*.dll.a %{_mingw64_bindir}/ExpToCasExe.exe %if %_doc %files devel-doc %doc doc/refman/html %endif %changelog
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