From d81c1200241c7090013bb93d6521ada983850ea1 Mon Sep 17 00:00:00 2001 From: KAMiKAZOW Date: Fri, 29 Aug 2014 23:31:37 +0200 Subject: [PATCH] Fix specfile serious bug: qmlscene not installed To run cool-old-term Qt5's qmlscene binary is required. The specfile, however, did not have QtDeclarative-devel as requirement specified. I also made some adjustments to the BuildRequirements as "pkgconfig" is the recommended cross-distro way, hopefully enabling building cool-old-term under Mageia 5. --- packaging/rpm/cool-old-term.spec | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/packaging/rpm/cool-old-term.spec b/packaging/rpm/cool-old-term.spec index 6d66575..92af768 100644 --- a/packaging/rpm/cool-old-term.spec +++ b/packaging/rpm/cool-old-term.spec @@ -28,34 +28,38 @@ Group: System/X11/Terminals License: GPLv3 URL: https://github.com/Swordifish90/cool-old-term -# For this spec file to work, the cool-old-term sources must be located in a directory -# named cool-old-term-0.9 (with "0.9" being the version number defined above). -# If the sources are compressed in another format than ZIP, change the +# For this spec file to work, the cool-old-term sources must be located +# in a directory named cool-old-term-0.9 (with "0.9" being the version +# number defined above). +# If the sources are compressed in another format than tar.xz, change the # file extension accordingly. -Source0: %{name}-%{version}.zip +Source0: %{name}-%{version}.tar.xz + +BuildRequires: pkgconfig(Qt5Core) +BuildRequires: pkgconfig(Qt5Declarative) +BuildRequires: pkgconfig(Qt5Gui) +BuildRequires: pkgconfig(Qt5Quick) # Package names only verified with Fedora and openSUSE. # Should the packages in your distro be named dirrerently, # see http://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto +# +# QtDeclarative-devel required for "qmlscene" binary %if 0%{?fedora} -BuildRequires: qt5-qtbase-devel -BuildRequires: qt5-qtdeclarative-devel -BuildRequires: unzip Requires: qt5-qtbase Requires: qt5-qtbase-gui Requires: qt5-qtdeclarative +Requires: qt5-qtdeclarative-devel Requires: qt5-qtgraphicaleffects Requires: qt5-qtquickcontrols %endif %if 0%{?suse_version} -BuildRequires: libqt5-qtbase-devel -BuildRequires: libqt5-qtdeclarative-devel -BuildRequires: unzip Requires: libqt5-qtquickcontrols Requires: libqt5-qtbase Requires: libQt5Gui5 Requires: libqt5-qtdeclarative +Requires: libqt5-qtdeclarative-devel Requires: libqt5-qtgraphicaleffects %endif