Accepting request 398996 from home:tiwai:firejail

This is a new package, a GUI launcher for firejail.
Since firejail was accepted in Virtualization, I submit to the same project.

OBS-URL: https://build.opensuse.org/request/show/398996
OBS-URL: https://build.opensuse.org/package/show/Virtualization/firetools?expand=0&rev=1
This commit is contained in:
Olaf Hering 2016-06-08 06:55:38 +00:00 committed by Git OBS Bridge
commit c22f7db209
6 changed files with 116 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
firetools-0.9.30.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:600a5f2009e7797f47b1209eee0ae29fef24f3ee953b66f664fa6d6d695dfb35
size 93652

View File

@ -0,0 +1,22 @@
---
configure.ac | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
--- a/configure.ac
+++ b/configure.ac
@@ -60,13 +60,11 @@ elif test -f /usr/lib/qt4/libQtCore.so
then
echo "Found qt4 library in /usr/lib/qt4 directory"
else
- AC_CHECK_LIB([QtCore], [main], [], AC_MSG_ERROR([*** QtCore library not installed - please install Qt4 or Qt5 first ***]))
- AC_CHECK_LIB([QtGui], [main], [], AC_MSG_ERROR([*** QtCore library not installed - please install Qt4 or Qt5 first ***]))
-
+ PKG_CHECK_MODULES(QT5CORE, Qt5Core Qt5Gui)
fi
# testing qmake
-QMAKE=`which qmake`
+test -z "$QMAKE" && QMAKE=`which qmake`
if test -z "$QMAKE"
then
# fix for Fedora

7
firetools.changes Normal file
View File

@ -0,0 +1,7 @@
-------------------------------------------------------------------
Tue May 17 18:01:27 CEST 2016 - tiwai@suse.de
- Initial package: 0.9.30
- Fix the hackish configure.ac to build properly:
firetools-qt-path-fix.diff

60
firetools.spec Normal file
View File

@ -0,0 +1,60 @@
#
# spec file for package firejail
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: firetools
Version: 0.9.30
Release: 0
Summary: GUI for Firajail security sandbox
License: GPL-2.0
Group: Productivity/Security
Url: http://firejail.sourceforge.net
Source0: http://firejail.sourceforge.net/%{name}-%{version}.tar.bz2
Patch1: firetools-qt-path-fix.diff
BuildRequires: gcc-c++
BuildRequires: libqt5-qtbase-devel
BuildRequires: libQt5Svg5
BuildRequires: automake
BuildRequires: autoconf
Requires: firejail >= %{version}
Requires: libQt5Svg5
%description
Firetools is the graphical user interface of Firajail security sandbox.
%prep
%setup -q
%patch1 -p1
autoreconf -fi
%build
export QMAKE=qmake-qt5
%configure --docdir=%{_docdir}/%{name}
make %{?_smp_mflags} VERBOSE=1
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
%files
%defattr(-,root,root)
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%doc %{_docdir}/%{name}
%{_mandir}/man1/*
%changelog