ebf23ce
Name:           CuraEngine
53482a1
Version:        14.12.1
53482a1
Release:        1%{?dist}
ebf23ce
Summary:        Engine for processing 3D models into G-code instructions for 3D printers
ebf23ce
License:        AGPLv3
ebf23ce
URL:            https://github.com/Ultimaker/%{name}
ebf23ce
Source0:        %{url}/archive/%{version}.tar.gz
00b6c0d
BuildRequires:  polyclipping-devel >= 6.1.2
00b6c0d
# For tests:
00b6c0d
BuildRequires:  python
ebf23ce
ebf23ce
%description
ebf23ce
%{name} is a C++ console application for 3D printing G-code generation. It
ebf23ce
has been made as a better and faster alternative to the old Skeinforge engine.
ebf23ce
ebf23ce
This is just a console application for G-code generation. For a full graphical
ebf23ce
application look at cura with is the graphical frontend for %{name}.
ebf23ce
ebf23ce
%prep
ebf23ce
%setup -q
ebf23ce
ebf23ce
# bundled clipper
ebf23ce
rm -rf clipper
53482a1
sed -i 's|#include <clipper/clipper.hpp>|#include <polyclipping/clipper.hpp>|' src/utils/*.h 
53482a1
sed -i 's|-lclipper|-lpolyclipping|g' Makefile
53482a1
sed -i 's| $(BUILD_DIR)/libclipper.a||g' Makefile
ebf23ce
d99a63b
# allow redefinition of CFLAGS and do not build it static
d99a63b
sed -i 's|CFLAGS +=|CFLAGS?=|' Makefile
d99a63b
sed -i 's|--static||g' Makefile
ebf23ce
ebf23ce
%build
53482a1
CFLAGS="-I. -Ilibs -c %{optflags} -std=c++11 -fomit-frame-pointer" make %{?_smp_mflags}
ebf23ce
ebf23ce
%install
53482a1
install -Dpm0755 build/%{name} %{buildroot}/%{_bindir}/%{name}
ebf23ce
ebf23ce
%check
00b6c0d
make test
ebf23ce
ebf23ce
%files
ebf23ce
%doc LICENSE README.md
ebf23ce
%{_bindir}/%{name}
ebf23ce
ebf23ce
%changelog
53482a1
* Mon Dec 29 2014 Miro Hrončok <mhroncok@redhat.com> - 14.12.1-1
53482a1
- Update to 14.12.1
53482a1
59b5c01
* Thu Oct 23 2014 Miro Hrončok <mhroncok@redhat.com> - 14.03-3
59b5c01
- Rebuilt for new polyclipping
59b5c01
931fee1
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14.03-2
931fee1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
931fee1
e3a63af
* Mon Jun 23 2014 Miro Hrončok <mhroncok@redhat.com> - 14.03-1
e3a63af
- New version 14.03
e3a63af
dc2b10a
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14.01-2
dc2b10a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
dc2b10a
00b6c0d
* Sun Mar 09 2014 Miro Hrončok <mhroncok@redhat.com> - 14.01-1
00b6c0d
- New version 14.01
00b6c0d
- polyclipping 6.1.x
00b6c0d
- Now with make test
00b6c0d
- Rebuilt against new polyclipping release
00b6c0d
d99a63b
* Sat Dec 14 2013 Miro Hrončok <mhroncok@redhat.com> - 13.11.2-1
d99a63b
- New version 13.11.2
d99a63b
- Makefile seding changed to reflect changes
d99a63b
- Clipper usage no longer need patching
d99a63b
280b908
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 13.06.3-4
280b908
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
280b908
a159126
* Mon Jul 22 2013 Miro Hrončok <mhroncok@redhat.com> - 13.06.3-3
a159126
- Rebuilt for new polyclipping
a159126
ebf23ce
* Thu Jul 04 2013 Miro Hrončok <mhroncok@redhat.com> - 13.06.3-2
ebf23ce
- Added some explaining comments
ebf23ce
ebf23ce
* Sun Jun 23 2013 Miro Hrončok <mhroncok@redhat.com> - 13.06.3-1
ebf23ce
- New package