gimagereader/gimagereader.spec

100 lines
2.9 KiB
RPMSpec
Raw Normal View History

2014-02-13 13:44:30 +00:00
Name: gimagereader
Version: 2.91
2014-02-20 15:25:48 +00:00
Release: 1%{?dist}
2014-02-13 13:44:30 +00:00
License: GPLv3+
Group: Applications/Productivity
Summary: OCR application
URL: http://sourceforge.net/projects/gimagereader/
Source0: %{name}-%{version}.tar.xz
BuildRequires: gtkmm30-devel
BuildRequires: gtkspellmm30-devel
BuildRequires: cairomm-devel
BuildRequires: poppler-glib-devel
BuildRequires: tesseract-devel
BuildRequires: sane-backends-devel
BuildRequires: intltool
BuildRequires: desktop-file-utils
BuildRequires: appdata-tools
Requires: hicolor-icon-theme
%description
gImageReader is a simple Gtk front-end to tesseract. Features include:
- Automatic page layout detection
- User can manually define and adjust recognition regions
- Import images from disk, scanning devices, clipboard and screenshots
- Supports multipage PDF documents
- Recognized text displayed directly next to the image
- Editing of output text, including search/replace and removing line breaks
- Spellchecking for output text (if corresponding dictionary installed)
%prep
%setup -q
%build
2014-02-13 17:33:04 +00:00
%configure --disable-versioncheck
2014-02-13 13:44:30 +00:00
make %{?_smp_mflags}
%install
%make_install
%{_bindir}/desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
%{_bindir}/appdata-validate %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml || :
%find_lang %{name}
%post
/usr/bin/update-desktop-database &> /dev/null || :
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun
/usr/bin/update-desktop-database &> /dev/null || :
if [ $1 -eq 0 ] ; then
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
%posttrans
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
2014-02-13 13:57:48 +00:00
%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
2014-02-13 13:44:30 +00:00
%{_datadir}/glib-2.0/schemas/org.gnome.%{name}.gschema.xml
%changelog
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.