From 296c64eb73d2da5adcbfe6dd114c3835c22d66a4 Mon Sep 17 00:00:00 2001 From: KAMiKAZOW Date: Fri, 1 Aug 2014 16:33:50 +0200 Subject: [PATCH 1/4] Create cool-old-term.spec Add a spec file to create RPM packages of cool-old-term. Verified to work with both Fedora 20 and openSUSE Factory. Support for other RPM-based distros (Mageia comes to mind) is as easy as adding additional (Build)Requires conditions. --- cool-old-term.spec | 96 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 cool-old-term.spec diff --git a/cool-old-term.spec b/cool-old-term.spec new file mode 100644 index 0000000..869568d --- /dev/null +++ b/cool-old-term.spec @@ -0,0 +1,96 @@ +# +# spec file for package cool-old-term +# +# Copyright © 2014 Markus S. +# +# Contains snippets from https://aur.archlinux.org/packages/cool-old-term-git +# by Glen Oakley +# and Doug Newgard +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +Name: cool-old-term +Summary: Cool Old Terminal +Version: 0.9 +Release: 0%{?dist} +Group: System/GUI/Other +License: GPLv3 +URL: http://swordfishslabs.wordpress.com/ + +# For this spec file to work, the ympd 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 +# file extension accordingly. +Source0: %{name}-%{version}.zip + +# 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 +%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-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-qtgraphicaleffects +%endif + +%description +cool-old-term is a terminal emulator which tries to mimic the look and feel +of the old cathode tube screens. It has been designed to be eye-candy, +customizable, and reasonably lightweight. + +%prep +%setup -q + +%build +pushd konsole-qml-plugin +qmake-qt5 -o Makefile konsole-qml-plugin.pro +make %{?_smp_mflags} +popd + +%install +pushd konsole-qml-plugin +%{make_install} +popd + +install -d "%{buildroot}/%{_datadir}/%{name}/" "%{buildroot}/%{_bindir}" +cp -a app imports "%{buildroot}/%{_datadir}/%{name}/" +echo -e '#!/bin/bash\nqmlscene -I /usr/share/cool-old-term/{imports,app/main.qml}' > "%{buildroot}/%{_bindir}/%{name}" +chmod 755 "%{buildroot}/%{_bindir}/%{name}" + +%files +%doc gpl-2.0.txt gpl-3.0.txt README.md +%{_bindir}/%{name} +%{_datadir}/%{name} +# FIXME: Icon and Desktop files +# %{_datadir}/applications/%{name}.desktop +# %{_datadir}/pixmaps/%{name}.png +# %{_datadir}/icons/hicolor/*/*/* + +%clean +rm -rf %{buildroot} From b81818f74d9cbf51046970073a85b70375a3b136 Mon Sep 17 00:00:00 2001 From: KAMiKAZOW Date: Fri, 1 Aug 2014 16:43:41 +0200 Subject: [PATCH 2/4] Update cool-old-term.spec Name fix --- cool-old-term.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cool-old-term.spec b/cool-old-term.spec index 869568d..a07739b 100644 --- a/cool-old-term.spec +++ b/cool-old-term.spec @@ -28,7 +28,7 @@ Group: System/GUI/Other License: GPLv3 URL: http://swordfishslabs.wordpress.com/ -# For this spec file to work, the ympd sources must be located in a directory +# 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 # file extension accordingly. From 17f605275e7755114a2ab702967780884d93ef74 Mon Sep 17 00:00:00 2001 From: KAMiKAZOW Date: Mon, 4 Aug 2014 01:34:44 +0200 Subject: [PATCH 3/4] Update and rename cool-old-term.spec to rpm/cool-old-term.spec Put specfile in a subdirectory and add a line that was missing before --- cool-old-term.spec => rpm/cool-old-term.spec | 1 + 1 file changed, 1 insertion(+) rename cool-old-term.spec => rpm/cool-old-term.spec (99%) diff --git a/cool-old-term.spec b/rpm/cool-old-term.spec similarity index 99% rename from cool-old-term.spec rename to rpm/cool-old-term.spec index a07739b..1f6f8b7 100644 --- a/cool-old-term.spec +++ b/rpm/cool-old-term.spec @@ -84,6 +84,7 @@ echo -e '#!/bin/bash\nqmlscene -I /usr/share/cool-old-term/{imports,app/main.qml chmod 755 "%{buildroot}/%{_bindir}/%{name}" %files +%defattr(-,root,root,-) %doc gpl-2.0.txt gpl-3.0.txt README.md %{_bindir}/%{name} %{_datadir}/%{name} From eab0eec74697e430c5b7b0ad53d641146bd1e922 Mon Sep 17 00:00:00 2001 From: KAMiKAZOW Date: Mon, 4 Aug 2014 01:35:46 +0200 Subject: [PATCH 4/4] Rename rpm/cool-old-term.spec to packaging/rpm/cool-old-term.spec --- {rpm => packaging/rpm}/cool-old-term.spec | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {rpm => packaging/rpm}/cool-old-term.spec (100%) diff --git a/rpm/cool-old-term.spec b/packaging/rpm/cool-old-term.spec similarity index 100% rename from rpm/cool-old-term.spec rename to packaging/rpm/cool-old-term.spec