yacreader/yacreader.spec

83 lines
2.0 KiB
RPMSpec
Raw Permalink Normal View History

2019-09-27 15:04:46 +00:00
%global appname YACReader
2022-10-02 13:29:47 +00:00
%global versuf 2210021
2019-04-16 17:52:22 +00:00
Name: yacreader
2022-10-02 13:29:47 +00:00
Version: 9.9.2
2022-09-04 13:24:39 +00:00
Release: %autorelease
2019-04-16 17:52:22 +00:00
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}.%{versuf}-src.tar.xz
2019-04-16 17:52:22 +00:00
BuildRequires: desktop-file-utils
BuildRequires: gcc-c++
BuildRequires: make
2019-04-16 17:52:22 +00:00
BuildRequires: mesa-libGLU-devel
BuildRequires: systemd-rpm-macros
BuildRequires: pkgconfig(libunarr)
BuildRequires: pkgconfig(poppler-qt5)
2019-04-16 17:52:22 +00:00
BuildRequires: pkgconfig(Qt5)
BuildRequires: pkgconfig(Qt5Multimedia)
2022-09-04 13:26:03 +00:00
BuildRequires: pkgconfig(Qt5QuickControls2)
2019-04-16 17:52:22 +00:00
BuildRequires: pkgconfig(Qt5ScriptTools)
BuildRequires: pkgconfig(Qt5Svg)
# For YACReaderLibrary QR Code display
BuildRequires: pkgconfig(libqrencode)
2020-09-04 19:06:37 +00:00
2019-04-16 17:52:22 +00:00
Requires: hicolor-icon-theme
Requires: qt5-qtgraphicaleffects%{?_isa}
Requires: qt5-qtquickcontrols%{?_isa}
2020-09-04 19:06:37 +00:00
2019-04-16 17:52:22 +00:00
%description
2020-01-21 22:20:30 +00:00
Best comic reader and comic manager with support for .cbr .cbz .zip .rar comic
files.
2019-09-27 15:04:46 +00:00
2019-04-16 17:52:22 +00:00
%prep
2022-09-04 13:26:03 +00:00
%autosetup -n %{name}-%{version}.%{versuf}
2020-01-21 22:20:30 +00:00
2019-04-16 17:52:22 +00:00
# wrong-file-end-of-line-encoding fix
2019-09-27 15:04:46 +00:00
sed -i 's/\r$//' INSTALL.md
2020-01-21 22:20:30 +00:00
2019-04-16 17:52:22 +00:00
# file-not-utf8 fix
2019-09-27 15:04:46 +00:00
iconv -f iso8859-1 -t utf-8 README.md > README.md.conv && mv -f README.md.conv README.md
2019-04-16 17:52:22 +00:00
%build
%qmake_qt5
%make_build
2019-09-27 15:04:46 +00:00
2019-04-16 17:52:22 +00:00
%install
%make_install INSTALL_ROOT=%{buildroot}
%find_lang %{name} --with-qt
%find_lang %{name}library --with-qt
2019-09-27 15:04:46 +00:00
%check
2020-01-21 22:20:30 +00:00
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
2019-09-27 15:04:46 +00:00
2019-04-16 17:52:22 +00:00
%files -f %{name}.lang -f %{name}library.lang
%license COPYING.txt
2019-09-27 15:04:46 +00:00
%doc CHANGELOG.md README.md INSTALL.md
%{_bindir}/%{appname}
%{_bindir}/%{appname}Library
%{_bindir}/%{appname}LibraryServer
2022-09-04 13:26:03 +00:00
%{_datadir}/%{name}/server/
2019-09-27 15:04:46 +00:00
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/*/*.svg
%{_mandir}/man1/*.1*
2019-09-27 15:04:46 +00:00
%{_userunitdir}/*.service
2022-09-04 13:26:03 +00:00
%dir %{_datadir}/%{name}/
2019-09-27 15:04:46 +00:00
2019-04-16 17:52:22 +00:00
%changelog
2022-09-04 13:24:39 +00:00
%autochangelog