138 lines
4.3 KiB
RPMSpec
138 lines
4.3 KiB
RPMSpec
Name: freecad
|
|
Version: 1.0rc2
|
|
Release: 2mamba
|
|
Summary: a parametric 3D modeler
|
|
Group: Graphical Desktop/Applications/Graphics
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://www.freecad.org/
|
|
Source: https://github.com/FreeCAD/FreeCAD.git/%{version}/FreeCAD-%{version}.tar.bz2
|
|
License: LGPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libQt6Concurrent
|
|
BuildRequires: libQt6Core
|
|
BuildRequires: libQt6Gui
|
|
BuildRequires: libQt6Network
|
|
BuildRequires: libQt6OpenGL
|
|
BuildRequires: libQt6PrintSupport
|
|
BuildRequires: libQt6Widgets
|
|
BuildRequires: libQt6Xml
|
|
BuildRequires: libX11-devel
|
|
BuildRequires: libboost-devel
|
|
BuildRequires: libcoin-devel
|
|
BuildRequires: libfmt-devel
|
|
BuildRequires: libfreetype-devel
|
|
BuildRequires: libgcc
|
|
BuildRequires: libglew-devel
|
|
BuildRequires: libglu-devel
|
|
BuildRequires: libglvnd-devel
|
|
BuildRequires: libgomp-devel
|
|
BuildRequires: libhdf5-devel
|
|
BuildRequires: libjsoncpp-devel
|
|
BuildRequires: libmed-devel
|
|
BuildRequires: libmpi-devel
|
|
BuildRequires: libocct-devel
|
|
BuildRequires: libpython3-devel
|
|
BuildRequires: libpython311-devel
|
|
BuildRequires: libspnav-devel
|
|
BuildRequires: libstdc++6-devel
|
|
BuildRequires: libtbb-devel
|
|
BuildRequires: libvtk-devel
|
|
BuildRequires: libxerces-c-devel
|
|
BuildRequires: libyaml-cpp-devel
|
|
BuildRequires: libz-devel
|
|
BuildRequires: python-boost-py3
|
|
BuildRequires: qt6-qtsvg-devel
|
|
BuildRequires: qt6-qttools-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: libocct-devel >= 0:7.8.1-1mamba
|
|
BuildRequires: libjsoncpp-devel >= 0:1.9.6-1mamba
|
|
BuildRequires: oce
|
|
BuildRequires: libboost-devel
|
|
BuildRequires: cmake
|
|
Obsoletes: Free-CAD < 0.21.2
|
|
Obsoletes: libFree-CAD < 0.21.2
|
|
Obsoletes: libFree-CAD-devel < 0.21.2
|
|
|
|
%description
|
|
FreeCAD is a parametric 3D modeler made primarily to design real-life objects of any size.
|
|
Parametric modeling allows you to easily modify your design by going back into your model history and changing its parameters.
|
|
FreeCAD is open-source and highly customizable, scriptable and extensible.
|
|
Can reads and writes many open file formats such as STEP, IGES, STL, SVG, DXF, OBJ, IFC, DAE and many others.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q -n FreeCAD-%{version}
|
|
#-D -T
|
|
#:<< _EOF
|
|
|
|
%build
|
|
#:<< __EOF
|
|
%cmake -d build \
|
|
-DBUILD_FLAT_MESH=ON \
|
|
-DBUILD_ENABLE_CXX_STD=C++17 \
|
|
-DBUILD_FEM_VTK=TRUE \
|
|
-DBUILD_SHARED_LIBS=OFF \
|
|
-DCMAKE_INSTALL_BINDIR=%{_libdir}/freecad/bin \
|
|
-DCMAKE_INSTALL_DATADIR=%{_datadir}/freecad \
|
|
-DCMAKE_INSTALL_DOCDIR=%{_datadir}/freecad/doc \
|
|
-DCMAKE_INSTALL_LIBDIR=%{_datadir}/freecad/lib \
|
|
-DCMAKE_INSTALL_PREFIX=%{_datadir}/freecad \
|
|
-DFREECAD_USE_EXTERNAL_PIVY=ON \
|
|
-DFREECAD_USE_OCC_VARIANT='Official Version' \
|
|
-DFREECAD_USE_QT_FILEDIALOG=ON \
|
|
-DFREECAD_QT_VERSION=6 \
|
|
-DCMAKE_INSTALL_DOCDIR:PATH="share/freecad/doc" \
|
|
-DCMAKE_INSTALL_DATADIR:PATH="share/freecad" \
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall -C build
|
|
|
|
install -d %{buildroot}%{_bindir}
|
|
ln -sf ../%{_lib}/freecad/bin/FreeCAD %{buildroot}%{_bindir}/freecad
|
|
ln -sf ../%{_lib}/freecad/bin/FreeCAD %{buildroot}%{_bindir}/FreeCAD
|
|
ln -sf ../%{_lib}/freecad/bin/FreeCADCmd %{buildroot}%{_bindir}/freecadcmd
|
|
ln -sf ../%{_lib}/freecad/bin/FreeCADCmd %{buildroot}%{_bindir}/FreeCADCmd
|
|
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/FreeCAD
|
|
%{_bindir}/FreeCADCmd
|
|
%{_bindir}/freecad
|
|
%{_bindir}/freecadcmd
|
|
%dir %{_libdir}/freecad
|
|
%dir %{_libdir}/freecad/bin
|
|
%{_libdir}/freecad/bin/FreeCAD
|
|
%{_libdir}/freecad/bin/FreeCADCmd
|
|
%dir %{_datadir}/freecad
|
|
%{_datadir}/freecad/*
|
|
%dir %{python3_sitelib}/freecad
|
|
%{python3_sitelib}/freecad/*
|
|
|
|
%changelog
|
|
* Fri Oct 25 2024 Automatic Build System <autodist@mambasoft.it> 1.0rc2-2mamba
|
|
- rebuilt by autoport with build requirements: libocct-devel>=0:7.8.1-1mamba
|
|
|
|
* Sat Oct 19 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0rc2-1mamba
|
|
- update to 1.0rc2
|
|
|
|
* Sun Jul 28 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 0.21.2-1mamba
|
|
- update to 0.21.2
|
|
|
|
* Tue Jun 14 2016 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 0.17_pre-1mamba
|
|
- update to 0.17_pre
|
|
|
|
* Mon Jun 13 2016 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 0.16-1mamba
|
|
- package created using the webbuild interface
|