11
|
1 |
%include Solaris.inc
|
|
2 |
|
|
3 |
%define src_name stardict
|
|
4 |
%define src_url http://downloads.sourceforge.net/stardict
|
|
5 |
|
|
6 |
Summary: A powerful dictionary platform written in GTK+2
|
|
7 |
SUNW_BaseDir: %{_basedir}
|
|
8 |
Name: SUNWstardict
|
|
9 |
Version: 3.0.1
|
|
10 |
Release: 1
|
|
11 |
License: GPLv3
|
|
12 |
Source: %{src_url}/%{src_name}-%{version}.tar.bz2
|
|
13 |
Patch1: stardict-01-ss12.diff
|
|
14 |
BuildRoot: %{_tmppath}/%{src_name}-%{version}-build
|
|
15 |
SUNW_LOC: zh,zh.GBK,zh_CN.GB18030,zh.UTF-8
|
|
16 |
SUNW_PKGLIST: SUNWgnome-libs
|
|
17 |
SUNW_Copyright: %{src_name}.copyright
|
|
18 |
|
|
19 |
%include default-depend.inc
|
|
20 |
Requires: SUNWlibC
|
|
21 |
Requires: SUNWlibpopt
|
|
22 |
Requires: SUNWgnome-base-libs
|
|
23 |
Requires: SUNWgnome-panel
|
|
24 |
Requires: SUNWpostrun
|
|
25 |
Requires: SUNWstardict-root
|
|
26 |
Requires: SUNWespeak
|
|
27 |
Requires: SUNWsigcpp
|
|
28 |
BuildRequires: SUNWlibpopt-devel
|
|
29 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
30 |
BuildRequires: SUNWgnome-panel-devel
|
|
31 |
BuildRequires: SUNWespeak-devel
|
|
32 |
BuildRequires: SUNWsigcpp-devel
|
|
33 |
|
|
34 |
%package root
|
|
35 |
Summary: %{summary} (ROOT)
|
|
36 |
SUNW_BaseDir: /
|
|
37 |
%include default-depend.inc
|
|
38 |
Requires: SUNWgnome-base-libs-root
|
|
39 |
Requires: SUNWgnome-panel-root
|
|
40 |
Requires: SUNWpostrun-root
|
|
41 |
|
|
42 |
%prep
|
|
43 |
%setup -q -n %{src_name}-%{version}
|
|
44 |
%patch1 -p1
|
|
45 |
|
|
46 |
%build
|
|
47 |
export CXX="${CXX} -norunpath"
|
|
48 |
export CFLAGS="%optflags"
|
|
49 |
#export CXXFLAGS="%cxx_optflags"
|
|
50 |
export LDFLAGS="%_ldflags -lsocket"
|
|
51 |
./autogen.sh --prefix=%{_prefix} \
|
|
52 |
--disable-festival \
|
|
53 |
--disable-advertisement \
|
|
54 |
--disable-gucharmap
|
|
55 |
make
|
|
56 |
|
|
57 |
%install
|
|
58 |
rm -rf ${RPM_BUILD_ROOT}
|
|
59 |
%makeinstall
|
|
60 |
find ${RPM_BUILD_ROOT} -name "*.a" -exec rm {} \; -print
|
|
61 |
find ${RPM_BUILD_ROOT} -name "*.la" -exec rm {} \; -print
|
|
62 |
|
|
63 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
64 |
|
|
65 |
%clean
|
|
66 |
rm -rf ${RPM_BUILD_ROOT}
|
|
67 |
|
|
68 |
%files
|
|
69 |
%defattr(-, root, bin)
|
|
70 |
%{_bindir}/*
|
|
71 |
%{_libdir}/bonobo/*
|
|
72 |
%{_libdir}/stardict/*
|
|
73 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
74 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
75 |
%attr (-, root, other) %{_datadir}/applications
|
|
76 |
%attr (-, root, other) %{_datadir}/pixmaps
|
|
77 |
%attr (-, root, other) %{_datadir}/locale
|
|
78 |
%{_datadir}/omf/*
|
|
79 |
%{_datadir}/idl/*
|
|
80 |
%{_datadir}/stardict/*
|
|
81 |
%{_datadir}/gnome/*
|
|
82 |
%{_datadir}/man/*
|
|
83 |
|
|
84 |
%files root
|
|
85 |
%defattr (-, root, sys)
|
|
86 |
%attr (-, root, sys) %{_sysconfdir}
|
|
87 |
|
|
88 |
%changelog
|
|
89 |
* Tue Aug 26 2008 - [email protected]
|
|
90 |
- Initial spec
|