2010-08-08 18:23:07 +00:00
|
|
|
Name: freecad
|
|
|
|
Summary: FreeCAD is a general purpose 3D CAD modeler
|
2013-08-01 17:23:13 +04:00
|
|
|
Version: 0.13.1830
|
2013-04-13 21:50:26 +04:00
|
|
|
Release: 1
|
2010-08-08 18:23:07 +00:00
|
|
|
License: GPL and LGPL
|
|
|
|
Group: Graphics
|
|
|
|
URL: http://free-cad.sourceforge.net/
|
|
|
|
Source0: http://dfn.dl.sourceforge.net/sourceforge/free-cad/freecad-%{version}.tar.gz
|
|
|
|
BuildRequires: gstreamer0.10-devel
|
|
|
|
BuildRequires: qt4-devel
|
|
|
|
BuildRequires: libxerces-c-devel
|
|
|
|
BuildRequires: opencv-devel
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: libode-devel
|
2013-08-01 17:23:13 +04:00
|
|
|
BuildRequires: python-matplotlib
|
|
|
|
BuildRequires: eigen3
|
2013-04-13 21:50:26 +04:00
|
|
|
BuildRequires: cmake
|
2013-08-01 18:06:12 +04:00
|
|
|
BuildRequires: gcc-gfortran
|
2010-08-08 18:23:07 +00:00
|
|
|
BuildRequires: opencascade-devel
|
|
|
|
BuildRequires: coin-devel
|
|
|
|
BuildRequires: soqt-devel
|
|
|
|
BuildRequires: boost-devel >= 1.34.0
|
|
|
|
|
|
|
|
%description
|
|
|
|
FreeCAD will be a general purpose 3D CAD modeler.
|
|
|
|
The development will be completely Open Source.
|
|
|
|
As with many modern 3D CAD modelers it will
|
|
|
|
have a 2D component in order to extract design detail
|
|
|
|
from the 3D model to create 2D production drawings,
|
|
|
|
although 2D (e.g. AutoCAD LT) is not the focus,
|
|
|
|
neither are animation and organic shapes
|
|
|
|
(e.g. Maya, 3D StudioMAX and Cinema 4D).
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Summary: Devel package for %{name}
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
FreeCAD will be a general purpose 3D CAD modeler.
|
|
|
|
The development will be completely Open Source.
|
|
|
|
As with many modern 3D CAD modelers it will
|
|
|
|
have a 2D component in order to extract design detail
|
|
|
|
from the 3D model to create 2D production drawings,
|
|
|
|
although 2D (e.g. AutoCAD LT) is not the focus,
|
|
|
|
neither are animation and organic shapes
|
|
|
|
(e.g. Maya, 3D StudioMAX and Cinema 4D).
|
|
|
|
|
|
|
|
%prep
|
2013-08-01 17:23:13 +04:00
|
|
|
%setup -q
|
2010-08-08 18:23:07 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%define Werror_cflags %nil
|
2013-08-01 17:54:09 +04:00
|
|
|
%cmake_qt4 -DCMAKE_INSTALL_PREFIX=%{_libdir}/%{name} \
|
|
|
|
-DCMAKE_INSTALL_DATADIR=%{_datadir}/%{name} \
|
|
|
|
-DCMAKE_INSTALL_DOCDIR=%{_docdir}/%{name} \
|
|
|
|
-DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} \
|
|
|
|
-DRESOURCEDIR=%{_libdir}/freecad
|
2010-08-08 18:23:07 +00:00
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall_std -C build
|
|
|
|
|
2013-08-01 17:54:09 +04:00
|
|
|
# Symlink binaries to /usr/bin
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
pushd %{buildroot}%{_bindir}
|
|
|
|
ln -s ../%{_lib}/freecad/bin/FreeCAD .
|
|
|
|
ln -s ../%{_lib}/freecad/bin/FreeCADCmd .
|
|
|
|
popd
|
|
|
|
|
2010-08-08 18:23:07 +00:00
|
|
|
%files
|
2013-08-01 17:54:09 +04:00
|
|
|
%doc ChangeLog.txt copying.lib data/License.txt build/doc/*
|
|
|
|
%{_bindir}/*
|
2013-08-01 20:57:04 +04:00
|
|
|
# %{_datadir}/applications/%{name}.desktop
|
|
|
|
# %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
|
2013-08-01 17:54:09 +04:00
|
|
|
%{_libdir}/%{name}/bin/
|
|
|
|
%{_libdir}/%{name}/lib/
|
|
|
|
%{_libdir}/%{name}/Mod/
|
|
|
|
%{_datadir}/%{name}/
|
2013-08-01 20:57:04 +04:00
|
|
|
# %{_mandir}/man1/*.1.gz
|
2013-08-01 17:54:09 +04:00
|
|
|
|
|
|
|
%files devel
|
2013-08-01 20:57:04 +04:00
|
|
|
%{_libdir}/%{name}/include/*
|