File: stardict-withoutgnome.spec.in

package info (click to toggle)
stardict 3.0.6-0.2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 28,072 kB
  • sloc: cpp: 74,453; xml: 20,424; sh: 16,098; ansic: 3,883; python: 1,086; makefile: 1,069; php: 308; perl: 223
file content (58 lines) | stat: -rw-r--r-- 1,649 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
%define name	@PACKAGE@
%define version @VERSION@

Name:		%{name}
Summary: 	A powerful dictionary platform written in GTK
Version:	%{version}
Release:	1%{?dist}
Group: 		Applications/System
License: 	GPLv3
URL: 		http://www.stardict.org
Source0:	http://stardict-3.googlecode.com/files/%{name}-%{version}.tar.bz2
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Requires: gtk2, enchant, espeak, libsigc++20 >= 2.0.17
#Requires: gucharmap, festival, speech-tools

BuildRequires: desktop-file-utils, gettext, intltool
BuildRequires: gtk2-devel, libsigc++20-devel, enchant-devel, espeak-devel
#BuildRequires: gucharmap-devel, festival-devel, speech-tools-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-gucharmap --disable-dictdotcn --disable-festival --disable-tools
make -k %{_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
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 dict/README COPYING dict/ChangeLog dict/AUTHORS dict/doc/FAQ dict/doc/HACKING dict/doc/HowToCreateDictionary dict/doc/StarDictFileFormat dict/doc/Translation


%post

%postun