]> git.pld-linux.org Git - packages/ocrfeeder.git/blame - ocrfeeder.spec
- BC gtk4, pygobject gets dazed and confused if it is installed
[packages/ocrfeeder.git] / ocrfeeder.spec
CommitLineData
7e7cc73c
JB
1Summary: OCRFeeder - document layout analysis and optical character recognition system
2Summary(pl.UTF-8): OCRFeeder - system analizy układu dokumentu i optycznego rozpoznawania znaków
3Name: ocrfeeder
1f4d7c1f 4Version: 0.8.3
be9ab036 5Release: 2
7e7cc73c
JB
6License: GPL v3+
7Group: Applications/Graphics
8Source0: http://ftp.gnome.org/pub/GNOME/sources/ocrfeeder/0.8/%{name}-%{version}.tar.xz
1f4d7c1f 9# Source0-md5: ce53ecf155dc902c1855827646e567bd
db646fff
JB
10URL: https://wiki.gnome.org/Apps/OCRFeeder
11BuildRequires: autoconf >= 2.63
12BuildRequires: automake >= 1:1.11
7e7cc73c 13BuildRequires: gettext-tools
db646fff
JB
14# for AM_GLIB_GNU_GETTEXT
15BuildRequires: glib2-devel >= 2.0
7e7cc73c
JB
16# Gtk, GooCanvas gobject bindings
17BuildRequires: goocanvas2
18# Gtk gobject binding
19BuildRequires: gtk+3
f9119eec 20BuildRequires: gobject-introspection
7e7cc73c 21BuildRequires: intltool >= 0.35.0
db646fff
JB
22BuildRequires: python3 >= 1:3.5
23BuildRequires: python3-ReportLab
24BuildRequires: python3-odfpy
25BuildRequires: python3-pillow
26BuildRequires: python3-pyenchant
27BuildRequires: python3-pygobject3
28BuildRequires: python3-sane
29BuildRequires: python3-modules >= 1:3.2
7e7cc73c 30BuildRequires: rpm-pythonprov
db646fff 31BuildRequires: rpmbuild(macros) >= 1.507
7e7cc73c
JB
32BuildRequires: sed >= 4.0
33BuildRequires: tar >= 1:1.22
34BuildRequires: xz
db646fff 35BuildRequires: yelp-tools
c74f3cc7 36BuildConflicts: gtk4
7e7cc73c
JB
37Requires: goocanvas2
38Requires: gtk+3
db646fff
JB
39Requires: python3-ReportLab
40Requires: python3-modules >= 1:3.5
41Requires: python3-odfpy
42Requires: python3-pillow
43Requires: python3-pyenchant
44Requires: python3-pygobject3
45Requires: python3-sane
c09c631b 46BuildArch: noarch
7e7cc73c
JB
47BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48
49%description
50OCRFeeder is a document layout analysis and optical character
51recognition system.
52
53Given the images it will automatically outline its contents,
54distinguish between what's graphics and text and perform OCR over the
55latter. It generates multiple formats being its main one ODT.
56
57It features a complete GTK+ graphical user interface that allows the
58users to correct any unrecognized characters, defined or correct
59bounding boxes, set paragraph styles, clean the input images, import
60PDFs, save and load the project, export everything to multiple
61formats, etc. OCRFeeder was developed as the project of the Master's
62Thesis in Computer Science of Joaquim Rocha.
63
64%description -l pl.UTF-8
65OCRFeeder to system analizy układu dokumentów i optycznego
66rozpoznawania znaków.
67
68Po przekazaniu obrazów automatycznie obrysowuje ich zawartość,
69rozróżniając tekst od grafiki i wykonując OCR na tekście. Potrafi
70generować tekst w wielu formatach, między innymi ODT.
71
72Zawiera pełny graficzny interfejs użytkownika GTK+, pozwalający na
73korygowanie nie rozpoznanych znaków, definiowanie i poprawianie
74prostokątów ograniczających, ustawianie styli akapitów, czyszczenie
75obrazów wejściowych, importowanie plików PDF, zapisywanie i
76wczytywanie projektów, eksportowanie wszystkiego do wielu formatów
77itp. OCRFeeder powstał jako projekt z pracy magisterskiej z
78informatyki Joaquima Rocha.
79
80%prep
81%setup -q
82
db646fff 83%{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' bin/ocrfeeder.in bin/ocrfeeder-cli.in
7e7cc73c
JB
84
85%build
db646fff
JB
86# rebuild am to get PLD version of python.m4
87%{__intltoolize}
88%{__aclocal} -I m4
89%{__autoconf}
90%{__automake}
7e7cc73c
JB
91%configure \
92 --disable-silent-rules
93%{__make}
94
95%install
96rm -rf $RPM_BUILD_ROOT
97
98%{__make} install \
99 DESTDIR=$RPM_BUILD_ROOT
100
7e7cc73c
JB
101%find_lang %{name} --with-gnome
102
103%clean
104rm -rf $RPM_BUILD_ROOT
105
106%files -f %{name}.lang
107%defattr(644,root,root,755)
108%doc AUTHORS ChangeLog NEWS README TRANSLATORS
109%attr(755,root,root) %{_bindir}/ocrfeeder
110%attr(755,root,root) %{_bindir}/ocrfeeder-cli
db646fff 111%{py3_sitescriptdir}/ocrfeeder
7e7cc73c 112%{_datadir}/ocrfeeder
db646fff
JB
113%{_datadir}/metainfo/org.gnome.OCRFeeder.appdata.xml
114%{_desktopdir}/org.gnome.OCRFeeder.desktop
115%{_iconsdir}/hicolor/scalable/apps/org.gnome.OCRFeeder.svg
7e7cc73c
JB
116%{_mandir}/man1/ocrfeeder.1*
117%{_mandir}/man1/ocrfeeder-cli.1*
This page took 0.143706 seconds and 4 git commands to generate.