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