File HeeksCNC.spec of Package HeeksCNC
#
# spec file for HeeksCNC
#
# 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.
# norootforbuild
Name: HeeksCNC
Summary: CNC add-on for HeeksCAD
Version: 0.5.1svn337
Release: 5
License: BSD-3-Clause
Group: Productivity/Graphics/3D Editors
Packager: Andrea Florio <andrea@opensuse.org>
Url: http://code.google.com/p/heekscnc/
Vendor: openSUSE-Education
BuildRequires: make gcc gcc-c++
BuildRequires: HeeksCAD-devel
BuildRequires: libarea0 libactp0
Requires: HeeksCAD libarea0 libactp0
%if 0%{?suse_version}
BuildRequires: fdupes
BuildRequires: -post-build-checks
BuildRequires: wxWidgets-devel
%endif
Source0: heekscnc.tar.bz2
Patch0: %{name}-%{version}-build.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
Written in C++, HeeksCNC is an add-on for HeeksCAD.
The user can add machining operations.
These can then be output to NC code. The NC code is
then shown as red and green lines on the screen.
The NC code is generated using Python script, so
it can be configured for different machines.
See some example of HeeksCNC being used here:
http://code.google.com/p/heekscnc/wiki/CaseStudies
HeeksCNC uses pycam for the "Zig Zag" operation
HeeksCNC uses libarea for the "Pocket
Authors:
--------
Dan Heeks <danheeks@gmail.com>
%prep
%setup -q -n heekscnc
%patch0 -p1
%build
cd src
HEEKSCADPATH=/opt/HeeksCAD %__make %{?jobs:-j%{jobs}}
%install
cd src
%__mkdir -p %buildroot/opt/HeeksCAD/%name/bitmaps
%__mkdir -p %buildroot/opt/HeeksCAD/%name/icons
%__mkdir -p %buildroot/opt/HeeksCAD/%name/nc
%__cp ../libheekscnc.so.0.5.1 %buildroot/opt/HeeksCAD/%name/
%__cp ../bitmaps/*.png ../bitmaps/*.svg %buildroot/opt/HeeksCAD/%name/bitmaps/
%__cp ../icons/*.png %buildroot/opt/HeeksCAD/%name/icons/
%__cp ../nc/*.py %buildroot/opt/HeeksCAD/%name/nc/
%__ln_s %_libdir/libactp.so.0.1.0 %buildroot/opt/HeeksCAD/%name/actp.so
%__ln_s %_libdir/libarea.so.0.1.0 %buildroot/opt/HeeksCAD/%name/area.so
%if 0%{?suse_version}
%fdupes -s %{buildroot}
%endif
%clean
rm -fr %buildroot
%post
/sbin/ldconfig
chown -R root:users /opt/HeeksCAD/%name/
find /opt/HeeksCAD/%name/ -type d -exec chmod 775 {} \;
%postun
/sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING
%dir /opt/HeeksCAD/%name/
%dir /opt/HeeksCAD/%name/bitmaps/
%dir /opt/HeeksCAD/%name/icons/
%dir /opt/HeeksCAD/%name/nc/
/opt/HeeksCAD/%name/libheekscnc.so.0.5.1
/opt/HeeksCAD/%name/area.so
/opt/HeeksCAD/%name/actp.so
/opt/HeeksCAD/%name/bitmaps/*.png
/opt/HeeksCAD/%name/bitmaps/*.svg
/opt/HeeksCAD/%name/icons/*.png
/opt/HeeksCAD/%name/nc/*.py
%changelog