[packages/CuraEngine] cleanups
glen
glen at pld-linux.org
Fri May 15 10:23:15 CEST 2015
commit 880c7dccbe0a3ede874ef4428da1f8a93334fc98
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri May 15 11:23:10 2015 +0300
cleanups
CuraEngine.spec | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/CuraEngine.spec b/CuraEngine.spec
index 15dfa9c..0082a2b 100644
--- a/CuraEngine.spec
+++ b/CuraEngine.spec
@@ -1,15 +1,20 @@
-%bcond_without tests
+#
+# Conditional build:
+%bcond_with tests # build with tests
+
Summary: Engine for processing 3D models into G-code instructions for 3D printers
Name: CuraEngine
Version: 15.04
Release: 1
License: AGPLv3
Group: Applications/Engineering
-URL: https://github.com/Ultimaker/CuraEngine
Source0: https://github.com/Ultimaker/CuraEngine/archive/%{version}.tar.gz
# Source0-md5: 75d34492ca18358aa554a56afb2de440
+URL: https://github.com/Ultimaker/CuraEngine
+BuildRequires: libstdc++-devel
BuildRequires: polyclipping-devel >= 6.1.2
%{?with_tests:BuildRequires: python}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%{name} is a C++ console application for 3D printing G-code
@@ -24,7 +29,7 @@ graphical application look at cura with is the graphical frontend for
%setup -q
# bundled clipper
-rm -rf clipper
+rm -r 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
@@ -42,8 +47,8 @@ CFLAGS="-I. -Ilibs -c %{rpmcflags} %{rpmcppflags} -std=c++11 -fomit-frame-pointe
%install
rm -rf $RPM_BUILD_ROOT
-
-install -Dpm 0755 build/%{name} $RPM_BUILD_ROOT/%{_bindir}/%{name}
+install -d $RPM_BUILD_ROOT%{_bindir}/%{name}
+install -p build/%{name} $RPM_BUILD_ROOT%{_bindir}
%clean
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/CuraEngine.git/commitdiff/880c7dccbe0a3ede874ef4428da1f8a93334fc98
More information about the pld-cvs-commit
mailing list