mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-02-22 12:58:39 +00:00
Update and rename cool-old-term.spec to cool-retro-term.spec
Ported the spec file to CRT's new, way nicer build system. PS: Many thanks to Glen Oakley <goakley123@gmail.com> and Doug Newgard <scimmia at archlinux dot info> whose workarounds were used previously.
This commit is contained in:
parent
39bb5f5ee9
commit
1928d57f46
@ -1,12 +1,8 @@
|
|||||||
#
|
#
|
||||||
# spec file for package cool-old-term
|
# spec file for package cool-retro-term
|
||||||
#
|
#
|
||||||
# Copyright © 2014 Markus S. <kamikazow@web.de>
|
# Copyright © 2014 Markus S. <kamikazow@web.de>
|
||||||
#
|
#
|
||||||
# Contains snippets from https://aur.archlinux.org/packages/cool-old-term-git
|
|
||||||
# by Glen Oakley <goakley123@gmail.com>
|
|
||||||
# and Doug Newgard <scimmia at archlinux dot info>
|
|
||||||
#
|
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
@ -20,18 +16,18 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Name: cool-old-term
|
Name: cool-retro-term
|
||||||
Summary: Cool Old Terminal
|
Summary: Cool Retro Terminal
|
||||||
Version: 0.9
|
Version: 0.9.20140905
|
||||||
Release: 0%{?dist}
|
Release: 0%{?dist}
|
||||||
Group: System/X11/Terminals
|
Group: System/X11/Terminals
|
||||||
License: GPLv3
|
License: GPLv3
|
||||||
URL: https://github.com/Swordifish90/cool-old-term
|
URL: https://github.com/Swordifish90/cool-retro-term
|
||||||
|
|
||||||
# For this spec file to work, the cool-old-term sources must be located
|
# For this spec file to work, the cool-retro-term sources must be located
|
||||||
# in a directory named cool-old-term-0.9 (with "0.9" being the version
|
# in a directory named cool-retro-term-0.9 (with "0.9" being the version
|
||||||
# number defined above).
|
# number defined above).
|
||||||
# If the sources are compressed in another format than tar.xz, change the
|
# If the sources are compressed in another format than .tar.xz, change the
|
||||||
# file extension accordingly.
|
# file extension accordingly.
|
||||||
Source0: %{name}-%{version}.tar.xz
|
Source0: %{name}-%{version}.tar.xz
|
||||||
|
|
||||||
@ -39,17 +35,15 @@ BuildRequires: pkgconfig(Qt5Core)
|
|||||||
BuildRequires: pkgconfig(Qt5Declarative)
|
BuildRequires: pkgconfig(Qt5Declarative)
|
||||||
BuildRequires: pkgconfig(Qt5Gui)
|
BuildRequires: pkgconfig(Qt5Gui)
|
||||||
BuildRequires: pkgconfig(Qt5Quick)
|
BuildRequires: pkgconfig(Qt5Quick)
|
||||||
|
BuildRequires: desktop-file-utils
|
||||||
|
|
||||||
# Package names only verified with Fedora and openSUSE.
|
# Package names only verified with Fedora and openSUSE.
|
||||||
# Should the packages in your distro be named dirrerently,
|
# Should the packages in your distro be named dirrerently,
|
||||||
# see http://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto
|
# see http://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto
|
||||||
#
|
|
||||||
# QtDeclarative-devel required for "qmlscene" binary
|
|
||||||
%if 0%{?fedora}
|
%if 0%{?fedora}
|
||||||
Requires: qt5-qtbase
|
Requires: qt5-qtbase
|
||||||
Requires: qt5-qtbase-gui
|
Requires: qt5-qtbase-gui
|
||||||
Requires: qt5-qtdeclarative
|
Requires: qt5-qtdeclarative
|
||||||
Requires: qt5-qtdeclarative-devel
|
|
||||||
Requires: qt5-qtgraphicaleffects
|
Requires: qt5-qtgraphicaleffects
|
||||||
Requires: qt5-qtquickcontrols
|
Requires: qt5-qtquickcontrols
|
||||||
%endif
|
%endif
|
||||||
@ -59,12 +53,11 @@ Requires: libqt5-qtquickcontrols
|
|||||||
Requires: libqt5-qtbase
|
Requires: libqt5-qtbase
|
||||||
Requires: libQt5Gui5
|
Requires: libQt5Gui5
|
||||||
Requires: libqt5-qtdeclarative
|
Requires: libqt5-qtdeclarative
|
||||||
Requires: libqt5-qtdeclarative-devel
|
|
||||||
Requires: libqt5-qtgraphicaleffects
|
Requires: libqt5-qtgraphicaleffects
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
cool-old-term is a terminal emulator which tries to mimic the look and feel
|
cool-retro-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,
|
of the old cathode tube screens. It has been designed to be eye-candy,
|
||||||
customizable, and reasonably lightweight.
|
customizable, and reasonably lightweight.
|
||||||
|
|
||||||
@ -72,30 +65,43 @@ customizable, and reasonably lightweight.
|
|||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
pushd konsole-qml-plugin
|
qmake-qt5
|
||||||
qmake-qt5 -o Makefile konsole-qml-plugin.pro
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
popd
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
pushd konsole-qml-plugin
|
# Work around weird qmake behaviour: http://davmac.wordpress.com/2007/02/21/qts-qmake/
|
||||||
%{make_install}
|
make INSTALL_ROOT=%{buildroot} install
|
||||||
popd
|
|
||||||
|
|
||||||
install -d "%{buildroot}/%{_datadir}/%{name}/" "%{buildroot}/%{_bindir}"
|
desktop-file-install \
|
||||||
cp -a app imports "%{buildroot}/%{_datadir}/%{name}/"
|
--dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
|
||||||
echo -e '#!/bin/bash\nqmlscene -I /usr/share/cool-old-term/{imports,app/main.qml}' > "%{buildroot}/%{_bindir}/%{name}"
|
%{name}.desktop
|
||||||
chmod 755 "%{buildroot}/%{_bindir}/%{name}"
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc gpl-2.0.txt gpl-3.0.txt README.md
|
%doc gpl-2.0.txt gpl-3.0.txt README.md
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_datadir}/%{name}
|
%{_datadir}/applications/%{name}.desktop
|
||||||
# FIXME: Icon and Desktop files
|
# FIXME: Icon
|
||||||
# %{_datadir}/applications/%{name}.desktop
|
|
||||||
# %{_datadir}/pixmaps/%{name}.png
|
# %{_datadir}/pixmaps/%{name}.png
|
||||||
# %{_datadir}/icons/hicolor/*/*/*
|
# %{_datadir}/icons/hicolor/*/*/*
|
||||||
|
|
||||||
|
%if 0%{?suse_version}
|
||||||
|
%{_libqt5_archdatadir}/qml
|
||||||
|
%else
|
||||||
|
%{_libdir}/qt5/qml/org/crt
|
||||||
|
%endif
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sun Sep 7 14:03:35 UTC 2014 - kamikazow@web.de
|
||||||
|
- cool-old-term has been renamed to cool-retro-term
|
||||||
|
- Ported the spec file to CRT's new, way nicer build system <https://github.com/Swordfish90/cool-retro-term/pull/105>
|
||||||
|
|
||||||
|
* Fri Aug 29 20:56:20 UTC 2014 - kamikazow@web.de
|
||||||
|
- Fixed: QtDeclarative-devel is required for "qmlscene" binary
|
||||||
|
|
||||||
|
* Fri Aug 1 14:09:35 UTC 2014 - kamikazow@web.de
|
||||||
|
- First build
|
||||||
|
- cool-old-term 0.9
|
Loading…
x
Reference in New Issue
Block a user