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 Thu Mar 22 18:44:53 UTC 2018 - jengelh@inai.de

View File

@@ -1,7 +1,7 @@
# #
# spec file for package stardict # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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 %else
%define espeakdev espeak-devel %define espeakdev espeak-devel
%endif %endif
Name: stardict Name: stardict
Version: 3.0.5 Version: 3.0.6
Release: 0 Release: 0
Summary: A powerful cross-platform dictionary written in GTK+3 Summary: A powerful cross-platform dictionary written in GTK+3
License: GPL-3.0-only License: GPL-3.0-only
Group: Productivity/Office/Dictionary Group: Productivity/Office/Dictionary
Url: http://stardict-4.sourceforge.net/ URL: http://stardict-4.sourceforge.net/
Source0: %{name}-%{version}.tar.bz2 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 # 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 Patch0: stardict-3.0.3-fix-path-for-sounds.patch
# PATCH-FIX-OPENSUSE stardict-3.0.3-improve-desktop-file.patch -- add GenericName entry # PATCH-FIX-OPENSUSE stardict-3.0.3-improve-desktop-file.patch -- add GenericName entry
Patch1: stardict-3.0.3-improve-desktop-file.patch Patch1: stardict-3.0.3-improve-desktop-file.patch
# PATCH-FIX-OPENSUSE stardict-3.0.5-enable-gtk3.patch -- use gtk3 code # PATCH-FIX-OPENSUSE stardict-3.0.5-enable-gtk3.patch -- use gtk3 code
Patch2: stardict-3.0.5-enable-gtk3.patch Patch2: stardict-3.0.5-enable-gtk3.patch
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
BuildRequires: %{espeakdev} BuildRequires: %{espeakdev}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: gcc-c++ BuildRequires: gcc-c++
@@ -48,13 +44,16 @@ BuildRequires: intltool
BuildRequires: libsigc++2-devel BuildRequires: libsigc++2-devel
BuildRequires: libtool BuildRequires: libtool
BuildRequires: perl-XML-Parser BuildRequires: perl-XML-Parser
BuildRequires: pkgconfig
BuildRequires: sgml-skel BuildRequires: sgml-skel
BuildRequires: zlib-devel BuildRequires: zlib-devel
BuildRequires: pkgconfig(enchant) BuildRequires: pkgconfig(enchant)
BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(libxml-2.0)
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
# gucharmap now uses gtk3, but stardict still uses gtk2 # gucharmap now uses gtk3, but stardict still uses gtk2
# BuildRequires: gucharmap-devel # BuildRequires: gucharmap-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
StarDict is a cross-platform and international dictionary written in GTK+3. 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". selection word" and "Fuzzy query".
%lang_package %lang_package
%prep %prep
%setup -q %setup -q
%patch0 %patch0
@@ -82,7 +82,7 @@ find dict/src/sigc++* -name "*.h" -or -name "*.cc" -delete
--disable-schemas-install \ --disable-schemas-install \
--disable-scrollkeeper \ --disable-scrollkeeper \
--disable-tools --disable-tools
make %{?_smp_mflags} %make_build
%install %install
%make_install %make_install
@@ -90,7 +90,7 @@ make %{?_smp_mflags}
#fix spurious-executable-perm RPMLINT warning #fix spurious-executable-perm RPMLINT warning
chmod 0644 COPYING 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} %find_lang %{name}
@@ -99,14 +99,14 @@ find %{buildroot}%{_libdir}/stardict/plugins -name "*.la" -print0 | xargs -0 rm
%fdupes -s %{buildroot} %fdupes -s %{buildroot}
%files -f %{name}.lang %files -f %{name}.lang
%defattr(-,root,root) %license COPYING
%doc dict/doc/FAQ dict/doc/HACKING dict/doc/HowToCreateDictionary dict/doc/StarDictFileFormat dict/doc/Translation dict/AUTHORS COPYING dict/ChangeLog dict/README %doc dict/doc/FAQ dict/doc/HACKING dict/doc/HowToCreateDictionary dict/doc/StarDictFileFormat dict/doc/Translation dict/AUTHORS dict/ChangeLog dict/README
%{_libdir}/stardict %{_libdir}/stardict
%{_bindir}/* %{_bindir}/*
%{_datadir}/applications/*.desktop %{_datadir}/applications/*.desktop
%{_datadir}/omf %{_datadir}/omf
%{_datadir}/pixmaps/*.png %{_datadir}/pixmaps/*.png
%{_datadir}/stardict %{_datadir}/stardict
%{_mandir}/man1/stardict.1.gz %{_mandir}/man1/stardict.1%{?ext_man}
%changelog %changelog