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
6d713a3
Version: 0.9.62.4
a293683
Release: 1%{?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
b54ff3a
%autosetup -p1
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
a293683
%{_docdir}/%{name}/profile.template
a293683
%{_docdir}/%{name}/redirect_alias-profile.template
a293683
%{_docdir}/%{name}/syscalls.txt
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
6d713a3
* Tue Aug 18 2020 Ondrej Dubaj <odubaj@redhat.com> - 0.9.62.4-1
6d713a3
- Rebase to version 0.9.62.4
6d713a3
79b484b
* Wed Aug 12 2020 Ondrej Dubaj <odubaj@redhat.com> - 0.9.62.2-1
79b484b
- Rebase to version 0.9.62.2
79b484b
a293683
* Mon Feb 17 2020 Ondrej Dubaj <odubaj@redhat.com> - 0.9.62-1
a293683
- Rebase to version 0.9.62
a293683
b54ff3a
* Mon Jul 29 2019 Ondrej Dubaj <odubaj@redhat.com> 0.9.56-9
b54ff3a
- Resolved f31 build errors
b54ff3a
5a3443b
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.56-8
5a3443b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
5a3443b
05fbc4a
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.56-7
05fbc4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
05fbc4a
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