[se-sandbox-runner/f20] Version 1.6.12-qt5/qt4
f1ash
f1ash at fedoraproject.org
Tue Dec 9 19:33:46 UTC 2014
commit 4da122dab8657c7264932e9419b7088032f23c02
Author: F1ash <kaperang07 at gmail.com>
Date: Tue Dec 9 22:33:47 2014 +0300
Version 1.6.12-qt5/qt4
se-sandbox-runner.spec | 123 +++++++++++++++++++++---------------------------
sources | 2 +-
2 files changed, 55 insertions(+), 70 deletions(-)
---
diff --git a/se-sandbox-runner.spec b/se-sandbox-runner.spec
index 214cfac..75bd293 100644
--- a/se-sandbox-runner.spec
+++ b/se-sandbox-runner.spec
@@ -1,8 +1,11 @@
%global cmake_build_dir build-cmake
+%global debug_package %{nil}
+%bcond_without qt4
+%bcond_without qt5
Name: se-sandbox-runner
Version: 1.6.12
-Release: 1%{?dist}
+Release: 3%{?dist}
Summary: Qt wrapper for SELinux Sandbox
Group: Applications/System
License: GPLv2+
@@ -16,7 +19,13 @@ Requires: selinux-policy-sandbox
%endif
# for compatibility with the current version
Requires: sandbox-runner-data >= 0.3.3
+Conflicts: se-sandbox-runner
+%if %with qt4
BuildRequires: qt4-devel
+%endif
+%if %with qt5
+BuildRequires: qt5-qtbase-devel
+%endif
BuildRequires: desktop-file-utils
BuildRequires: cmake
@@ -25,20 +34,56 @@ Qt wrapper for SELinux Sandbox.
This application runs and controls the configured jobs, running in a sandbox.
Job settings are saved in the application's configuration.
+%package qt4
+Summary: Qt4 wrapper for SELinux Sandbox
+# it has the same binaries with se-sandbox-runner-qt5
+Conflicts: se-sandbox-runner-qt5
+
+%description qt4
+Qt4 wrapper for SELinux Sandbox.
+This application runs and controls the configured jobs, running in a sandbox.
+Job settings are saved in the application's configuration.
+
+%package qt5
+Summary: Qt5 wrapper for SELinux Sandbox
+# it has the same binaries with se-sandbox-runner-qt4
+Conflicts: se-sandbox-runner-qt4
+
+%description qt5
+Qt5 wrapper for SELinux Sandbox.
+This application runs and controls the configured jobs, running in a sandbox.
+Job settings are saved in the application's configuration.
+
%prep
%setup -q
-mkdir %{cmake_build_dir}
%build
-pushd %{cmake_build_dir}
+%if %with qt4
+mkdir %{cmake_build_dir}-qt4
+pushd %{cmake_build_dir}-qt4
%cmake ..
- make %{?_smp_mflags}
+ %{make_build}
+popd
+%endif
+%if %with qt5
+mkdir %{cmake_build_dir}-qt5
+pushd %{cmake_build_dir}-qt5
+ %cmake -DBUILD_QT_VERSION=5 ..
+ %{make_build}
popd
+%endif
%install
-pushd %{cmake_build_dir}
- %make_install
+%if %with qt4
+pushd %{cmake_build_dir}-qt4
+ %{make_install}
+popd
+%endif
+%if %with qt5
+pushd %{cmake_build_dir}-qt5
+ %{make_install}
popd
+%endif
%check
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
@@ -49,67 +94,7 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}.desktop
%changelog
-* Tue Jul 8 2014 Fl at sh <kaperang07 at gmail.com> - 1.6.12-1
-- version updated;
-
-* Thu Feb 13 2014 Fl at sh <kaperang07 at gmail.com> - 1.6.10-1
-- changed the selinux-policy-sandbox version in R;
-- version updated;
-
-* Sat Feb 8 2014 Fl at sh <kaperang07 at gmail.com> - 1.6.8-2
-- added a condition to the selinux-policy-sandbox requirement;
-- release updated;
-
-* Fri Feb 7 2014 Fl at sh <kaperang07 at gmail.com> - 1.6.8-1
-- added selinux-policy-sandbox to R;
-- version updated;
-
-* Wed Jan 22 2014 Fl at sh <kaperang07 at gmail.com> - 1.4.7-1
-- added sandbox-runner-data to R;
-- removed hicolor-icon-theme, oxygen-icon-theme from R;
-- removed Icon_Cache ScriptletSnippets;
-- removed unnecessary %%files path;
-- version updated;
-
-* Fri Dec 27 2013 Fl at sh <kaperang07 at gmail.com> - 1.3.5-1
-- added new icon path & Icon_Cache ScriptletSnippets;
-- added hicolor-icon-theme to R;
-- version updated;
-
-* Tue Nov 26 2013 Fl at sh <kaperang07 at gmail.com> - 1.3.4-1
-- version updated;
-
-* Sat Sep 14 2013 Fl at sh <kaperang07 at gmail.com> - 1.3.3-2
+* Wed Dec 3 2014 Fl at sh <kaperang07 at gmail.com> - 1.6.12-3
+- changed for both qt4 and qt5 building;
- release updated;
-
-* Thu Sep 12 2013 Fl at sh <kaperang07 at gmail.com> - 1.3.3-1
-- version updated;
-- spec simplified :
-- Application's Icon directory changed to %%{_datadir}/pixmaps;
-- removed hicolor-icon-theme from R;
-- removed Icon_Cache ScriptletSnippets;
-- returned back the short Source0 path
-
-* Fri Sep 6 2013 Igor Gnatenko <i.gnatenko.brain at gmail.com> - 1.3.2-2
-- move desktop-file-validate to %%check section
-- use %%make_install tag instead of make install DESTDIR=%%{buildroot}
-- remove gcc-c++ from BR
-- %%global instead of %%define
-- remove qt4 from R
-- add hicolor-icon-theme as R
-
-* Mon Sep 2 2013 Fl at sh <kaperang07 at gmail.com> - 1.3.2-1
-- version updated
-
-* Sat Aug 24 2013 Fl at sh <kaperang07 at gmail.com> - 1.2.1-1
-- some fixes
-
-* Fri Aug 23 2013 Fl at sh <kaperang07 at gmail.com> - 1.2-2
-- fixed description;
-- release updated
-
-* Thu Aug 22 2013 Fl at sh <kaperang07 at gmail.com> - 1.2-1
-- version updated;
-
-* Sat Jul 20 2013 Fl at sh <kaperang07 at gmail.com> - 1.0-1
-- Initial build
+- spec %%changelog cleared;
diff --git a/sources b/sources
index 4e50f64..9ec30dd 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-b54d0211da6ae8bb6881925888090e19 1.6.12.tar.gz
+3322b69df112c015c04258f70d84155e 1.6.12.tar.gz
More information about the scm-commits
mailing list