From: Elan Ruusamäe Date: Sat, 10 Sep 2016 08:07:55 +0000 (+0300) Subject: new, version 1.0.0 X-Git-Tag: auto/th/cool-retro-term-1.0.0-1~4 X-Git-Url: https://git.pld-linux.org/?p=packages%2Fcool-retro-term.git;a=commitdiff_plain;h=55e301e50f4295d24f4654b2291b720e80b7791d new, version 1.0.0 based on upstream .spec --- 55e301e50f4295d24f4654b2291b720e80b7791d diff --git a/cool-retro-term.spec b/cool-retro-term.spec new file mode 100644 index 0000000..1b0aaa0 --- /dev/null +++ b/cool-retro-term.spec @@ -0,0 +1,53 @@ +# TODO +# - create and use system package for qmltermwidget? + +%define qtver 5.2 +Summary: A good looking terminal emulator which mimics the old cathode display +Name: cool-retro-term +Version: 1.0.0 +Release: 0.2 +License: GPL-3.0+ +Group: X11/Applications +Source0: https://github.com/Swordfish90/cool-retro-term/archive/v%{version}/%{name}-%{version}.tar.gz +# Source0-md5: 06e73fbffcb5fd55695e5ec4034e3ad1 +Source1: https://github.com/Swordfish90/qmltermwidget/archive/490eeaf195cd5764a3798c2a2340ced648db4526/qmltermwidget.tar.gz +# Source1-md5: 64d5f6ee2f8d01512209f211d2533e7d +URL: https://github.com/Swordfish90/cool-retro-term +BuildRequires: Qt5Core-devel >= %{qtver} +BuildRequires: Qt5Declarative-devel >= %{qtver} +BuildRequires: Qt5Gui-devel >= %{qtver} +BuildRequires: Qt5Quick-devel >= %{qtver} +BuildRequires: desktop-file-utils +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +cool-retro-term is a terminal emulator which mimics 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 -a1 +mv qmltermwidget-*/* qmltermwidget + +%build +qmake-qt5 +%{__make} \ + CXX="%{__cxx}" + +%install +rm -rf $RPM_BUILD_ROOT +%{__make} install \ + INSTALL_ROOT=$RPM_BUILD_ROOT + +desktop-file-install --dir=$RPM_BUILD_ROOT%{_desktopdir} %{name}.desktop + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc README.md +%attr(755,root,root) %{_bindir}/%{name} +%{_libdir}/qt5/qml/QMLTermWidget +%{_desktopdir}/%{name}.desktop +%{_iconsdir}/hicolor/*/*/*.png