Blame coolreader.spec

4faa55a
Summary: Cross platform open source e-book reader
4faa55a
Name: coolreader
2e54552
Version: 3.2.54
a2899f9
Release: 1%{?dist}
f11f19f
License: GPLv2+
4faa55a
URL: https://sourceforge.net/projects/crengine
4faa55a
Source0: https://github.com/buggins/coolreader/archive/cr%{version}/coolreader-cr%{version}.tar.gz
4faa55a
Source1: cr3.appdata.xml
4faa55a
4faa55a
BuildRequires: gcc-c++
f11f19f
BuildRequires: cmake
4faa55a
BuildRequires: pkgconfig(zlib)
4faa55a
BuildRequires: pkgconfig(libpng)
4faa55a
BuildRequires: pkgconfig(libjpeg)
e4695a8
BuildRequires: pkgconfig(fontconfig)
e4695a8
BuildRequires: pkgconfig(fribidi)
4faa55a
BuildRequires: pkgconfig(freetype2)
4faa55a
BuildRequires: pkgconfig(harfbuzz)
f11f19f
BuildRequires: pkgconfig(libunibreak)
f11f19f
BuildRequires: cmake(Qt5Core)
f11f19f
BuildRequires: cmake(Qt5Gui)
f11f19f
BuildRequires: cmake(Qt5LinguistTools)
4faa55a
4faa55a
BuildRequires: desktop-file-utils
4faa55a
BuildRequires: libappstream-glib
4faa55a
4faa55a
%description
4faa55a
CoolReader is fast and small cross-platform XML/CSS based eBook reader for
4faa55a
desktops and handheld devices. Supported formats: FB2, TXT, RTF, DOC, TCR,
4faa55a
HTML, EPUB, CHM, PDB, MOBI.
4faa55a
4faa55a
%prep
e000994
%autosetup -n %{name}-cr%{version}
4faa55a
4faa55a
%build
f11f19f
mkdir -p %{_vpath_builddir}
f11f19f
%cmake \
f11f19f
  -DGUI=QT5 \
f11f19f
  -DCMAKE_BUILD_TYPE=Release \
f11f19f
  -DMAX_IMAGE_SCALE_MUL=2 \
f11f19f
  -DDOC_DATA_COMPRESSION_LEVEL=3 \
f11f19f
  -DDOC_BUFFER_SIZE=0x1400000 \
e4695a8
  -D CMAKE_INSTALL_PREFIX=/usr \
f11f19f
  .
f11f19f
f11f19f
%cmake_build
4faa55a
4faa55a
%install
f11f19f
%cmake_install
4faa55a
install -D -pm 644 %{SOURCE1} %{buildroot}%{_metainfodir}/cr3.appdata.xml
4faa55a
f11f19f
# gather locale files
f11f19f
%find_lang cr3 --with-qt --without-mo
f11f19f
4faa55a
%check
4faa55a
desktop-file-validate %{buildroot}%{_datadir}/applications/cr3.desktop
4faa55a
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/cr3.appdata.xml
4faa55a
f11f19f
%files -f cr3.lang
4faa55a
%license LICENSE
4faa55a
%{_bindir}/cr3
4faa55a
%{_datadir}/applications/cr3.desktop
f11f19f
%dir %{_datadir}/cr3
f11f19f
%{_datadir}/cr3/*.css
f11f19f
%{_datadir}/cr3/backgrounds/
f11f19f
%{_datadir}/cr3/hyph/
f11f19f
%{_datadir}/cr3/textures/
4faa55a
%{_datadir}/pixmaps/cr3.*
f11f19f
%{_metainfodir}/cr3.appdata.xml
4faa55a
%{_mandir}/man1/cr3.1*
4faa55a
%doc %{_docdir}/cr3
4faa55a
%doc README.md
4faa55a
4faa55a
%changelog
2e54552
* Sun Mar 7 2021 Andy Mender <andymenderunix@fedoraproject.org> - 3.2.54-1
2e54552
- Update to version 3.2.54
2e54552
a2899f9
* Sun Feb 7 2021 Andy Mender <andymenderunix@fedoraproject.org> - 3.2.53-1
a2899f9
- Update to version 3.2.53
a2899f9
c58b06b
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.51-2
c58b06b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
c58b06b
e000994
* Mon Dec 28 2020 Andy Mender <andymenderunix@fedoraproject.org> - 3.2.51-1
e000994
- Update to version 3.2.51
e000994
- Remove LICENSE file patch (added to release by upstream)
e000994
e4695a8
* Sun Dec 6 2020 Andy Mender <andymenderunix@fedoraproject.org> - 3.2.50-2
e4695a8
- Add missing fribidi BuildRequires (bundled fribidi installed otherwise)
e4695a8
- Add missing fontconfig BuildRequires (fixes font finding)
e4695a8
- Clean up %%cmake call
e4695a8
- Remove unnecessary desktop file patch
e4695a8
f11f19f
* Sat Dec 5 2020 Andy Mender <andymenderunix@fedoraproject.org> - 3.2.50-1
f11f19f
- Update to version 3.2.50
f11f19f
- Add new BuildRequires libunibreak
f11f19f
- Build against Qt5, not Qt4 (Qt5 is tested by upstream)
f11f19f
- Use the cmake(foo) format for Qt5 BuildRequires
f11f19f
- Don't restrict minimal cmake version (3.17.0 in F32 already)
f11f19f
- Fix license from GPLv2 to GPLv2+ (never was GPLv2)
f11f19f
- Switch to out-of-source build (recommended by upstream)
f11f19f
- Properly install locales
f11f19f
9a5e27b
* Mon Oct 12 2020 Jeff Law <law@redhat.com> - 3.2.34-5
9a5e27b
- Use __cmake_in_source_build
9a5e27b
6c4a00a
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.34-4
6c4a00a
- Second attempt - Rebuilt for
6c4a00a
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
6c4a00a
bc06cd7
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.34-3
bc06cd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
bc06cd7
1e2edae
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.34-2
1e2edae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
1e2edae
2761d2a
* Mon Jan 13 2020 Sergey Avseyev <sergey.avseyev@gmail.com> - 3.2.34-1
2761d2a
- Update to 3.2.34
2761d2a
3ee6ee5
* Wed Nov 06 2019 Sergey Avseyev <sergey.avseyev@gmail.com> - 3.2.33-1
3ee6ee5
- Update to 3.2.33
3ee6ee5
76e1cd1
* Mon Oct 07 2019 Sergey Avseyev <sergey.avseyev@gmail.com> - 3.2.32-1
76e1cd1
- Update to 3.2.32
76e1cd1
3be6463
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.30-2
3be6463
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3be6463
1a38929
* Mon Jun 03 2019 Sergey Avseyev <sergey.avseyev@gmail.com> - 3.2.30-1
1a38929
- Update to 3.2.30
1a38929
4faa55a
* Sun Feb 24 2019 Sergey Avseyev <sergey.avseyev@gmail.com> - 3.2.29-1
4faa55a
- Initial package