ee9eeb5
%global appname YACReader
5a6fed5
5a6fed5
Name:           yacreader
441e4d8
Version:        9.7.1
fc4637f
Release:        1%{?dist}
5a6fed5
Summary:        Cross platform comic reader and library manager
5a6fed5
5a6fed5
# The entire source code is GPLv3+ except:
5a6fed5
# BSD:          QsLog
5a6fed5
#               folder_model
5a6fed5
# MIT:          pictureflow
5a6fed5
License:        GPLv3+ and BSD and MIT
5a6fed5
URL:            https://www.yacreader.com
ee9eeb5
Source0:        https://github.com/YACReader/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
5a6fed5
5a6fed5
BuildRequires:  desktop-file-utils
5a6fed5
BuildRequires:  gcc-c++
5a6fed5
BuildRequires:  mesa-libGLU-devel
5a6fed5
BuildRequires:  pkgconfig(Qt5)
5a6fed5
BuildRequires:  pkgconfig(Qt5Multimedia)
5a6fed5
BuildRequires:  pkgconfig(Qt5ScriptTools)
5a6fed5
BuildRequires:  pkgconfig(libunarr)
5a6fed5
BuildRequires:  pkgconfig(poppler-qt5)
fc4637f
5a6fed5
Requires:       hicolor-icon-theme
292853b
Requires:       qt5-qtgraphicaleffects%{?_isa}
292853b
Requires:       qt5-qtquickcontrols%{?_isa}
fc4637f
ee9eeb5
%{?systemd_requires}
5a6fed5
5a6fed5
%description
3d792d1
Best comic reader and comic manager with support for .cbr .cbz .zip .rar comic
3d792d1
files.
ee9eeb5
5a6fed5
5a6fed5
%prep
5a6fed5
%autosetup -p1
3d792d1
5a6fed5
# wrong-file-end-of-line-encoding fix
ee9eeb5
sed -i 's/\r$//' INSTALL.md
3d792d1
5a6fed5
# file-not-utf8 fix
ee9eeb5
iconv -f iso8859-1 -t utf-8 README.md > README.md.conv && mv -f README.md.conv README.md
ee9eeb5
5a6fed5
5a6fed5
%build
5a6fed5
%qmake_qt5
5a6fed5
%make_build
5a6fed5
ee9eeb5
5a6fed5
%install
5a6fed5
%make_install INSTALL_ROOT=%{buildroot}
5a6fed5
%find_lang %{name} --with-qt
5a6fed5
%find_lang %{name}library --with-qt
5a6fed5
ee9eeb5
ee9eeb5
%check
3d792d1
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
ee9eeb5
5a6fed5
5a6fed5
%files -f %{name}.lang -f %{name}library.lang
5a6fed5
%license COPYING.txt
ee9eeb5
%doc CHANGELOG.md README.md INSTALL.md
ee9eeb5
%{_bindir}/%{appname}
ee9eeb5
%{_bindir}/%{appname}Library
ee9eeb5
%{_bindir}/%{appname}LibraryServer
3d792d1
%{_datadir}/%{name}/
ee9eeb5
%{_datadir}/applications/*.desktop
ee9eeb5
%{_datadir}/icons/hicolor/*/*/*.svg
3d792d1
%{_mandir}/man1/*
ee9eeb5
%{_userunitdir}/*.service
ee9eeb5
5a6fed5
5a6fed5
%changelog
441e4d8
* Sat Sep 12 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 9.7.1-1
441e4d8
- Update to 9.7.1
441e4d8
fc4637f
* Fri Sep  4 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 9.7.0-1
fc4637f
- Update to 9.7.0
fc4637f
20b40c2
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.6.2-4
20b40c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
20b40c2
292853b
* Sun Feb 02 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 9.6.2-3
292853b
- Add dep: qt5-qtgraphicaleffects
292853b
- Add dep: qt5-qtquickcontrols
292853b
1f26a86
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.6.2-2
1f26a86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
1f26a86
3d792d1
* Tue Jan 21 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 9.6.2-1
3d792d1
- Update to 9.6.2
3d792d1
- Enable LTO
3d792d1
4eb8b3f
* Fri Jan 17 2020 Marek Kasik <mkasik@redhat.com> - 9.6.0-2
4eb8b3f
- Rebuild for poppler-0.84.0
4eb8b3f
ee9eeb5
* Mon Sep 16 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 9.6.0-1
ee9eeb5
- Update to 9.6.0
ee9eeb5
9c555a6
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 9.5.0-7
9c555a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9c555a6
5a6fed5
* Fri Mar 29 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 9.5.0-6
5a6fed5
- Initial package.