gimagereader/gimagereader.spec

350 lines
12 KiB
RPMSpec
Raw Normal View History

2014-02-13 13:44:30 +00:00
Name: gimagereader
2022-01-28 23:17:51 +00:00
Version: 3.4.0
Release: 6%{?dist}
2014-12-15 15:49:04 +00:00
Summary: A front-end to tesseract-ocr
2014-02-13 13:44:30 +00:00
2014-12-15 15:49:04 +00:00
License: GPLv3+
URL: https://github.com/manisandro/gimagereader
Source0: https://github.com/manisandro/gimagereader/releases/download/v%{version}/%{name}-%{version}.tar.xz
2014-05-04 12:38:16 +00:00
2018-02-25 12:22:06 +00:00
BuildRequires: desktop-file-utils
BuildRequires: djvulibre-devel
2014-12-15 15:49:04 +00:00
BuildRequires: cmake
2018-02-18 19:31:56 +00:00
BuildRequires: gcc-c++
2018-02-25 12:22:06 +00:00
BuildRequires: intltool
2018-02-18 19:31:56 +00:00
BuildRequires: make
2018-02-25 12:22:06 +00:00
BuildRequires: podofo-devel
BuildRequires: sane-backends-devel
BuildRequires: tesseract-devel
BuildRequires: cairomm-devel
BuildRequires: libappstream-glib
BuildRequires: libjpeg-turbo-devel
%if 0%{fedora} > 26
BuildRequires: libxml++30-devel
%else
BuildRequires: libxml++-devel
%endif
BuildRequires: libuuid-devel
BuildRequires: libzip-devel
2014-02-13 13:44:30 +00:00
BuildRequires: gtkmm30-devel
2016-04-27 21:40:48 +00:00
BuildRequires: gtksourceviewmm3-devel
2018-02-25 12:22:06 +00:00
BuildRequires: gtkspellmm30-devel
BuildRequires: json-glib-devel
2014-02-13 13:44:30 +00:00
BuildRequires: poppler-glib-devel
2018-02-25 12:22:06 +00:00
BuildRequires: python3-gobject
BuildRequires: poppler-qt5-devel
2015-04-30 23:39:59 +00:00
BuildRequires: qt5-qtbase-devel
BuildRequires: qtspell-qt5-devel
2018-02-25 12:22:06 +00:00
BuildRequires: quazip-qt5-devel
2014-02-13 13:44:30 +00:00
Requires: hicolor-icon-theme
Requires: gvfs
2014-02-13 13:44:30 +00:00
%description
2014-12-15 15:49:04 +00:00
gImageReader is a simple front-end to tesseract. Features include:
2016-04-27 21:40:48 +00:00
- Import PDF documents and images from disk, scanning devices, clipboard and screenshots
- Process multiple images and documents in one go
- Manual or automatic recognition area definition
- Recognize to plain text or to hOCR documents
2014-12-15 15:49:04 +00:00
- Recognized text displayed directly next to the image
2016-04-27 21:40:48 +00:00
- Post-process the recognized text, including spellchecking
- Generate PDF documents from hOCR documents
2014-12-15 15:49:04 +00:00
%package gtk
Summary: A Gtk+ front-end to tesseract-ocr
2020-07-29 08:06:44 +00:00
# For glib networking operations
Requires: gvfs-client
2014-12-15 15:49:04 +00:00
Requires: %{name}-common = %{version}-%{release}
Obsoletes: %{name} < 2.94-1
%description gtk
gImageReader is a simple front-end to tesseract. Features include:
2016-04-27 21:40:48 +00:00
- Import PDF documents and images from disk, scanning devices, clipboard and screenshots
- Process multiple images and documents in one go
- Manual or automatic recognition area definition
- Recognize to plain text or to hOCR documents
2014-12-15 15:49:04 +00:00
- Recognized text displayed directly next to the image
2016-04-27 21:40:48 +00:00
- Post-process the recognized text, including spellchecking
- Generate PDF documents from hOCR documents
2014-12-15 15:49:04 +00:00
This package contains the Gtk+ front-end.
%package qt
Summary: A Qt front-end to tesseract-ocr
Requires: %{name}-common = %{version}-%{release}
%description qt
gImageReader is a simple front-end to tesseract. Features include:
2016-04-27 21:40:48 +00:00
- Import PDF documents and images from disk, scanning devices, clipboard and screenshots
- Process multiple images and documents in one go
- Manual or automatic recognition area definition
- Recognize to plain text or to hOCR documents
2014-02-13 13:44:30 +00:00
- Recognized text displayed directly next to the image
2016-04-27 21:40:48 +00:00
- Post-process the recognized text, including spellchecking
- Generate PDF documents from hOCR documents
2014-12-15 15:49:04 +00:00
This package contains the Qt front-end.
%package common
Summary: Common files for %{name}
BuildArch: noarch
%description common
Common files for %{name}.
2014-02-13 13:44:30 +00:00
%prep
%autosetup -p1
2014-02-13 13:44:30 +00:00
%build
2022-03-09 23:17:22 +00:00
%define _vpath_builddir %{_target_platform}-gtk
%cmake -DINTERFACE_TYPE=gtk -DENABLE_VERSIONCHECK=0 -DMANUAL_DIR="%{_defaultdocdir}/%{name}-common"
2020-07-29 08:06:44 +00:00
%cmake_build
2022-03-09 23:17:22 +00:00
%define _vpath_builddir %{_target_platform}-qt
%cmake -DINTERFACE_TYPE=qt5 -DENABLE_VERSIONCHECK=0 -DMANUAL_DIR="%{_defaultdocdir}/%{name}-common"
2020-07-29 08:06:44 +00:00
%cmake_build
2014-02-13 13:44:30 +00:00
%install
2022-03-09 23:17:22 +00:00
%define _vpath_builddir %{_target_platform}-gtk
%cmake_install
%define _vpath_builddir %{_target_platform}-qt
%cmake_install
2014-12-15 15:49:04 +00:00
%{_bindir}/desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}-gtk.desktop
2015-04-30 23:39:59 +00:00
%{_bindir}/desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}-qt5.desktop
2018-02-25 12:22:06 +00:00
%{_bindir}/appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/%{name}-gtk.appdata.xml
%{_bindir}/appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/%{name}-qt5.appdata.xml
2014-02-13 13:44:30 +00:00
%find_lang %{name}
2014-12-15 15:49:04 +00:00
%files common -f %{name}.lang
2015-06-30 21:47:11 +00:00
%license COPYING
2018-02-25 12:22:06 +00:00
%doc AUTHORS NEWS README.md
2014-02-13 13:44:30 +00:00
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
2014-12-15 15:49:04 +00:00
%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
2014-02-13 13:57:48 +00:00
%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
2015-04-30 23:39:59 +00:00
%doc %{_defaultdocdir}/%{name}-common/manual*.html
2014-12-15 15:49:04 +00:00
%files gtk
%{_bindir}/%{name}-gtk
2018-02-25 12:22:06 +00:00
%{_datadir}/metainfo/%{name}-gtk.appdata.xml
2014-12-15 15:49:04 +00:00
%{_datadir}/applications/%{name}-gtk.desktop
2014-02-13 13:44:30 +00:00
%{_datadir}/glib-2.0/schemas/org.gnome.%{name}.gschema.xml
2014-12-15 15:49:04 +00:00
%files qt
2015-04-30 23:39:59 +00:00
%{_bindir}/%{name}-qt5
2018-02-25 12:22:06 +00:00
%{_datadir}/metainfo/%{name}-qt5.appdata.xml
2015-04-30 23:39:59 +00:00
%{_datadir}/applications/%{name}-qt5.desktop
2014-02-13 13:44:30 +00:00
%changelog
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2022-07-08 08:49:36 +00:00
* Fri Jul 08 2022 Sandro Mani <manisandro@gmail.com> - 3.4.0-5
- Rebuild (tesseract)
2022-05-03 17:27:48 +00:00
* Tue May 03 2022 Sandro Mani <manisandro@gmail.com> - 3.4.0-4
- Rebuild (podofo)
2022-04-18 21:14:05 +00:00
* Mon Apr 18 2022 Miro Hrončok <mhroncok@redhat.com> - 3.4.0-3
- Rebuilt for quazip 1.3
2022-03-09 23:17:22 +00:00
* Thu Mar 10 2022 Sandro Mani <manisandro@gmail.com> - 3.4.0-2
- Rebuild for tesseract 5.1.0
- Spec cleanups
2022-01-28 23:17:51 +00:00
* Fri Jan 28 2022 Sandro Mani <manisandro@gmail.com> - 3.4.0-1
- Update to 3.4.0
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2022-01-14 23:35:22 +00:00
* Fri Jan 14 2022 Sandro Mani <manisandro@gmail.com> - 3.3.1-12
- Rebuild (qtspell)
2021-12-19 17:53:20 +00:00
* Sun Dec 19 2021 Sandro Mani <manisandro@gmail.com> - 3.3.1-11
- Rebuild (tesseract)
2021-12-14 12:09:33 +00:00
* Tue Dec 14 2021 Sandro Mani <manisandro@gmail.com> - 3.3.1-10
- Rebuild (tesseract)
* Thu Aug 19 2021 Björn Esser <besser82@fedoraproject.org> - 3.3.1-9
- Rebuild (quazip)
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2021-01-09 21:56:54 +00:00
* Sat Jan 9 22:56:49 CET 2021 Sandro Mani <manisandro@gmail.com> - 3.3.1-6
- Rebuild (podofo)
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2020-01-17 11:30:03 +00:00
* Fri Jan 17 2020 Marek Kasik <mkasik@redhat.com> - 3.3.1-3
- Rebuild for poppler-0.84.0
2019-12-28 19:17:04 +00:00
* Sat Dec 28 2019 Sandro Mani <manisandro@gmail.com> - 3.3.1-2
- Rebuild (tesseract)
2019-07-28 21:48:54 +00:00
* Sun Jul 28 2019 Sandro Mani <manisandro@gmail.com> - 3.3.1-1
- Update to 3.3.1
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Mon Jul 01 2019 Sandro Mani <manisandro@gmail.com> - 3.3.0-4
- Fix crash when opening language manager
- Add requires: gvfs
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2018-11-13 23:08:40 +00:00
* Wed Nov 14 2018 Sandro Mani <manisandro@gmail.com> - 3.3.0-2
- Rebuild (tesseract)
2018-09-26 21:50:27 +00:00
* Wed Sep 26 2018 Sandro Mani <manisandro@gmail.com> - 3.3.0-1
- Update to 3.3.0
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.99-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-07-11 10:56:33 +00:00
* Wed Jul 11 2018 Sandro Mani <manisandro@gmail.com> - 3.2.99-3
- Rebuild (podofo)
2018-03-23 14:28:11 +00:00
* Fri Mar 23 2018 Marek Kasik <mkasik@redhat.com> - 3.2.99-2
- Rebuild for poppler-0.63.0
2018-02-25 12:22:06 +00:00
* Sun Feb 25 2018 Sandro Mani <manisandro@gmail.com> - 3.2.99-1
- Update to 3.2.99
2018-02-18 19:31:56 +00:00
* Sun Feb 18 2018 Sandro Mani <manisandro@gmail.com> - 3.2.3-6
- Add missing BR: gcc-c++, make
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jan 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.2.3-4
- Remove obsolete scriptlets
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-07-01 09:53:50 +00:00
* Sat Jul 01 2017 Sandro Mani <manisandro@gmail.com> - 3.2.3-1
- Update to 3.2.3
2017-06-30 18:53:31 +00:00
* Fri Jun 30 2017 Sandro Mani <manisandro@gmail.com> - 3.2.2-1
- Update to 3.2.2
* Wed May 17 2017 Sandro Mani <manisandro@gmail.com> - 3.2.1-4
- Backport patch to fix some icons missing in Gtk interface (#1451357)
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
2017-02-21 23:32:08 +00:00
* Tue Feb 21 2017 Sandro Mani <manisandro@gmail.com> - 3.2.1-2
- Rebuild (tesseract)
2017-02-10 13:25:13 +00:00
* Fri Feb 10 2017 Sandro Mani <manisandro@gmail.com> - 3.2.1-1
- Update to 3.2.1
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2017-02-02 23:53:59 +00:00
* Fri Feb 03 2017 Sandro Mani <manisandro@gmail.com> - 3.2.0-2
- Rebuild (podofo)
2016-11-23 22:18:17 +00:00
* Wed Nov 23 2016 Sandro Mani <manisandro@gmail.com> - 3.2.0-1
- Update to 3.2.0
2016-10-13 22:17:10 +00:00
* Fri Oct 14 2016 Sandro Mani <manisandro@gmail.com> - 3.1.99-1
- Update to 3.1.99
2016-05-03 14:34:28 +00:00
* Tue May 03 2016 Sandro Mani <manisandro@gmail.com> - 3.1.91-1
- Update to 3.1.91
2016-04-27 21:40:48 +00:00
* Thu Apr 28 2016 Sandro Mani <manisandro@gmail.com> - 3.1.90-1
- Update to 3.1.90
2016-02-04 10:02:12 +00:00
* Thu Feb 04 2016 Sandro Mani <manisandro@gmail.com> - 3.1.2-5
- Add patch to fix FTBFS
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2015-10-16 08:41:55 +00:00
* Fri Oct 16 2015 Sandro Mani <manisandro@gmail.com> - 3.1.2-3
- Rebuild (tesseract)
2015-10-14 14:40:40 +00:00
* Wed Oct 14 2015 Sandro Mani <manisandro@gmail.com> - 3.1.2-2
- Rebuild (tesseract)
2015-06-30 21:48:24 +00:00
* Tue Jun 30 2015 Sandro Mani <manisandro@gmail.com> - 3.1.2-1
2015-06-30 21:47:11 +00:00
- Update to 3.1.2
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2015-06-10 22:41:12 +00:00
* Thu Jun 11 2015 Sandro Mani <manisandro@gmail.com> - 3.1.1-1
- Update to 3.1.1
2015-04-30 23:39:59 +00:00
* Fri May 01 2015 Sandro Mani <manisandro@gmail.com> - 3.1-1
- Update to 3.1
2015-01-04 10:36:56 +00:00
* Sun Jan 04 2015 Sandro Mani <manisandro@gmail.com> - 3.0.1-1
2015-01-04 10:36:13 +00:00
- Update to 3.0.1.
2014-12-15 15:49:04 +00:00
* Mon Dec 15 2014 Sandro Mani <manisandro@gmail.com> - 3.0-1
- Update to 3.0.
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.93-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2014-08-13 08:53:35 +00:00
* Wed Aug 13 2014 Sandro Mani <manisandro@gmail.com> - 2.93-4
- Rebuild (tesseract)
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.93-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-05-04 12:38:16 +00:00
* Sun May 04 2014 Sandro Mani <manisandro@gmail.com> - 2.93-2
- Workaround rhbz #1065695
2014-04-30 21:51:03 +00:00
* Wed Apr 30 2014 Sandro Mani <manisandro@gmail.com> - 2.93-1
- Update to 2.93
2014-03-19 21:08:34 +00:00
* Wed Mar 19 2014 Sandro Mani <manisandro@gmail.com> - 2.92-1
- Update to 2.92
2014-02-20 15:26:46 +00:00
* Thu Feb 20 2014 Sandro Mani <manisandro@gmail.com> - 2.91-1
2014-02-20 15:25:48 +00:00
- Update to 2.91
2014-02-15 23:46:20 +00:00
* Sat Feb 15 2014 Sandro Mani <manisandro@gmail.com> - 2.91-0.2git20140216
- Update to newer 2.91 pre, work around crash at exit
2014-02-13 13:44:30 +00:00
* Thu Feb 13 2014 Sandro Mani <manisandro@gmail.com> - 2.91-0.1
- Update to 2.91 pre
* Thu Feb 13 2014 Sandro Mani <manisandro@gmail.com> - 2.90-3
- Require hicolor-icon-theme
- Add missing icon theme scriptlets
* Wed Feb 12 2014 Sandro Mani <manisandro@gmail.com> - 2.90-2
- Add appdata file
* Tue Feb 11 2014 Sandro Mani <manisandro@gmail.com> - 2.90-1
- Initial package.