-
Notifications
You must be signed in to change notification settings - Fork 0
/
cuneiform-qt.spec
91 lines (71 loc) · 2.57 KB
/
cuneiform-qt.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
Name: cuneiform-qt
Version: 0.1.4
Release: alt2
Summary: GUI frontend for Cuneiform OCR
License: GPLv3+
Group: Graphics
URL: http://www.altlinux.org/Cuneiform-Qt
Packager: Andrey Cherepanov <[email protected]>
Source: %name-%version.tar
BuildRequires(pre): rpm-macros-qt5
BuildRequires: qt5-base-devel
BuildRequires: ImageMagick
Requires: cuneiform
Requires: qt5-translations
%description
This application is GUI frontend for Cuneiform (OCR system originally
developed and open sourced by Cognitive technologies). It allow
to open scanned image, view this one in preview pane, recornize text via
Cuneiform and save result in HTML file.
%prep
%setup -q
%build
%qmake_qt5
%make_build
%install
%makeinstall INSTALL_ROOT=%buildroot
# Icons
mkdir -p %buildroot/{%_miconsdir,%_niconsdir,%_liconsdir}
convert -resize 48x48 icons/%name.png %buildroot%_liconsdir/%name.png
convert -resize 32x32 icons/%name.png %buildroot%_niconsdir/%name.png
convert -resize 16x16 icons/%name.png %buildroot%_miconsdir/%name.png
%files
%doc AUTHORS README.md TODO.md
%_bindir/%name
%_datadir/apps/%name/*.qm
%_desktopdir/%name.desktop
%_miconsdir/%name.png
%_niconsdir/%name.png
%_liconsdir/%name.png
%_pixmapsdir/%name.png
%changelog
* Mon Aug 26 2019 Andrey Cherepanov <[email protected]> 0.1.4-alt2
- Do not strip debugging information.
* Tue Feb 05 2019 Andrey Cherepanov <[email protected]> 0.1.4-alt1
- Fix saving of file, fix status bar message during saving.
* Fri Feb 01 2019 Andrey Cherepanov <[email protected]> 0.1.3-alt1
- New version based on patches from Magea.
- Build with Qt5.
* Wed Apr 17 2013 Dmitry V. Levin (QA) <[email protected]> 0.1.2-alt1.qa1
- NMU: rebuilt for debuginfo.
* Fri Apr 10 2009 Andrey Cherepanov <[email protected]> 0.1.2-alt1
- Fix build with Qt 4.3
* Fri Apr 10 2009 Motsyo Gennadi <[email protected]> 0.1.1-alt1.2
- created Ukrainian translation
- add Ukrainian to desktop-file
* Wed Apr 08 2009 Motsyo Gennadi <[email protected]> 0.1.1-alt1.1
- fix optflags
- change icons from pixmapsdir to iconsdir
- cleanup spec
* Tue Apr 07 2009 Andrey Cherepanov <[email protected]> 0.1.1-alt1
- Add Russian translation
- Save from text widget instead copy temporary file
- Remove temporary file
- Check for errors during saving
- Differ saved format and filter in saved file selection dialog
- Show application icon in about dialog
- Remove native option because it is binary format and it will not display correctly
- Fix readOnly flag for result text
- Move installation instruction from spec to QMake project file
* Mon Apr 06 2009 Andrey Cherepanov <[email protected]> 0.1.0-alt1
- Initial release