Name: IfcOpenShell Version: 0.8.0 Release: 1%{?dist} Summary: A library for working with Industry Foundation Classes (IFC) # Build fails: virtual memory exhausted: Cannot allocate memory ExcludeArch: i686 License: LGPL-3.0-or-later URL: https://github.com/IfcOpenShell/IfcOpenShell/ # version=0.8.0 # git clone --recursive --depth 1 --branch v$version https://github.com/IfcOpenShell/IfcOpenShell.git IfcOpenShell-$version # cd IfcOpenShell # rm -rf .git* # cd .. # tar cfJ IfcOpenShell-$version.tar.xz IfcOpenShell-$version Source0: %{name}-%{version}.tar.xz # CMake fixes # - Fix LIBXML2 libname # - Fix lib_ext # - Don't set rpaths # - Rename too generically named Serializers library to IfcSerializers # - Don't build svgfill # - Install IfcQtViewer Patch0: IfcOpenShell_cmake.patch BuildRequires: boost-devel BuildRequires: CGAL-devel BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: jsoncpp-devel BuildRequires: mpfr-devel BuildRequires: opencascade-devel BuildRequires: OpenSceneGraph-devel BuildRequires: proj-devel BuildRequires: qt6-qtbase-devel BuildRequires: swig %description IfcOpenShell is an open source (LGPL) software library for working with Industry Foundation Classes (IFC). %package viewer Summary: IfcOpenShell Qt Viewer Requires: %{name} = %{version}-%{release} %description viewer The IfcOpenShell-viewer package contains a Qt viewer for viewing IFC files. %package devel Summary: Development files for IfcOpenShell Requires: %{name} = %{version}-%{release} %description devel The IfcOpenShell-devel package provides header files for developing applications which use IfcOpenShell %package -n python3-%{name} Summary: Python3 bindings for IfcOpenShell Requires: %{name} = %{version}-%{release} %description -n python3-%{name} The python3-IfcOpenShell package provides the Python3 bindings for IfcOpenShell %prep %autosetup -p1 -n %{name}-%{version} %build %cmake \ -DCOLLADA_SUPPORT=OFF \ -DGMP_LIBRARY_DIR=%{_libdir} \ -DMPFR_LIBRARY_DIR=%{_libdir} \ -DHDF5_LIBRARY_DIR=%{_libdir} \ -DBUILD_SHARED_LIBS=ON \ -DGLTF_SUPPORT=ON \ -DWITH_PROJ=ON \ -DBUILD_QTVIEWER=ON \ cmake/ %cmake_build %install %cmake_install rm -rf %{buildroot}%{_libdir}/*.a %files %license COPYING COPYING.LESSER %doc README.md %{_bindir}/IfcConvert %{_bindir}/IfcGeomServer %{_bindir}/IfcSvgFill %{_libdir}/libIfcGeom.so.0.8 %{_libdir}/libIfcGeom.so.0.8.0 %{_libdir}/libIfcParse.so.0.8 %{_libdir}/libIfcParse.so.0.8.0 %{_libdir}/libIfcSerializers.so.0.8 %{_libdir}/libIfcSerializers.so.0.8.0 %{_libdir}/libIfcSvgFill.so %{_libdir}/libgeometry_kernel_cgal.so %{_libdir}/libgeometry_kernel_cgal_simple.so %{_libdir}/libgeometry_kernel_opencascade.so %files viewer %{_bindir}/IfcQtViewer %files devel %{_includedir}/ifcgeom/ %{_includedir}/ifcparse/ %{_includedir}/ifcserializers/ %{_includedir}/ifcsvgfill/ %{_libdir}/libIfcGeom.so %{_libdir}/libIfcParse.so %{_libdir}/libIfcSerializers.so %files -n python3-%{name} %{python3_sitearch}/ifcopenshell/ %changelog * Fri Sep 05 2025 Sandro Mani - 0.8.0-1 - Initial package