Initial import (#1694292).
This commit is contained in:
parent
13df909e43
commit
5a6fed518a
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/yacreader-9.5.0-src.tar.xz
|
31
0001-Fix-YACReader-build-for-Qt-5.7.patch
Normal file
31
0001-Fix-YACReader-build-for-Qt-5.7.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
From 1fbf1195b997c11509afce8d4a7322e7561ab301 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Felix Kauselmann <licorn@gmail.com>
|
||||||
|
Date: Sun, 1 Jul 2018 14:39:46 +0200
|
||||||
|
Subject: [PATCH] Fix YACReader build for Qt <= 5.7
|
||||||
|
|
||||||
|
---
|
||||||
|
YACReader/main.cpp | 6 ++++++
|
||||||
|
1 file changed, 6 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/YACReader/main.cpp b/YACReader/main.cpp
|
||||||
|
index c6bf9c3..7e318ce 100644
|
||||||
|
--- a/YACReader/main.cpp
|
||||||
|
+++ b/YACReader/main.cpp
|
||||||
|
@@ -83,8 +83,14 @@ int main(int argc, char * argv[])
|
||||||
|
QCommandLineOption comicId("comicId", "", "comicId");
|
||||||
|
QCommandLineOption libraryId("libraryId", "", "libraryId");
|
||||||
|
// hide comicId and libraryId from help
|
||||||
|
+ #if QT_VERSION >= 0x050800
|
||||||
|
comicId.setFlags(QCommandLineOption::HiddenFromHelp);
|
||||||
|
libraryId.setFlags(QCommandLineOption::HiddenFromHelp);
|
||||||
|
+ #else
|
||||||
|
+ comicId.setHidden(true);
|
||||||
|
+ libraryId.setHidden(true);
|
||||||
|
+ #endif
|
||||||
|
+
|
||||||
|
// process
|
||||||
|
parser.addOption(comicId);
|
||||||
|
parser.addOption(libraryId);
|
||||||
|
--
|
||||||
|
2.18.0
|
||||||
|
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
|||||||
|
SHA512 (yacreader-9.5.0-src.tar.xz) = 6cd3b12b6f5ee7197fb3ac6e81f447678395c1dfffb562f133051825921f3056f3a439761fd8d6311e6af91c42a1004b88c79f8b9ed7dec190bd0a4eb9554f51
|
66
yacreader.spec
Normal file
66
yacreader.spec
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
%global app_name YACReader
|
||||||
|
|
||||||
|
Name: yacreader
|
||||||
|
Version: 9.5.0
|
||||||
|
Release: 6%{?dist}
|
||||||
|
Summary: Cross platform comic reader and library manager
|
||||||
|
|
||||||
|
# The entire source code is GPLv3+ except:
|
||||||
|
# BSD: QsLog
|
||||||
|
# folder_model
|
||||||
|
# MIT: pictureflow
|
||||||
|
License: GPLv3+ and BSD and MIT
|
||||||
|
URL: https://www.yacreader.com
|
||||||
|
Source0: https://github.com/YACReader/%{name}/releases/download/%{version}/%{name}-%{version}-src.tar.xz
|
||||||
|
Patch0: 0001-Fix-YACReader-build-for-Qt-5.7.patch
|
||||||
|
|
||||||
|
BuildRequires: desktop-file-utils
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: mesa-libGLU-devel
|
||||||
|
BuildRequires: pkgconfig(Qt5)
|
||||||
|
BuildRequires: pkgconfig(Qt5Multimedia)
|
||||||
|
BuildRequires: pkgconfig(Qt5ScriptTools)
|
||||||
|
BuildRequires: pkgconfig(libunarr)
|
||||||
|
BuildRequires: pkgconfig(poppler-qt5)
|
||||||
|
|
||||||
|
Requires: hicolor-icon-theme
|
||||||
|
|
||||||
|
%description
|
||||||
|
Best comic reader and comic manager with support for .cbr .cbz .zip .rar comic
|
||||||
|
files.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
# wrong-file-end-of-line-encoding fix
|
||||||
|
sed -i 's/\r$//' INSTALL.md README.txt
|
||||||
|
# file-not-utf8 fix
|
||||||
|
iconv -f iso8859-1 -t utf-8 README.txt > README.txt.conv && mv -f README.txt.conv README.txt
|
||||||
|
|
||||||
|
%build
|
||||||
|
%qmake_qt5
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install INSTALL_ROOT=%{buildroot}
|
||||||
|
%find_lang %{name} --with-qt
|
||||||
|
%find_lang %{name}library --with-qt
|
||||||
|
|
||||||
|
desktop-file-validate %{buildroot}%{_datadir}/applications/%{app_name}.desktop
|
||||||
|
desktop-file-validate %{buildroot}%{_datadir}/applications/%{app_name}Library.desktop
|
||||||
|
|
||||||
|
%files -f %{name}.lang -f %{name}library.lang
|
||||||
|
%doc CHANGELOG.md README.txt INSTALL.md
|
||||||
|
%license COPYING.txt
|
||||||
|
%{_bindir}/%{app_name}
|
||||||
|
%{_bindir}/%{app_name}Library
|
||||||
|
%{_datadir}/%{name}
|
||||||
|
%{_datadir}/applications/%{app_name}.desktop
|
||||||
|
%{_datadir}/applications/%{app_name}Library.desktop
|
||||||
|
%{_datadir}/icons/hicolor/scalable/apps/%{app_name}.svg
|
||||||
|
%{_datadir}/icons/hicolor/scalable/apps/%{app_name}Library.svg
|
||||||
|
%{_mandir}/man1/%{app_name}.1.*
|
||||||
|
%{_mandir}/man1/%{app_name}Library.1.*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Mar 29 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 9.5.0-6
|
||||||
|
- Initial package.
|
Loading…
Reference in New Issue
Block a user