2014-09-14 12:03:07 +04:00
|
|
|
Name: freecad
|
|
|
|
Summary: FreeCAD is a general purpose 3D CAD modeler
|
|
|
|
Version: 0.14.3702
|
2014-09-15 02:56:04 +04:00
|
|
|
Release: 3
|
2014-09-14 12:03:07 +04:00
|
|
|
License: GPL and LGPL
|
2013-08-02 11:39:04 +04:00
|
|
|
Group: Graphics
|
|
|
|
Url: http://free-cad.sourceforge.net/
|
|
|
|
Source0: http://dfn.dl.sourceforge.net/sourceforge/free-cad/freecad-%{version}.tar.gz
|
|
|
|
Source1: freecad.desktop
|
|
|
|
Source2: freecad.1
|
|
|
|
Source3: %{name}.rpmlintrc
|
|
|
|
BuildRequires: gstreamer0.10-devel
|
2014-09-14 12:01:03 +04:00
|
|
|
BuildRequires: pkgconfig(QtCore)
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: pkgconfig(QtWebKit)
|
|
|
|
BuildRequires: pkgconfig(xerces-c)
|
2013-08-02 11:39:04 +04:00
|
|
|
BuildRequires: opencv-devel
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: libode-devel
|
|
|
|
BuildRequires: python-matplotlib
|
|
|
|
BuildRequires: eigen3
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc-gfortran
|
|
|
|
BuildRequires: opencascade-devel
|
2014-09-14 12:01:03 +04:00
|
|
|
BuildRequires: pkgconfig(Coin)
|
2013-08-02 11:39:04 +04:00
|
|
|
BuildRequires: soqt-devel
|
|
|
|
BuildRequires: boost-devel >= 1.34.0
|
2014-09-13 19:03:42 +04:00
|
|
|
BuildRequires: pkgconfig(shiboken)
|
|
|
|
BuildRequires: pkgconfig(pyside)
|
2014-09-14 12:01:03 +04:00
|
|
|
BuildRequires: dos2unix
|
|
|
|
|
2010-08-08 18:23:07 +00:00
|
|
|
|
|
|
|
%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).
|
|
|
|
|
2014-09-13 19:03:42 +04:00
|
|
|
#package devel
|
|
|
|
#Group: Development/C++
|
|
|
|
#Summary: Devel package for %{name}
|
|
|
|
#Requires: {name} = {version}
|
2010-08-08 18:23:07 +00:00
|
|
|
|
2014-09-13 19:03:42 +04:00
|
|
|
#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).
|
2010-08-08 18:23:07 +00:00
|
|
|
|
|
|
|
%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} \
|
2014-09-14 12:01:03 +04:00
|
|
|
-DRESOURCEDIR=%{_libdir}/freecad \
|
2014-09-14 14:59:10 +04:00
|
|
|
-DCMAKE_BUILD_TYPE=Release
|
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
|
|
|
|
|
2013-08-02 11:39:04 +04:00
|
|
|
# Install desktop file
|
|
|
|
desktop-file-install \
|
|
|
|
--dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
|
|
|
|
|
|
|
|
sed -i 's,@lib@,%{_lib},g' %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
|
|
|
# Install desktop icon
|
|
|
|
install -pD -m 0644 src/Gui/Icons/%{name}.svg \
|
|
|
|
%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
|
|
|
|
|
|
|
|
# Install man page
|
2013-08-02 12:13:55 +04:00
|
|
|
install -pD -m 0644 %{SOURCE2} \
|
2013-08-02 11:39:04 +04:00
|
|
|
%{buildroot}%{_mandir}/man1/%{name}.1
|
|
|
|
|
|
|
|
# Symlink manpage to other binary names
|
|
|
|
pushd %{buildroot}%{_mandir}/man1
|
|
|
|
ln -sf %{name}.1.gz FreeCAD.1.gz.
|
|
|
|
ln -sf %{name}.1.gz FreeCADCmd.1.gz
|
|
|
|
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-02 13:06:04 +04:00
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
|
2014-09-13 19:03:42 +04:00
|
|
|
%{_libdir}/*.so
|
2013-08-01 17:54:09 +04:00
|
|
|
%{_libdir}/%{name}/bin/
|
2014-09-13 19:03:42 +04:00
|
|
|
#{_libdir}/%{name}/lib/
|
2013-08-01 17:54:09 +04:00
|
|
|
%{_libdir}/%{name}/Mod/
|
|
|
|
%{_datadir}/%{name}/
|
2013-08-02 13:06:04 +04:00
|
|
|
%{_mandir}/man1/*.1*
|
2013-08-01 17:54:09 +04:00
|
|
|
|
2014-09-13 19:03:42 +04:00
|
|
|
#files devel
|
|
|
|
#{_libdir}/{name}/include/*
|