yacreader/yacreader.spec

93 lines
2.4 KiB
RPMSpec
Raw Normal View History

2020-01-21 22:20:30 +00:00
# LTO
%global optflags %{optflags} -flto
%global build_ldflags %{build_ldflags} -flto
2019-09-27 15:04:46 +00:00
%global appname YACReader
2019-04-16 17:52:22 +00:00
Name: yacreader
2020-01-21 22:20:30 +00:00
Version: 9.6.2
Release: 2%{?dist}
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
2019-09-27 15:04:46 +00:00
Source0: https://github.com/YACReader/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
2019-04-16 17:52:22 +00:00
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
2019-09-27 15:04:46 +00:00
%{?systemd_requires}
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
%autosetup -p1
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
2020-01-21 22:20:30 +00:00
%{_datadir}/%{name}/
2019-09-27 15:04:46 +00:00
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/*/*.svg
2020-01-21 22:20:30 +00:00
%{_mandir}/man1/*
2019-09-27 15:04:46 +00:00
%{_userunitdir}/*.service
2019-04-16 17:52:22 +00:00
%changelog
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.6.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2020-01-21 22:20:30 +00:00
* Tue Jan 21 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 9.6.2-1
- Update to 9.6.2
- Enable LTO
2020-01-17 11:30:04 +00:00
* Fri Jan 17 2020 Marek Kasik <mkasik@redhat.com> - 9.6.0-2
- Rebuild for poppler-0.84.0
2019-09-27 15:04:46 +00:00
* Mon Sep 16 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 9.6.0-1
- Update to 9.6.0
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 9.5.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-04-16 17:52:22 +00:00
* Fri Mar 29 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 9.5.0-6
- Initial package.