HHu ZhengInit!
b0ae4a8e创建于 3 天前历史提交
%define name	@PACKAGE@
%define version @VERSION@


Name:		%{name}
Summary: 	A powerful dictionary platform written in GTK+2
Version:	%{version}
Release:	1%{?dist}
Group: 		Applications/System
License: 	GPLv3
URL: 		http://stardict-4.sourceforge.net
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Requires: gtk2 >= 2.12
BuildRequires: gtk2 >= 2.12
BuildRequires: gettext, perl-XML-Parser

Requires: libsigc++20 >= 2.0.17
BuildRequires: libsigc++20-devel
Requires: espeak
BuildRequires: espeak-devel
Requires: enchant
BuildRequires: enchant-devel



%description
StarDict is a Cross-Platform and international dictionary written in Gtk.
It has powerful features such as "Glob-style pattern matching,"
"Scan selection word," "Fuzzy query," etc.

%prep
%setup -q

%build

%configure --disable-gnome-support --disable-schemas-install --disable-festival --disable-gucharmap
make

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
/bin/rm -f `find $RPM_BUILD_ROOT%{_libdir}/stardict/plugins -name "*.la"`
%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT


%files -f %{name}.lang
%defattr(-, root, root)
%{_bindir}/stardict
%{_datadir}/applications/*.desktop
%{_datadir}/stardict
%{_libdir}/stardict
%{_datadir}/pixmaps/stardict.png
%{_mandir}/man1/*
%doc README COPYING ChangeLog AUTHORS doc/FAQ doc/HACKING doc/HowToCreateDictionary doc/StarDictFileFormat doc/Translation


%post

%postun