Accepting request 814729 from home:andythe_great:branches:Education

- Update to version 3.0.6.
  * Update stardict_powerword_parsedata.cpp
  * Small text changes. 
- Clean up spec file.

OBS-URL: https://build.opensuse.org/request/show/814729
OBS-URL: https://build.opensuse.org/package/show/Education/stardict?expand=0&rev=48
This commit is contained in:
Kirill Kirillov 2020-06-27 19:47:50 +00:00 committed by Git OBS Bridge
parent 076c5aa3d3
commit acd72cc2cc
4 changed files with 27 additions and 19 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1e71fefd8637d6ae797347f771fbb44ff5cb925ad1dd5fa17c6e988c4a0bcce8
size 9353864

3
stardict-3.0.6.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6a0a695a8977604e0509a3db1bc6a67e53599b14f29494ba942f21d2c26b82e7
size 9341740

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Jun 12 00:26:48 UTC 2020 - andy great <andythe_great@pm.me>
- Update to version 3.0.6.
* Update stardict_powerword_parsedata.cpp
* Small text changes.
- Clean up spec file.
-------------------------------------------------------------------
Thu Mar 22 18:44:53 UTC 2018 - jengelh@inai.de

View File

@ -1,7 +1,7 @@
#
# spec file for package stardict
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -21,24 +21,20 @@
%else
%define espeakdev espeak-devel
%endif
Name: stardict
Version: 3.0.5
Version: 3.0.6
Release: 0
Summary: A powerful cross-platform dictionary written in GTK+3
License: GPL-3.0-only
Group: Productivity/Office/Dictionary
Url: http://stardict-4.sourceforge.net/
Source0: %{name}-%{version}.tar.bz2
URL: http://stardict-4.sourceforge.net/
Source0: http://sourceforge.net/projects/stardict-4/files/%{version}/%{name}-%{version}.tar.bz2/download#/%{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE stardict-3.0.3-fix-path-for-sounds.patch -- adjust default path for sound files
Patch0: stardict-3.0.3-fix-path-for-sounds.patch
# PATCH-FIX-OPENSUSE stardict-3.0.3-improve-desktop-file.patch -- add GenericName entry
Patch1: stardict-3.0.3-improve-desktop-file.patch
# PATCH-FIX-OPENSUSE stardict-3.0.5-enable-gtk3.patch -- use gtk3 code
Patch2: stardict-3.0.5-enable-gtk3.patch
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
BuildRequires: %{espeakdev}
BuildRequires: fdupes
BuildRequires: gcc-c++
@ -48,13 +44,16 @@ BuildRequires: intltool
BuildRequires: libsigc++2-devel
BuildRequires: libtool
BuildRequires: perl-XML-Parser
BuildRequires: pkgconfig
BuildRequires: sgml-skel
BuildRequires: zlib-devel
BuildRequires: pkgconfig(enchant)
BuildRequires: pkgconfig(libxml-2.0)
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
# gucharmap now uses gtk3, but stardict still uses gtk2
# BuildRequires: gucharmap-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
StarDict is a cross-platform and international dictionary written in GTK+3.
@ -63,6 +62,7 @@ It has features such as "Glob-style pattern matching", "Scan
selection word" and "Fuzzy query".
%lang_package
%prep
%setup -q
%patch0
@ -82,7 +82,7 @@ find dict/src/sigc++* -name "*.h" -or -name "*.cc" -delete
--disable-schemas-install \
--disable-scrollkeeper \
--disable-tools
make %{?_smp_mflags}
%make_build
%install
%make_install
@ -90,7 +90,7 @@ make %{?_smp_mflags}
#fix spurious-executable-perm RPMLINT warning
chmod 0644 COPYING
find %{buildroot}%{_libdir}/stardict/plugins -name "*.la" -print0 | xargs -0 rm -rf {} \;
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{name}
@ -98,15 +98,15 @@ find %{buildroot}%{_libdir}/stardict/plugins -name "*.la" -print0 | xargs -0 rm
# save space, create symlinks for identical files
%fdupes -s %{buildroot}
%files -f %{name}.lang
%defattr(-,root,root)
%doc dict/doc/FAQ dict/doc/HACKING dict/doc/HowToCreateDictionary dict/doc/StarDictFileFormat dict/doc/Translation dict/AUTHORS COPYING dict/ChangeLog dict/README
%files -f %{name}.lang
%license COPYING
%doc dict/doc/FAQ dict/doc/HACKING dict/doc/HowToCreateDictionary dict/doc/StarDictFileFormat dict/doc/Translation dict/AUTHORS dict/ChangeLog dict/README
%{_libdir}/stardict
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/omf
%{_datadir}/pixmaps/*.png
%{_datadir}/stardict
%{_mandir}/man1/stardict.1.gz
%{_mandir}/man1/stardict.1%{?ext_man}
%changelog