forked from shw700/oztool
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoztool.spec
More file actions
55 lines (41 loc) · 1.27 KB
/
oztool.spec
File metadata and controls
55 lines (41 loc) · 1.27 KB
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
Summary: Graphical Oz Profile Editor
Name: oztool
Version: 1
Release: 2
Group: System Environment/Base
License: GPLV3
Url: https://github.com/shw700/oztool
Source0: %{name}-%{version}.tar.xz
BuildArch: x86_64
BuildRequires: go
Requires: cairo-gobject
BuildRequires: cairo-gobject-devel
BuildRequires: gtk3-devel
BuildRequires: git
Requires: dapper-oz-profiles
%description
Oztool is a graphical editor for Oz profiles. Oztool enables you to create and
modify existing profiles, and enables you to easily add whitelisted and blacklisted
paths on sandboxes.
%prep
%autosetup
%build
mkdir -p %{_builddir}/gocode/src/github.com/subgraph/
mv oztool %{_builddir}/gocode/src/github.com/subgraph/
export GOPATH=%{_builddir}/gocode
go get -tags gtk_3_20 github.com/gotk3/gotk3/gtk
go build -tags gtk_3_20 github.com/subgraph/oztool
%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datarootdir}/applications
install -m 755 oztool %{buildroot}%{_bindir}
cp %{_builddir}/gocode/src/github.com/subgraph/oztool/oztool.desktop %{buildroot}%{_datarootdir}/applications
%clean
%pre
%post
%files
%{_bindir}/oztool
%{_datarootdir}/applications/oztool.desktop
%changelog
* Sat Apr 8 2017 Matthew Ruffell <msr50@uclive.ac.nz>
- First packaging