cool-retro-term
100 строк · 3.1 Кб
1#
2# spec file for package cool-retro-term
3#
4# Copyright © 2014 Markus S. <kamikazow@web.de>
5#
6# This program is free software: you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation, either version 3 of the License, or
9# (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program. If not, see <http://www.gnu.org/licenses/>.
18
19Name: cool-retro-term
20Summary: Cool Retro Terminal
21Version: 1.0
22Release: 0%{?dist}
23Group: System/X11/Terminals
24License: GPL-3.0+
25URL: https://github.com/Swordfish90/cool-retro-term
26
27# For this spec file to work, the cool-retro-term sources must be located
28# in a directory named cool-retro-term-0.9 (with "0.9" being the version
29# number defined above).
30# If the sources are compressed in another format than .tar.xz, change the
31# file extension accordingly.
32Source0: %{name}-%{version}.tar.xz
33
34BuildRequires: pkgconfig(Qt5Core)
35BuildRequires: pkgconfig(Qt5Declarative)
36BuildRequires: pkgconfig(Qt5Gui)
37BuildRequires: pkgconfig(Qt5Quick)
38BuildRequires: desktop-file-utils
39
40# Package names only verified with Fedora and openSUSE.
41# Should the packages in your distro be named dirrerently,
42# see http://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto
43%if 0%{?fedora}
44Requires: qt5-qtbase
45Requires: qt5-qtbase-gui
46Requires: qt5-qtdeclarative
47Requires: qt5-qtgraphicaleffects
48Requires: qt5-qtquickcontrols
49%endif
50
51%if 0%{?suse_version}
52Requires: libqt5-qtquickcontrols
53Requires: libqt5-qtbase
54Requires: libQt5Gui5
55Requires: libqt5-qtdeclarative
56Requires: libqt5-qtgraphicaleffects
57%endif
58
59%description
60cool-retro-term is a terminal emulator which tries to mimic the look and feel
61of the old cathode tube screens. It has been designed to be eye-candy,
62customizable, and reasonably lightweight.
63
64%prep
65%setup -q
66
67%build
68qmake-qt5
69make %{?_smp_mflags}
70
71%install
72# Work around weird qmake behaviour: http://davmac.wordpress.com/2007/02/21/qts-qmake/
73make INSTALL_ROOT=%{buildroot} install
74
75desktop-file-install \
76--dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
77%{name}.desktop
78
79%files
80%defattr(-,root,root,-)
81%doc gpl-2.0.txt gpl-3.0.txt README.md
82%{_bindir}/%{name}
83%{_libdir}/qt5/qml/
84%{_datadir}/applications/%{name}.desktop
85%{_datadir}/icons/hicolor/*/*/*
86
87%clean
88rm -rf %{buildroot}
89
90%changelog
91* Sun Sep 7 14:03:35 UTC 2014 - kamikazow@web.de
92- cool-old-term has been renamed to cool-retro-term
93- Ported the spec file to CRT's new, way nicer build system <https://github.com/Swordfish90/cool-retro-term/pull/105>
94
95* Fri Aug 29 20:56:20 UTC 2014 - kamikazow@web.de
96- Fixed: QtDeclarative-devel is required for "qmlscene" binary
97
98* Fri Aug 1 14:09:35 UTC 2014 - kamikazow@web.de
99- First build
100- cool-old-term 0.9
101