From c22f7db20936a170891954b52f12320a92a5a6f03e8df62e4ac02d42d4fbfada Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Wed, 8 Jun 2016 06:55:38 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + firetools-0.9.30.tar.bz2 | 3 ++ firetools-qt-path-fix.diff | 22 ++++++++++++++ firetools.changes | 7 +++++ firetools.spec | 60 ++++++++++++++++++++++++++++++++++++++ 6 files changed, 116 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 firetools-0.9.30.tar.bz2 create mode 100644 firetools-qt-path-fix.diff create mode 100644 firetools.changes create mode 100644 firetools.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/firetools-0.9.30.tar.bz2 b/firetools-0.9.30.tar.bz2 new file mode 100644 index 0000000..3edfb83 --- /dev/null +++ b/firetools-0.9.30.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:600a5f2009e7797f47b1209eee0ae29fef24f3ee953b66f664fa6d6d695dfb35 +size 93652 diff --git a/firetools-qt-path-fix.diff b/firetools-qt-path-fix.diff new file mode 100644 index 0000000..572390f --- /dev/null +++ b/firetools-qt-path-fix.diff @@ -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 diff --git a/firetools.changes b/firetools.changes new file mode 100644 index 0000000..e462f0a --- /dev/null +++ b/firetools.changes @@ -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 + diff --git a/firetools.spec b/firetools.spec new file mode 100644 index 0000000..b45cb7e --- /dev/null +++ b/firetools.spec @@ -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