1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
%global _curaName __curaName__
%global _baseDir __basedir__
%global _version __version__
%global _gitCura __gitCura__
%global _gitCuraEngine __gitCuraEngine__
%global _gitPower __gitPower__
Name: %{_curaName}
Version: %{_version}
Release: 1%{?dist}
Summary: 3D printing software aimed at RepRaps and the Ultimaker
Group: Applications/Engineering
License: GPLv2+
URL: https://github.com/daid/Cura.git
Source0: %{_curaName}-%{_version}.tar.gz
BuildRequires: libstdc++-static, glibc-static
Requires: wxPython, curl
Requires: python3-setuptools >= 0.6.34
Requires: python3-PyOpenGL >= 3.0.2, PyOpenGL >= 3.0.2
Requires: python3-pyserial >= 2.6, pyserial >= 2.6
Requires: python3-numpy >= 1.6.2, numpy >= 1.6.2
Requires: python3-power >= 1.2
%description
%{_curaName} is a full software solution for 3D printing, aimed at RepRaps and
the Ultimaker.
It's free software payed for and maintained by Ultimaker.
%prep
%setup -q -n %{name}-%{version}
%build
make -C CuraEngine VERSION=%{_version}
dstDir="%{_baseDir}/usr/share/cura"
rm -frv "$dstDir"
mkdir -pv "$dstDir"
cp -av -t "$dstDir" \
Cura \
resources \
plugins \
CuraEngine/build/CuraEngine \
Power/power \
scripts/linux/cura.py
echo "%{_version}" > "$dstDir/Cura/version"
cat > "$dstDir/Cura/versions" << EOF
# Git SHAs of software used to build %{_curaName}
Cura : %{_gitCura}
CuraEngine : %{_gitCuraEngine}
Power : %{_gitPower}
EOF
%install
mkdir -pv "%{buildroot}"
cp -av -t "%{buildroot}" "%{_baseDir}/usr"
%files
%defattr(-,root,root)
%{_bindir}/cura
%attr(644, root, root) %{_datarootdir}/applications/cura.desktop
%attr(755, root, root) %{_datarootdir}/cura/Cura/cura.py
%attr(755, root, root) %{_datarootdir}/cura/Cura/util/pymclevel/mce.py
%attr(755, root, root) %{_datarootdir}/cura/CuraEngine
%attr(755, root, root) %{_datarootdir}/cura/cura.py
%{_datarootdir}/cura
%changelog
* Wed Jan 14 2015 Ferry Huberts <ferry.huberts@pelagic.nl>
- Initial packaging, currently at version 15.01.RC7
|