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