Hello community, here is the log from the commit of package gocr for openSUSE:Factory checked in at 2015-08-03 17:21:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gocr (Old) and /work/SRC/openSUSE:Factory/.gocr.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gocr" Changes: -------- --- /work/SRC/openSUSE:Factory/gocr/gocr.changes 2013-04-02 11:48:24.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.gocr.new/gocr.changes 2015-08-03 17:22:04.000000000 +0200 @@ -1,0 +2,7 @@ +Sun Aug 2 09:08:29 UTC 2015 - [email protected] + +- Update desktop file macros +- Cleanup spec file with spec-cleaner +- Add changelog as source since it is used during build + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gocr.spec ++++++ --- /var/tmp/diff_new_pack.EjG3oY/_old 2015-08-03 17:22:05.000000000 +0200 +++ /var/tmp/diff_new_pack.EjG3oY/_new 2015-08-03 17:22:05.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package gocr # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,13 +25,10 @@ Url: http://jocr.sourceforge.net/ Source0: http://www-e.uni-magdeburg.de/jschulen/ocr/%{name}-%{version}.tar.gz Source1: gocr.desktop -%if 0%{?suse_version} > 1210 -BuildRequires: desktop-file-utils -%else -BuildRequires: update-desktop-files -%endif +Source99: %{name}.changes BuildRequires: libnetpbm-devel BuildRequires: transfig +BuildRequires: update-desktop-files Requires: jpeg Requires: netpbm Requires: transfig @@ -47,6 +44,8 @@ Group: Productivity/Graphics/Other Requires: %{name} = %{version} Requires: tk +Requires(postun): update-desktop-files +Requires(pre): update-desktop-files Supplements: packageand(gocr:tk) %description gui @@ -83,21 +82,24 @@ chmod 644 %{buildroot}%{_mandir}/man1/gocr.1 # Fix doc files path in manpage -perl -pi -e "s|/usr/share/doc/gocr-\\\fBX.XX\\\fR/|/usr/share/doc/packages/gocr/|" %{buildroot}%{_mandir}/man1/gocr.1 +perl -pi -e "s|%{_datadir}/doc/gocr-\\\fBX.XX\\\fR/|%{_docdir}/gocr/|" %{buildroot}%{_mandir}/man1/gocr.1 # Install desktop file -%if 0%{?suse_version} > 1210 -desktop-file-install %{SOURCE1} -%else -%suse_update_desktop_file -i %{name} -%endif +install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop" +%suse_update_desktop_file -r "%{name}" OCR program + +%post gui +%desktop_database_post + +%postun gui +%desktop_database_postun %files %defattr(-,root,root,-) %doc AUTHORS BUGS CREDITS HISTORY README READMEde.txt TODO gpl.html %doc doc/{examples.txt,gocr.html,unicode.txt} %doc examples/ -%doc %{_mandir}/man1/gocr.1%{ext_man} +%{_mandir}/man1/gocr.1%{ext_man} %{_bindir}/gocr %files gui
