|
|
1e7f939 |
# Based on initial .spec file from upstream, link here
|
|
|
1e7f939 |
# https://github.com/netblue30/firejail/blob/master/platform/rpm/firejail.spec
|
|
|
1e7f939 |
# Originally created by Firejail authors
|
|
|
1e7f939 |
|
|
|
1e7f939 |
Name: firejail
|
|
|
1e7f939 |
Version: 0.9.56
|
|
|
1e7f939 |
Release: 6%{?dist}
|
|
|
1e7f939 |
Summary: Linux namespaces sandbox program
|
|
|
1e7f939 |
BuildRequires: gcc make python3-devel
|
|
|
1e7f939 |
|
|
|
1e7f939 |
# spec released under GPLv2+, contacted upstream whether it can be
|
|
|
1e7f939 |
# released under MIT
|
|
|
1e7f939 |
License: GPLv2+
|
|
|
1e7f939 |
URL: https://github.com/netblue30/firejail
|
|
|
1e7f939 |
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
1e7f939 |
|
|
|
1e7f939 |
%description
|
|
|
1e7f939 |
Firejail is a SUID sandbox program that reduces the risk of security
|
|
|
1e7f939 |
breaches by restricting the running environment of untrusted applications
|
|
|
1e7f939 |
using Linux namespaces. It includes a sandbox profile for Mozilla Firefox.
|
|
|
1e7f939 |
|
|
|
1e7f939 |
%prep
|
|
|
1e7f939 |
%autosetup
|
|
|
1e7f939 |
|
|
|
1e7f939 |
%build
|
|
|
1e7f939 |
%configure
|
|
|
1e7f939 |
%make_build
|
|
|
1e7f939 |
|
|
|
1e7f939 |
%install
|
|
|
1e7f939 |
%make_install
|
|
|
1e7f939 |
chmod 0755 %{buildroot}%{_libdir}/%{name}/lib*.so
|
|
|
1e7f939 |
for f in \
|
|
|
1e7f939 |
%{buildroot}%{_libdir}/%{name}/fj-mkdeb.py \
|
|
|
1e7f939 |
%{buildroot}%{_libdir}/%{name}/fjclip.py \
|
|
|
1e7f939 |
%{buildroot}%{_libdir}/%{name}/fjdisplay.py \
|
|
|
1e7f939 |
%{buildroot}%{_libdir}/%{name}/fjresize.py
|
|
|
1e7f939 |
do
|
|
|
1e7f939 |
sed -i "1 s/^.*$/\#\!\/usr\/bin\/python3/" "$f";
|
|
|
1e7f939 |
done
|
|
|
1e7f939 |
|
|
|
1e7f939 |
%files
|
|
|
1e7f939 |
%doc README RELNOTES CONTRIBUTING.md
|
|
|
1e7f939 |
%license COPYING
|
|
|
1e7f939 |
|
|
|
1e7f939 |
%{_bindir}/firecfg
|
|
|
1e7f939 |
%{_bindir}/firemon
|
|
|
1e7f939 |
%{_bindir}/%{name}
|
|
|
1e7f939 |
%{_libdir}/%{name}
|
|
|
1e7f939 |
%{_datarootdir}/bash-completion/completions/
|
|
|
1e7f939 |
%{_docdir}/%{name}/COPYING
|
|
|
1e7f939 |
%{_mandir}/man5/%{name}-login.5.*
|
|
|
1e7f939 |
%{_mandir}/man5/%{name}-profile.5.*
|
|
|
1e7f939 |
%{_mandir}/man5/%{name}-users.5.*
|
|
|
1e7f939 |
%{_mandir}/man1/*
|
|
|
1e7f939 |
%config(noreplace) %{_sysconfdir}/%{name}
|
|
|
1e7f939 |
|
|
|
1e7f939 |
%changelog
|
|
|
1e7f939 |
* Thu Nov 22 2018 Ondrej Dubaj <odubaj@redhat.com> 0.9.56-6
|
|
|
1e7f939 |
- Added python3-devel to BuildRequires, modified python shebangs
|
|
|
1e7f939 |
|
|
|
1e7f939 |
* Wed Nov 21 2018 Ondrej Dubaj <odubaj@redhat.com> 0.9.56-5
|
|
|
1e7f939 |
- Modified path to bash completion scripts
|
|
|
1e7f939 |
|
|
|
1e7f939 |
* Mon Nov 19 2018 Ondrej Dubaj <odubaj@redhat.com> 0.9.56-4
|
|
|
1e7f939 |
- Fixed problem with bash completion scripts
|
|
|
1e7f939 |
|
|
|
1e7f939 |
* Thu Nov 15 2018 Ondrej Dubaj <odubaj@redhat.com> 0.9.56-3
|
|
|
1e7f939 |
- Fixed .spec file according to review request comments (#1645172)
|
|
|
1e7f939 |
|
|
|
1e7f939 |
* Thu Nov 8 2018 Ondrej Dubaj <odubaj@redhat.com> 0.9.56-2
|
|
|
1e7f939 |
- Fixed .spec file according to review request comments (#1645172)
|
|
|
1e7f939 |
|
|
|
1e7f939 |
* Mon Oct 22 2018 Ondrej Dubaj <odubaj@redhat.com> 0.9.56-1
|
|
|
1e7f939 |
- First firejail RPM package for Fedora
|