From 7bd3f10ecc013b087cfe531ad088c553d6861c4d Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Thu, 18 Feb 2016 15:22:35 +0100 Subject: [PATCH] Initial version --- .gitignore | 1 + qgnomeplatform.spec | 62 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 64 insertions(+) create mode 100644 qgnomeplatform.spec diff --git a/.gitignore b/.gitignore index e69de29..0a9facc 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/QGnomePlatform-0.1.tar.gz diff --git a/qgnomeplatform.spec b/qgnomeplatform.spec new file mode 100644 index 0000000..5281ae8 --- /dev/null +++ b/qgnomeplatform.spec @@ -0,0 +1,62 @@ +%if 0%{?fedora} >= 24 +%global qt5_ver 5.6 +%global qt5_ver_minor 0 +%else +%global qt5_ver 5.5 +%global qt5_ver_minor 1 +%endif +%global qt5_version %{qt5_ver}.%{qt5_ver_minor} + +Name: qgnomeplatform +Version: 0.1 +Release: 1%{?dist} +Summary: Qt Platform Theme aimed to accommodate Gnome settings + +License: LGPLv2+ +URL: https://github.com/MartinBriza/QGnomePlatform +Source0: https://github.com/MartinBriza/QGnomePlatform/archive/0.1.tar.gz#/QGnomePlatform-%{version}.tar.gz + +# Upstream patches + +BuildRequires: pkgconfig(gio-2.0) +BuildRequires: pkgconfig(udev) +BuildRequires: pkgconfig(xkbcommon) +BuildRequires: libinput-devel +BuildRequires: libXrender-devel +BuildRequires: qt5-qtbase-devel >= %{qt5_ver}.0 qt5-qtbase-devel <= %{qt5_ver}.100 +BuildRequires: qt5-qtbase-static + +Requires: qt5-qtbase%{?_isa} = %{qt5_version} + +%description +QGnomePlatform is a Qt Platform Theme aimed to accommodate as much of +GNOME settings as possibleand utilize them in Qt applications without +modifying them - making them fit into the environment as well as possible. + + +%prep +%setup -q -n QGnomePlatform-%{version} + + +%build +mkdir %{_target_platform} +pushd %{_target_platform} +%{qmake_qt5} .. +popd + +make %{?_smp_mflags} -C %{_target_platform} + + +%install +make install INSTALL_ROOT=%{buildroot} -C %{_target_platform} + + +%files +%doc README.md +%license LICENSE +%{_qt5_libdir}/qt5/plugins/platformthemes/libqgnomeplatform.so + + +%changelog +* Tue Feb 16 2016 Jan Grulich - 0.1-1 +- First version diff --git a/sources b/sources index e69de29..11c7297 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b99cc26a1cdd85dfcd1856890ff9e9c4 QGnomePlatform-0.1.tar.gz