ebf23ce
Name:           CuraEngine
cbe313a
Version:        15.04
d446311
Release:        3%{?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
faa9784
ebf23ce
%build
faa9784
CFLAGS='-I. -Ilibs -c %{optflags} -std=c++11 -fomit-frame-pointer -DVERSION=\"%{version}\"' 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
d446311
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 15.04-3
d446311
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d446311
faa9784
* Mon Jul 06 2015 Miro Hrončok <mhroncok@redhat.com> - 15.04-2
faa9784
- Set the VERSION variable
faa9784
cbe313a
* Sun Jul 05 2015 Miro Hrončok <mhroncok@redhat.com> - 15.04-1
cbe313a
- Update to 15.04
cbe313a
b2d08f3
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14.12.1-3
b2d08f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b2d08f3
ddc9b70
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 14.12.1-2
ddc9b70
- Rebuilt for GCC 5 C++11 ABI change
ddc9b70
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