2010-02-07 15:49:22 +00:00
|
|
|
#
|
2017-12-07 14:20:35 +00:00
|
|
|
# spec file for package stardict
|
2010-02-07 15:49:22 +00:00
|
|
|
#
|
2017-12-07 14:20:35 +00:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-02-07 15:49:22 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: stardict
|
2017-12-07 14:20:35 +00:00
|
|
|
Version: 3.0.5
|
|
|
|
Release: 0
|
2010-02-07 15:49:22 +00:00
|
|
|
Summary: A cross-platform and internationalized dictionary
|
2017-12-07 14:20:35 +00:00
|
|
|
License: GPL-3.0
|
2010-02-07 15:49:22 +00:00
|
|
|
Group: Productivity/Office/Dictionary
|
2017-12-07 14:20:35 +00:00
|
|
|
Url: http://stardict-4.sourceforge.net/
|
2010-02-07 15:49:22 +00:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2017-12-07 14:20:35 +00:00
|
|
|
# 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
|
2010-02-07 15:49:22 +00:00
|
|
|
%endif
|
2017-12-07 14:20:35 +00:00
|
|
|
BuildRequires: enchant-devel
|
|
|
|
BuildRequires: espeak-devel
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gnome-doc-utils-devel
|
|
|
|
BuildRequires: gtk3-devel >= 3.0
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: libsigc++2-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: perl-XML-Parser
|
|
|
|
BuildRequires: sgml-skel
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
|
|
# gucharmap now uses gtk3, but stardict still uses gtk2
|
|
|
|
# BuildRequires: gucharmap-devel
|
|
|
|
Requires: enchant
|
|
|
|
Requires: espeak
|
2010-02-07 15:49:22 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
StarDict is a Cross-Platform and international dictionary written in
|
2017-12-07 14:20:35 +00:00
|
|
|
Gtk3.
|
2010-02-07 15:49:22 +00:00
|
|
|
|
|
|
|
It has powerful features such as "Glob-style pattern matching", "Scan
|
|
|
|
selection word","Fuzzy query" etc.
|
|
|
|
|
|
|
|
|
2017-12-07 14:20:35 +00:00
|
|
|
%lang_package
|
2010-02-07 15:49:22 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2017-12-07 14:20:35 +00:00
|
|
|
%patch0
|
|
|
|
%patch1
|
|
|
|
%patch2
|
|
|
|
|
2010-02-07 15:49:22 +00:00
|
|
|
# Remove unneeded sigc++ header files to make it sure
|
|
|
|
# that we are using system-wide libsigc++
|
|
|
|
find src/sigc++* -name \*.h -or -name \*.cc | xargs rm -f
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
2017-12-07 14:20:35 +00:00
|
|
|
--disable-dictdotcn \
|
|
|
|
--disable-festival \
|
|
|
|
--disable-gnome-support \
|
|
|
|
--disable-gucharmap \
|
2010-02-07 15:49:22 +00:00
|
|
|
--disable-schemas-install \
|
2017-12-07 14:20:35 +00:00
|
|
|
--disable-scrollkeeper \
|
|
|
|
--disable-tools
|
|
|
|
make %{?_smp_mflags}
|
2010-02-07 15:49:22 +00:00
|
|
|
|
|
|
|
%install
|
2017-12-07 14:20:35 +00:00
|
|
|
%make_install
|
|
|
|
|
|
|
|
#fix spurious-executable-perm RPMLINT warning
|
|
|
|
chmod 0644 COPYING
|
|
|
|
|
|
|
|
find %{buildroot}%{_libdir}/stardict/plugins -name "*.la" -print0 | xargs -0 rm -rf {} \;
|
|
|
|
|
2010-02-07 15:49:22 +00:00
|
|
|
%find_lang %{name}
|
2017-12-07 14:20:35 +00:00
|
|
|
|
|
|
|
%suse_update_desktop_file stardict Office Dictionary
|
2010-02-07 15:49:22 +00:00
|
|
|
# save space, create symlinks for identical files
|
2017-12-07 14:20:35 +00:00
|
|
|
%fdupes -s %{buildroot}
|
2010-02-07 15:49:22 +00:00
|
|
|
|
|
|
|
%clean
|
2017-12-07 14:20:35 +00:00
|
|
|
rm -rf %{buildroot}
|
2010-02-07 15:49:22 +00:00
|
|
|
|
2017-12-07 14:20:35 +00:00
|
|
|
%files -f %{name}.lang
|
2010-02-07 15:49:22 +00:00
|
|
|
%defattr(-,root,root)
|
2017-12-07 14:20:35 +00:00
|
|
|
%doc dict/doc/FAQ dict/doc/HACKING dict/doc/HowToCreateDictionary dict/doc/StarDictFileFormat dict/doc/Translation dict/AUTHORS COPYING dict/ChangeLog dict/README
|
2010-02-07 15:49:22 +00:00
|
|
|
%{_libdir}/stardict
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
|
%{_datadir}/omf
|
|
|
|
%{_datadir}/pixmaps/*.png
|
|
|
|
%{_datadir}/stardict
|
2017-12-07 14:20:35 +00:00
|
|
|
%{_mandir}/man1/stardict.1.gz
|
2010-02-07 15:49:22 +00:00
|
|
|
|
|
|
|
%changelog
|