From ef99c178a3fa39a8a77e8fcb228443532ab69070 Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Fri, 30 Oct 2020 21:08:28 +0800 Subject: qelly: Update to the latest git snapshot and fix Qt 5.15 build This project has been inactive for years. Instead of packaging the beta release and waiting for the project to make a stable release, which is unlikely to happen, just use the latest git snapshot. --- qelly/qelly/qelly-qt-5.15.patch | 12 ++++++++++++ qelly/qelly/qelly.spec | 22 ++++++++++++++-------- 2 files changed, 26 insertions(+), 8 deletions(-) create mode 100644 qelly/qelly/qelly-qt-5.15.patch (limited to 'qelly') diff --git a/qelly/qelly/qelly-qt-5.15.patch b/qelly/qelly/qelly-qt-5.15.patch new file mode 100644 index 0000000..d4dd80c --- /dev/null +++ b/qelly/qelly/qelly-qt-5.15.patch @@ -0,0 +1,12 @@ +diff --git a/src/View_p.cpp b/src/View_p.cpp +index 1a54161..2e79167 100644 +--- a/src/View_p.cpp ++++ b/src/View_p.cpp +@@ -23,6 +23,7 @@ + #include + #include + #include ++#include + #include + #include + #include "AbstractConnection.h" diff --git a/qelly/qelly/qelly.spec b/qelly/qelly/qelly.spec index 232e698..d59acd5 100644 --- a/qelly/qelly/qelly.spec +++ b/qelly/qelly/qelly.spec @@ -1,14 +1,15 @@ +%global commit 354e0b7b37655c327a6f7ddd283d3069b4cf1b8d +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + Name: qelly Version: 1.0 -Release: 0.16.beta%{?dist} +Release: 0.17.20160403git%{shortcommit}%{?dist} Summary: Qelly is a Qt port of Nally -%global real_name Qelly -%global real_version 1.0b - License: GPLv3 URL: https://github.com/uranusjr/Qelly -Source0: https://github.com/uranusjr/Qelly/archive/v%{real_version}.tar.gz#/%{name}-%{real_version}.tar.gz +Source0: https://github.com/uranusjr/Qelly/archive/%{commit}/Qelly-%{commit}.tar.gz +Patch0: qelly-qt-5.15.patch BuildRequires: gcc-c++ BuildRequires: qt5-qtbase-devel, qt5-linguist, libqxt-qt5-devel, chrpath @@ -22,7 +23,7 @@ minimal effort. The project is currently only a Qt version of Nally (hence the name), but more features from other Telnet/SSH clients are also planned. %prep -%autosetup -n %{real_name}-%{real_version} -p1 +%autosetup -n Qelly-%{commit} -p1 %build %{qmake_qt5} @@ -33,8 +34,8 @@ sed -i 's| -lQxt\([^ ]*\)| -lQxt\1-qt5|g' src/Makefile %install mkdir -p %{buildroot}/usr/bin -chrpath -d "bin/Qelly" -install -m 755 "bin/Qelly" "%{buildroot}/usr/bin" +chrpath -d bin/Qelly +install -m 755 bin/Qelly %{buildroot}/usr/bin %files %{_bindir}/Qelly @@ -42,6 +43,11 @@ install -m 755 "bin/Qelly" "%{buildroot}/usr/bin" %doc AUTHORS CHANGES README.md %changelog +* Fri Oct 30 2020 Ting-Wei Lan - 1.0-0.17.20160403git354e0b7 +- Update to the latest git snapshot +- Remove unnecessary quotes in install script +- Fix build with Qt 5.15 + * Thu Apr 23 2020 Ting-Wei Lan - 1.0-0.16.beta - Fix BuildRequires for Fedora 33 -- cgit v1.2.3