aboutsummaryrefslogtreecommitdiffstats
path: root/platform/rpm/firejail.spec
blob: b32407c7d0c19a590c5d93e93caa33bb18607943 (plain) (blame)
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
Name: __NAME__
Version: __VERSION__
Release: 1
Summary: Linux namepaces sandbox program

License: GPLv2+
Group: Development/Tools
Source0: https://github.com/netblue30/firejail/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
URL: https://github.com/netblue30/firejail

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
Firejail is a SUID sandbox program that reduces the risk of security
breaches by restricting the running environment of untrusted applications
using Linux namespaces. It includes a sandbox profile for Mozilla Firefox.

%prep
%setup -q

%build
%configure --disable-userns --disable-contrib-install
make %{?_smp_mflags}

%install
rm -rf %{buildroot}
%make_install

%clean
rm -rf %{buildroot}

%files
%doc
%defattr(-, root, root, -)
%attr(4755, -, -) %{_bindir}/__NAME__
%{_bindir}/firecfg
%{_bindir}/firemon
%{_libdir}/__NAME__
%{_datarootdir}/bash-completion/completions/__NAME__
%{_datarootdir}/bash-completion/completions/firecfg
%{_datarootdir}/bash-completion/completions/firemon
%{_docdir}/__NAME__
%{_mandir}/man1/__NAME__.1.gz
%{_mandir}/man1/firecfg.1.gz
%{_mandir}/man1/firemon.1.gz
%{_mandir}/man5/__NAME__-login.5.gz
%{_mandir}/man5/__NAME__-profile.5.gz
%{_mandir}/man5/__NAME__-users.5.gz
%config(noreplace) %{_sysconfdir}/__NAME__