update to current stable version

OBS-URL: https://build.opensuse.org/package/show/science/cura-engine?expand=0&rev=6
This commit is contained in:
2017-06-26 07:10:06 +00:00
committed by Git OBS Bridge
parent 7928225b06
commit 04d8997432
8 changed files with 70 additions and 40 deletions

View File

@@ -17,19 +17,19 @@
Name: cura-engine
Version: 15.04.6
Version: 15.04.3
Release: 0
Summary: 3D printer control software
License: AGPL-3.0
Group: Applications/Engineering
Group: BLAH
Url: http://github.com/Ultimaker/CuraEngine
Source0: https://github.com/Ultimaker/CuraEngine/archive/%{version}/CuraEngine-%{version}.tar.gz
Source0: https://github.com/Ultimaker/CuraEngine/archive/%{version}/CuraEngine-%{version}.tar.xz
Source1: CuraEngine.1
Patch1: CuraEngine-uses-sharelib.patch
BuildRequires: gcc-c++
# complains about glibc header problems (not in factory anymore :)
#!BuildIgnore: post-build-checks
Patch1: fix-build.patch
BuildRequires: gcc6-c++
#!BuildIgnore: libgcc_s1
BuildRequires: cmake
BuildRequires: libArcus-devel
%description
CuraEngine is the a powerful, fast and robust engine for processing 3D models
@@ -37,29 +37,30 @@ into 3D printing instruction for Ultimaker and other GCode based 3D printers.
It is part of the larger open source project called "Cura".
%prep
%setup -q -n CuraEngine-%{version}
%patch1
%setup -q -n CuraEngine-%version
%patch1 -p1
%build
CFLAGS="%{optflags}"
export CFLAGS
make VERSION=%{version}
%if 0%{?suse_version} < 1500
export CC=gcc-6
export CXX=g++-6
%endif
%cmake -DCMAKE_C_FLAGS="%{optflags} -fPIC" \
-DCMAKE_CXX_FLAGS="%{optflags} -fPIC -fpermissive"
make %{?_smp_mflags}
%install
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_datadir}/CuraEngine
cp build/CuraEngine %{buildroot}%{_bindir}
D=$(date +"%b %Y")
sed -i "s/DATE/${D}/g;s/VERSION/%version/g" %{SOURCE1}
cd build
%make_install
install -Dm0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/cura-engine.1
install -Dm0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/CuraEngine.1
# hack... not ready for the distro
install -Dm0755 lib_CuraEngine.so %{buildroot}%{_libdir}/lib_CuraEngine.so
%files
%defattr(-,root,root,-)
%dir %{_datadir}/CuraEngine
%doc LICENSE
%{_bindir}/CuraEngine
%_mandir/man1/cura-engine.1*
%_bindir/CuraEngine
%_libdir/*
%_mandir/man1/CuraEngine.1*
%changelog