forked from Timmmm/robocut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
robocut.spec
67 lines (52 loc) · 1.92 KB
/
robocut.spec
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
# norootforbuild
Name: robocut
Group: Productivity/Graphics/Other
Version: 1.0.10
Release: 1
License: GPL-3.0+
Summary: A program to cut SVG with CC220-20 and Silhouette SD/Cameo
Autoreqprov: on
# http://custom.ultramini.net/robocut-compatible-with-silhouette-cameo/
URL: https://github.com/nosliwneb/robocut
Source0: robocut-%{version}_1c019e7fad.zip
Source1: opensuse_chameleon_silhouette_x6.svg
BuildRoot:%{_tmppath}/%{name}-%{version}-build
BuildRequires: libqt4-devel libusb-1_0-devel unzip
# sudo apt-get install libqt4-dev libusb-1.0-0-dev git-core
%description
Robocut is a simple graphical program to allow you to cut graphics with a
Graphtec Craft Robo 2 Vinyl Cutter model CC220-20 and Sihouette SD, among other devices.
It can read SVG files produced by Inkscape, but it should also work with other
SVG files. Unlike the official programs, Robocut can run on Linux and probably
Mac OS X.
Inside the “examples” folder there is also a registration marks template fully
functional (yes, the Silhouette Cameo is able to recognize registration marks
also under Robocut, just put the page with the arrow pointing toward the
plotter and align the sheet with the top left corner of the cutting mat).
Authors
Tim Hutt, Markus Schulz
%prep
%setup -n %{name}-master
# opensuse_chameleon_silhouette_x6.svg
cp %{SOURCE1} .
%build
qmake
make
%install
install -D robocut $RPM_BUILD_ROOT/usr/bin/robocut
install -m 0644 -D images/robocut.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/robocut.xpm
install -d $RPM_BUILD_ROOT/usr/share/robocut/examples
install -m 0644 *.svg examples/* $RPM_BUILD_ROOT/usr/share/robocut/examples
install -m 0644 -D manfile.txt $RPM_BUILD_ROOT/usr/share/man/man1/robocut.1
# cleanup
%files
%defattr(-,root,root)
%doc readme.txt changelog
%_bindir/*
%_datadir/pixmaps/*
%dir %_datadir/robocut
%_datadir/robocut/*
%_mandir/man1/*
%clean
rm -rf $RPM_BUILD_ROOT
%changelog