diff --git a/sources b/sources index e69de29..792970b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +16582668d9ae34567c4f159c3208bfca yagf-0.8.6-Source.tar.gz diff --git a/yagf-0.8.6-Source-desktop.patch b/yagf-0.8.6-Source-desktop.patch new file mode 100644 index 0000000..7dd65e2 --- /dev/null +++ b/yagf-0.8.6-Source-desktop.patch @@ -0,0 +1,29 @@ +diff -urp yagf-0.8.6-Source/YAGF.desktop yagf-0.8.6-Source-desktop/YAGF.desktop +--- yagf-0.8.6-Source/YAGF.desktop 2011-02-24 17:01:08.000000000 +0600 ++++ yagf-0.8.6-Source-desktop/YAGF.desktop 2011-08-15 10:11:14.010321668 +0700 +@@ -1,23 +1,16 @@ + [Desktop Entry] + Type=Application +-Categories=Qt;Office;OCR; ++Categories=Qt;Office;Graphics;Scanning;OCR; + Exec=yagf %F + Icon=yagf + Terminal=false + StartupNotify=true + MimeType=image/png;image/jpeg;image/bmp;image/tiff;image/gif;image/x-portable-pixmap;image/x-portable-graymap;image/x-portable-bitmap; + Name=YAGF +-Name[ru]=YAGF +-Name[lt]=YAGF +-Name[pl]=YAGF +-Name[de]=YAGF + GenericName=OCR text recognition + GenericName[ru]=Распознавание текста +-GenericName[lt]=ENTER YOUR TRANSLATION HERE +-GenericName[pl]=ENTER YOUR TRANSLATION HERE + GenericName[de]=OCR Texterkennung + Comment=Graphical frontend for Cuneiform + Comment[ru]=Графическая оболочка для Cuneiform + Comment[lt]=Grafinė teksto atpažinimo programos Cuneiform sąsaja +-Comment[pl]=Grafinė teksto atpažinimo programos Cuneiform sąsaja + Comment[de]=Graphische Benutzeroberfläche zu Cuneiform +\ No newline at end of file diff --git a/yagf.spec b/yagf.spec new file mode 100644 index 0000000..c9a493b --- /dev/null +++ b/yagf.spec @@ -0,0 +1,94 @@ +Name: yagf +Version: 0.8.6 +Release: 6%{?dist} +Summary: Graphical front-end for cuneiform + +Group: Applications/Multimedia +License: GPLv3+ +URL: http://symmetrica.net/cuneiform-linux/yagf-en.html +Source0: http://symmetrica.net/cuneiform-linux/%{name}-%{version}-Source.tar.gz + +# fix .desktop file +Patch: yagf-0.8.6-Source-desktop.patch + +BuildRequires: cmake +BuildRequires: desktop-file-utils +BuildRequires: aspell-devel +BuildRequires: qt4-devel +BuildRequires: dos2unix +Requires: cuneiform + +%description +YAGF is a graphical interface for the cuneiform text +recognition program. With YAGF you can scan images via +XSane, perform images preprocessing and recognize +texts using cuneiform from a single command center. +YAGF also makes it easy to scan and recognize +several images sequentially. + +%prep +%setup -qn %{name}-%{version}-Source +%patch -p1 -b .desktop + +# fix permisions and line brake for debug package +chmod -x src/mainform.cpp src/mainform.h src/main.cpp +dos2unix src/mainform.cpp src/mainform.h + +%build +# CMakeLists.txt constructed in such a way that +# translations can't be installed from %%{_target_platform} +%{cmake} . + +make %{?_smp_mflags} + +%install +make install DESTDIR=%{buildroot} + +desktop-file-validate %{buildroot}%{_datadir}/applications/YAGF.desktop + +%find_lang %{name} --with-qt + +%post +update-desktop-database &> /dev/null ||: +touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : + +%postun +update-desktop-database &> /dev/null || : +if [ $1 -eq 0 ] ; then + touch --no-create %{_datadir}/icons/hicolor &>/dev/null + gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +fi + +%posttrans +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + +%files -f %{name}.lang +%doc AUTHORS ChangeLog COPYING DESCRIPTION README +%{_bindir}/%{name} +%{_libdir}/%{name} +%dir %{_datadir}/%{name} +%dir %{_datadir}/%{name}/translations +%{_datadir}/applications/YAGF.desktop +%{_datadir}/icons/hicolor/*/apps/*.png +%{_datadir}/pixmaps/%{name}.png + +%changelog +* Mon Aug 15 2011 Dmitrij S. Kryzhevich 0.8.6-6 +- Update patch for desktop file. +- Some spelling and readability. + +* Wed Jul 13 2011 Dmitrij S. Kryzhevich 0.8.6-5 +- Own /usr/share/yagf/translations. + +* Tue Jul 12 2011 Dmitrij S. Kryzhevich 0.8.6-4 +- find_lang magic. +- spec clean up. + +* Tue Jul 12 2011 Dmitrij S. Kryzhevich 0.8.6-3 +- Move previouse fix to %%prep section. + +* Fri Jul 08 2011 Dmitrij S. Kryzhevich 0.8.6-2 +- Fix permesions for debug package. + +* Tue Apr 05 2011 Dmitrij S. Kryzhevich 0.8.6-1 +- First try.