9397
|
1 |
#
|
|
2 |
# spec file for package SUNWgnome-spell
|
|
3 |
#
|
|
4 |
# includes module(s): gnome-spell, enchant
|
|
5 |
#
|
10572
|
6 |
# Copyright 2007 Sun Microsystems, Inc.
|
9397
|
7 |
# This file and all modifications and additions to the pristine
|
|
8 |
# package are under the same license as the package itself.
|
|
9 |
#
|
|
10 |
# Owner: jefftsai
|
|
11 |
#
|
|
12 |
%include Solaris.inc
|
|
13 |
%use gspell = gnome-spell.spec
|
|
14 |
%use enchant = enchant.spec
|
|
15 |
|
|
16 |
Name: SUNWgnome-spell
|
|
17 |
Summary: GNOME spell checker component
|
|
18 |
Version: %{default_pkg_version}
|
|
19 |
SUNW_BaseDir: %{_basedir}
|
12003
|
20 |
SUNW_Copyright:%{name}.copyright
|
9397
|
21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
22 |
%include default-depend.inc
|
|
23 |
Requires: SUNWgnome-component
|
|
24 |
Requires: SUNWgnome-base-libs
|
|
25 |
Requires: SUNWgnome-config
|
|
26 |
Requires: SUNWgnome-libs
|
9568
|
27 |
Requires: SUNWlibC
|
9397
|
28 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
29 |
BuildRequires: SUNWgnome-config-devel
|
|
30 |
BuildRequires: SUNWgnome-libs-devel
|
|
31 |
BuildRequires: SUNWgnome-component-devel
|
|
32 |
|
|
33 |
%package devel
|
|
34 |
Summary: %{summary} - development files
|
|
35 |
SUNW_BaseDir: %{_basedir}
|
|
36 |
Requires: %{name} = %{version}
|
|
37 |
%include default-depend.inc
|
|
38 |
|
|
39 |
%if %build_l10n
|
|
40 |
%package l10n
|
|
41 |
Summary: %{summary} - l10n content
|
|
42 |
SUNW_BaseDir: %{_basedir}
|
|
43 |
%include default-depend.inc
|
|
44 |
Requires: %name
|
|
45 |
%endif
|
|
46 |
|
|
47 |
%prep
|
|
48 |
rm -rf %name-%version
|
|
49 |
mkdir -p %name-%version
|
|
50 |
%enchant.prep -d %name-%version
|
|
51 |
%gspell.prep -d %name-%version
|
|
52 |
|
|
53 |
%build
|
9794
|
54 |
%if %cc_is_gcc
|
|
55 |
%else
|
|
56 |
export CXX="${CXX} -norunpath"
|
|
57 |
%endif
|
|
58 |
|
9397
|
59 |
# See http://bugzilla.abisource.com/show_bug.cgi?id=10668 for why LD is set
|
|
60 |
# to $CXX.
|
|
61 |
export LD=$CXX
|
10572
|
62 |
export LDFLAGS="%_ldflags"
|
9397
|
63 |
%enchant.build -d %name-%version
|
|
64 |
export CFLAGS="%optflags"
|
|
65 |
export CXXFLAGS="%cxx_optflags"
|
|
66 |
export PKG_CONFIG_PATH=../enchant-%{enchant.version}:%{_pkg_config_path}
|
|
67 |
%gspell.build -d %name-%version
|
|
68 |
|
|
69 |
%install
|
|
70 |
%enchant.install -d %name-%version
|
|
71 |
%gspell.install -d %name-%version
|
|
72 |
|
|
73 |
%if %build_l10n
|
|
74 |
%else
|
|
75 |
# REMOVE l10n FILES
|
|
76 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
77 |
%endif
|
|
78 |
|
|
79 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
80 |
|
|
81 |
%clean
|
|
82 |
rm -rf $RPM_BUILD_ROOT
|
|
83 |
|
|
84 |
%files
|
|
85 |
%defattr (-, root, bin)
|
|
86 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
87 |
%{_bindir}/*
|
|
88 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
89 |
%{_libdir}/libenchant*
|
|
90 |
%{_libdir}/bonobo
|
|
91 |
%dir %{_libdir}/gnome-spell
|
|
92 |
%{_libdir}/gnome-spell/*.so
|
|
93 |
%dir %{_libdir}/enchant
|
|
94 |
%{_libdir}/enchant/*.so
|
|
95 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
96 |
%dir %attr (0755, root, other) %{_datadir}/control-center-2.0
|
|
97 |
%{_datadir}/control-center-2.0/*
|
|
98 |
%{_datadir}/enchant
|
|
99 |
%{_datadir}/gnome-spell-%{gspell.version}
|
|
100 |
%{_datadir}/idl
|
|
101 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
102 |
%dir %attr(0755, root, bin) %{_mandir}/man1
|
|
103 |
%{_mandir}/man1/*
|
|
104 |
|
|
105 |
%files devel
|
|
106 |
%defattr (-, root, bin)
|
|
107 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
108 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
109 |
%{_libdir}/pkgconfig/*
|
|
110 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
111 |
%{_includedir}/*
|
|
112 |
|
|
113 |
%if %build_l10n
|
|
114 |
%files l10n
|
|
115 |
%defattr (-, root, bin)
|
|
116 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
117 |
%attr (-, root, other) %{_datadir}/locale
|
|
118 |
%endif
|
|
119 |
|
|
120 |
%changelog
|
12003
|
121 |
* Wed Apr 02 2008 - [email protected]
|
|
122 |
- Add copyright file.
|
9794
|
123 |
* Thu Apr 26 2007 - [email protected]
|
|
124 |
- set CXX to $CXX -norunpath because libtool swallows this option sometimes
|
|
125 |
and leaves compiler paths in the binaries
|
9660
|
126 |
* Wed Apr 4 2007 - [email protected]
|
|
127 |
- remove enchant++.h from the package.
|
9618
|
128 |
* Fri Mar 23 2007 - [email protected]
|
|
129 |
- Change %{_datadir}/control-center-2.0 perms to root:other on snv to match
|
|
130 |
SUNWj5rt and SUNWj6rt who set the perms in their postinstall scripts.
|
9568
|
131 |
* Thu Mar 15 2007 - [email protected]
|
|
132 |
- Add Requires SUNWlibC after check-deps.pl run.
|
9504
|
133 |
* Thu Mar 08 2007 - [email protected]
|
|
134 |
- Remove dependency on aspell.
|
9397
|
135 |
* Wed Feb 14 2007 - [email protected]
|
|
136 |
- Make gnome-spell use enchant.
|
|
137 |
* Sun Jan 28 2007 - [email protected]
|
|
138 |
- update %files so that dir attributes work on both s10 and nevada
|
|
139 |
* Mon Dec 11 2006 - [email protected]
|
|
140 |
- Set LD to $CXX so that linking to C++ libs works in enchant.
|
|
141 |
* Fri Dec 08 2006 - [email protected]
|
|
142 |
- Add enchant.spec module and update %files.
|
|
143 |
* Sun Jun 11 2006 - [email protected]
|
|
144 |
- change group from other to bin/sys
|
|
145 |
* Thu May 11 2006 - [email protected]
|
|
146 |
- Merge -share pkg(s) into the base pkg(s).
|
|
147 |
* Fri Apr 21 2006 - [email protected].
|
|
148 |
- Add %{_libdir}/aspell to PATH,
|
|
149 |
this is becuase aspell change, refer to LSARC/2006/231
|
|
150 |
* Mon Feb 20 2006 - [email protected]
|
|
151 |
- Update Build/Requires after running check-deps.pl script.
|
|
152 |
* Sat Oct 30 2004 - [email protected]
|
|
153 |
- change version to 2.6.0 to match other GNOME pkgs
|
|
154 |
* Sat Oct 02 2004 - [email protected]
|
|
155 |
- added %pkgbuild_postprocess
|
|
156 |
* Thu Sep 23 2004 - [email protected]
|
|
157 |
- Add BuildRequires SUNWgnome-libs-devel so libgnomeui is available for
|
|
158 |
gnome-spell.
|
|
159 |
* Tue Jun 22 2004 - [email protected]
|
|
160 |
- changed install location to /usr/lib and /usr/bin
|
|
161 |
* Thu Mar 11 2004 - <[email protected]>
|
|
162 |
- initial version created
|