|
|
2e612d2 |
Name: gimagereader
|
|
|
a578ee6 |
Version: 3.1.2
|
|
|
a578ee6 |
Release: 1%{?dist}
|
|
|
b886dfd |
Summary: A front-end to tesseract-ocr
|
|
|
2e612d2 |
|
|
|
b886dfd |
License: GPLv3+
|
|
|
b886dfd |
URL: https://github.com/manisandro/gimagereader
|
|
|
b886dfd |
Source0: https://github.com/manisandro/gimagereader/releases/download/v%{version}/%{name}-%{version}.tar.xz
|
|
|
3c0d85f |
|
|
|
b886dfd |
BuildRequires: cmake
|
|
|
2e612d2 |
BuildRequires: gtkmm30-devel
|
|
|
2e612d2 |
BuildRequires: gtkspellmm30-devel
|
|
|
2e612d2 |
BuildRequires: cairomm-devel
|
|
|
2e612d2 |
BuildRequires: poppler-glib-devel
|
|
|
2e612d2 |
BuildRequires: tesseract-devel
|
|
|
2e612d2 |
BuildRequires: sane-backends-devel
|
|
|
2e612d2 |
BuildRequires: intltool
|
|
|
2e612d2 |
BuildRequires: desktop-file-utils
|
|
|
b886dfd |
BuildRequires: libappstream-glib
|
|
|
635362f |
BuildRequires: qt5-qtbase-devel
|
|
|
635362f |
BuildRequires: qtspell-qt5-devel
|
|
|
635362f |
BuildRequires: poppler-qt5-devel
|
|
|
635362f |
BuildRequires: gtksourceviewmm3-devel
|
|
|
2e612d2 |
|
|
|
2e612d2 |
Requires: hicolor-icon-theme
|
|
|
2e612d2 |
|
|
|
2e612d2 |
%description
|
|
|
b886dfd |
gImageReader is a simple front-end to tesseract. Features include:
|
|
|
b886dfd |
- Automatic page layout detection
|
|
|
b886dfd |
- User can manually define and adjust recognition regions
|
|
|
b886dfd |
- Import images from disk, scanning devices, clipboard and screenshots
|
|
|
b886dfd |
- Supports multipage PDF documents
|
|
|
b886dfd |
- Recognized text displayed directly next to the image
|
|
|
b886dfd |
- Editing of output text, including search/replace and removing line breaks
|
|
|
b886dfd |
- Spellchecking for output text (if corresponding dictionary installed)
|
|
|
b886dfd |
|
|
|
b886dfd |
|
|
|
b886dfd |
%package gtk
|
|
|
b886dfd |
Summary: A Gtk+ front-end to tesseract-ocr
|
|
|
b886dfd |
Requires: %{name}-common = %{version}-%{release}
|
|
|
b886dfd |
Obsoletes: %{name} < 2.94-1
|
|
|
b886dfd |
|
|
|
b886dfd |
%description gtk
|
|
|
b886dfd |
gImageReader is a simple front-end to tesseract. Features include:
|
|
|
b886dfd |
- Automatic page layout detection
|
|
|
b886dfd |
- User can manually define and adjust recognition regions
|
|
|
b886dfd |
- Import images from disk, scanning devices, clipboard and screenshots
|
|
|
b886dfd |
- Supports multipage PDF documents
|
|
|
b886dfd |
- Recognized text displayed directly next to the image
|
|
|
b886dfd |
- Editing of output text, including search/replace and removing line breaks
|
|
|
b886dfd |
- Spellchecking for output text (if corresponding dictionary installed)
|
|
|
b886dfd |
This package contains the Gtk+ front-end.
|
|
|
b886dfd |
|
|
|
b886dfd |
|
|
|
b886dfd |
%package qt
|
|
|
b886dfd |
Summary: A Qt front-end to tesseract-ocr
|
|
|
b886dfd |
Requires: %{name}-common = %{version}-%{release}
|
|
|
b886dfd |
|
|
|
b886dfd |
%description qt
|
|
|
b886dfd |
gImageReader is a simple front-end to tesseract. Features include:
|
|
|
2e612d2 |
- Automatic page layout detection
|
|
|
2e612d2 |
- User can manually define and adjust recognition regions
|
|
|
2e612d2 |
- Import images from disk, scanning devices, clipboard and screenshots
|
|
|
2e612d2 |
- Supports multipage PDF documents
|
|
|
2e612d2 |
- Recognized text displayed directly next to the image
|
|
|
2e612d2 |
- Editing of output text, including search/replace and removing line breaks
|
|
|
2e612d2 |
- Spellchecking for output text (if corresponding dictionary installed)
|
|
|
b886dfd |
This package contains the Qt front-end.
|
|
|
b886dfd |
|
|
|
b886dfd |
%package common
|
|
|
b886dfd |
Summary: Common files for %{name}
|
|
|
b886dfd |
BuildArch: noarch
|
|
|
b886dfd |
|
|
|
b886dfd |
%description common
|
|
|
b886dfd |
Common files for %{name}.
|
|
|
2e612d2 |
|
|
|
2e612d2 |
|
|
|
2e612d2 |
%prep
|
|
|
2e612d2 |
%setup -q
|
|
|
2e612d2 |
|
|
|
2e612d2 |
|
|
|
2e612d2 |
%build
|
|
|
b886dfd |
mkdir build_gtk
|
|
|
b886dfd |
(
|
|
|
b886dfd |
cd build_gtk
|
|
|
b886dfd |
%cmake -DINTERFACE_TYPE=gtk -DENABLE_VERSIONCHECK=0 -DMANUAL_DIR="%{_defaultdocdir}/%{name}-common" ..
|
|
|
2e612d2 |
make %{?_smp_mflags}
|
|
|
b886dfd |
)
|
|
|
b886dfd |
mkdir build_qt
|
|
|
b886dfd |
(
|
|
|
b886dfd |
cd build_qt
|
|
|
635362f |
%cmake -DINTERFACE_TYPE=qt5 -DENABLE_VERSIONCHECK=0 -DMANUAL_DIR="%{_defaultdocdir}/%{name}-common" ..
|
|
|
b886dfd |
make %{?_smp_mflags}
|
|
|
b886dfd |
)
|
|
|
2e612d2 |
|
|
|
2e612d2 |
|
|
|
2e612d2 |
%install
|
|
|
b886dfd |
%make_install -C build_gtk
|
|
|
b886dfd |
%make_install -C build_qt
|
|
|
b886dfd |
%{_bindir}/desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}-gtk.desktop
|
|
|
635362f |
%{_bindir}/desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}-qt5.desktop
|
|
|
635362f |
%{_bindir}/appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}-gtk.appdata.xml
|
|
|
635362f |
%{_bindir}/appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}-qt5.appdata.xml
|
|
|
2e612d2 |
|
|
|
2e612d2 |
%find_lang %{name}
|
|
|
2e612d2 |
|
|
|
2e612d2 |
|
|
|
b886dfd |
%post gtk
|
|
|
2e612d2 |
/usr/bin/update-desktop-database &> /dev/null || :
|
|
|
2e612d2 |
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
2e612d2 |
|
|
|
2e612d2 |
|
|
|
b886dfd |
%postun gtk
|
|
|
2e612d2 |
/usr/bin/update-desktop-database &> /dev/null || :
|
|
|
2e612d2 |
if [ $1 -eq 0 ] ; then
|
|
|
2e612d2 |
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
|
|
2e612d2 |
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
|
|
2e612d2 |
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
2e612d2 |
fi
|
|
|
2e612d2 |
|
|
|
b886dfd |
%posttrans gtk
|
|
|
2e612d2 |
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
2e612d2 |
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
|
|
2e612d2 |
|
|
|
2e612d2 |
|
|
|
b886dfd |
%post qt
|
|
|
b886dfd |
/usr/bin/update-desktop-database &> /dev/null || :
|
|
|
b886dfd |
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
b886dfd |
|
|
|
b886dfd |
|
|
|
b886dfd |
%postun qt
|
|
|
b886dfd |
/usr/bin/update-desktop-database &> /dev/null || :
|
|
|
b886dfd |
if [ $1 -eq 0 ] ; then
|
|
|
b886dfd |
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
|
|
b886dfd |
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
b886dfd |
fi
|
|
|
b886dfd |
|
|
|
b886dfd |
%posttrans qt
|
|
|
b886dfd |
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
b886dfd |
|
|
|
b886dfd |
|
|
|
b886dfd |
%files common -f %{name}.lang
|
|
|
a578ee6 |
%license COPYING
|
|
|
a578ee6 |
%doc AUTHORS ChangeLog NEWS README TODO
|
|
|
2e612d2 |
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
|
|
|
b886dfd |
%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
|
|
|
061dd1b |
%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
|
|
|
635362f |
%doc %{_defaultdocdir}/%{name}-common/manual*.html
|
|
|
b886dfd |
|
|
|
b886dfd |
%files gtk
|
|
|
b886dfd |
%{_bindir}/%{name}-gtk
|
|
|
b886dfd |
%{_datadir}/appdata/%{name}-gtk.appdata.xml
|
|
|
b886dfd |
%{_datadir}/applications/%{name}-gtk.desktop
|
|
|
2e612d2 |
%{_datadir}/glib-2.0/schemas/org.gnome.%{name}.gschema.xml
|
|
|
2e612d2 |
|
|
|
b886dfd |
%files qt
|
|
|
635362f |
%{_bindir}/%{name}-qt5
|
|
|
635362f |
%{_datadir}/appdata/%{name}-qt5.appdata.xml
|
|
|
635362f |
%{_datadir}/applications/%{name}-qt5.desktop
|
|
|
2e612d2 |
|
|
|
2e612d2 |
%changelog
|
|
|
a578ee6 |
* Wed Jun 30 2015 Sandro Mani <manisandro@gmail.com> - 3.1.2-1
|
|
|
a578ee6 |
- Update to 3.1.2
|
|
|
a578ee6 |
|
|
|
f3a4684 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.1-2
|
|
|
f3a4684 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
f3a4684 |
|
|
|
7be628f |
* Thu Jun 11 2015 Sandro Mani <manisandro@gmail.com> - 3.1.1-1
|
|
|
7be628f |
- Update to 3.1.1
|
|
|
7be628f |
|
|
|
635362f |
* Fri May 01 2015 Sandro Mani <manisandro@gmail.com> - 3.1-1
|
|
|
635362f |
- Update to 3.1
|
|
|
635362f |
|
|
|
f95fe7c |
* Sun Jan 04 2015 Sandro Mani <manisandro@gmail.com> - 3.0.1-1
|
|
|
3e1725c |
- Update to 3.0.1.
|
|
|
3e1725c |
|
|
|
b886dfd |
* Mon Dec 15 2014 Sandro Mani <manisandro@gmail.com> - 3.0-1
|
|
|
b886dfd |
- Update to 3.0.
|
|
|
b886dfd |
|
|
|
c8cec0c |
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.93-5
|
|
|
c8cec0c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
c8cec0c |
|
|
|
bb654bb |
* Wed Aug 13 2014 Sandro Mani <manisandro@gmail.com> - 2.93-4
|
|
|
bb654bb |
- Rebuild (tesseract)
|
|
|
bb654bb |
|
|
|
65cd715 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.93-3
|
|
|
65cd715 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
65cd715 |
|
|
|
3c0d85f |
* Sun May 04 2014 Sandro Mani <manisandro@gmail.com> - 2.93-2
|
|
|
3c0d85f |
- Workaround rhbz #1065695
|
|
|
3c0d85f |
|
|
|
7f34b5e |
* Wed Apr 30 2014 Sandro Mani <manisandro@gmail.com> - 2.93-1
|
|
|
7f34b5e |
- Update to 2.93
|
|
|
7f34b5e |
|
|
|
a46a61b |
* Wed Mar 19 2014 Sandro Mani <manisandro@gmail.com> - 2.92-1
|
|
|
a46a61b |
- Update to 2.92
|
|
|
a46a61b |
|
|
|
e9c04c8 |
* Thu Feb 20 2014 Sandro Mani <manisandro@gmail.com> - 2.91-1
|
|
|
460541f |
- Update to 2.91
|
|
|
460541f |
|
|
|
6c79d65 |
* Sat Feb 15 2014 Sandro Mani <manisandro@gmail.com> - 2.91-0.2git20140216
|
|
|
6c79d65 |
- Update to newer 2.91 pre, work around crash at exit
|
|
|
6c79d65 |
|
|
|
2e612d2 |
* Thu Feb 13 2014 Sandro Mani <manisandro@gmail.com> - 2.91-0.1
|
|
|
2e612d2 |
- Update to 2.91 pre
|
|
|
2e612d2 |
|
|
|
2e612d2 |
* Thu Feb 13 2014 Sandro Mani <manisandro@gmail.com> - 2.90-3
|
|
|
2e612d2 |
- Require hicolor-icon-theme
|
|
|
2e612d2 |
- Add missing icon theme scriptlets
|
|
|
2e612d2 |
|
|
|
2e612d2 |
* Wed Feb 12 2014 Sandro Mani <manisandro@gmail.com> - 2.90-2
|
|
|
2e612d2 |
- Add appdata file
|
|
|
2e612d2 |
|
|
|
2e612d2 |
* Tue Feb 11 2014 Sandro Mani <manisandro@gmail.com> - 2.90-1
|
|
|
2e612d2 |
- Initial package.
|