author | chrisk |
Mon, 31 Aug 2009 16:23:04 +0000 | |
changeset 16434 | f21f22550fe9 |
parent 16320 | 1bc718df6936 |
child 16753 | 7ac47663ace4 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWgnome-spell |
|
3 |
# |
|
12769 | 4 |
# includes module(s): enchant |
9397 | 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 |
# |
|
16434 | 10 |
%define owner wangke |
9397 | 11 |
# |
12 |
%include Solaris.inc |
|
12769 | 13 |
|
14 |
%ifarch amd64 sparcv9 |
|
15 |
%include arch64.inc |
|
16320 | 16 |
%define _ldflags %ldadd -Wl,-zignore -Wl,-zcombreloc -Wl,-Bdirect ${EXTRA_LDFLAGS} |
12769 | 17 |
%use enchant_64 = enchant.spec |
18 |
%endif |
|
19 |
||
20 |
%include base.inc |
|
9397 | 21 |
%use enchant = enchant.spec |
22 |
||
23 |
Name: SUNWgnome-spell |
|
24 |
Summary: GNOME spell checker component |
|
25 |
Version: %{default_pkg_version} |
|
26 |
SUNW_BaseDir: %{_basedir} |
|
12003 | 27 |
SUNW_Copyright:%{name}.copyright |
9397 | 28 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
29 |
%include default-depend.inc |
|
15650 | 30 |
Requires: SUNWglib2 |
9397 | 31 |
Requires: SUNWgnome-component |
32 |
Requires: SUNWgnome-config |
|
33 |
Requires: SUNWgnome-libs |
|
12592 | 34 |
Requires: SUNWiso-codes |
9568 | 35 |
Requires: SUNWlibC |
15650 | 36 |
BuildRequires: SUNWglib2-devel |
9397 | 37 |
BuildRequires: SUNWgnome-config-devel |
38 |
BuildRequires: SUNWgnome-libs-devel |
|
39 |
BuildRequires: SUNWgnome-component-devel |
|
12592 | 40 |
BuildRequires: SUNWiso-codes-devel |
9397 | 41 |
|
12953 | 42 |
Source1: %{name}-manpages-0.1.tar.gz |
43 |
||
9397 | 44 |
%package devel |
45 |
Summary: %{summary} - development files |
|
46 |
SUNW_BaseDir: %{_basedir} |
|
47 |
Requires: %{name} = %{version} |
|
48 |
%include default-depend.inc |
|
15833
7f9243acbaba
fix dependency issue(CR6843511, 6843654, 6843579, 6843587, 6843581, 6845023, 6843582)
davelam
parents:
15650
diff
changeset
|
49 |
Requires: SUNWglib2-devel |
9397 | 50 |
|
51 |
%prep |
|
52 |
rm -rf %name-%version |
|
53 |
mkdir -p %name-%version |
|
12769 | 54 |
|
55 |
%ifarch amd64 sparcv9 |
|
56 |
mkdir %name-%version/%_arch64 |
|
57 |
%enchant_64.prep -d %name-%version/%_arch64 |
|
58 |
%endif |
|
59 |
||
9397 | 60 |
%enchant.prep -d %name-%version |
12769 | 61 |
|
62 |
mkdir %name-%version/%base_arch |
|
63 |
%enchant.prep -d %name-%version/%base_arch |
|
9397 | 64 |
|
12953 | 65 |
# Expand manpages tarball |
66 |
cd %{_builddir}/%name-%version |
|
67 |
gzcat %SOURCE1 | tar xf - |
|
68 |
||
9397 | 69 |
%build |
9794 | 70 |
%if %cc_is_gcc |
71 |
%else |
|
72 |
export CXX="${CXX} -norunpath" |
|
73 |
%endif |
|
74 |
||
9397 | 75 |
# See http://bugzilla.abisource.com/show_bug.cgi?id=10668 for why LD is set |
76 |
# to $CXX. |
|
16320 | 77 |
#export LD=$CXX |
12769 | 78 |
|
79 |
%ifarch amd64 sparcv9 |
|
16318 | 80 |
export PKG_CONFIG_LIBDIR=%{_pkg_config_path64} |
12769 | 81 |
%enchant_64.build -d %name-%version/%_arch64 |
82 |
%endif |
|
83 |
||
16318 | 84 |
export PKG_CONFIG_LIBDIR=%{_pkg_config_path} |
12769 | 85 |
%enchant.build -d %name-%version/%base_arch |
9397 | 86 |
|
87 |
%install |
|
12769 | 88 |
rm -rf $RPM_BUILD_ROOT |
89 |
||
90 |
%ifarch amd64 sparcv9 |
|
91 |
%enchant_64.install -d %name-%version/%_arch64 |
|
92 |
rm $RPM_BUILD_ROOT%{_libdir}/%_arch64/*.la |
|
93 |
rm $RPM_BUILD_ROOT%{_libdir}/%_arch64/enchant/*.la |
|
94 |
%endif |
|
95 |
||
96 |
%enchant.install -d %name-%version/%base_arch |
|
97 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
|
98 |
rm $RPM_BUILD_ROOT%{_libdir}/enchant/*.la |
|
12953 | 99 |
rm $RPM_BUILD_ROOT%{_mandir}/man1/* |
100 |
||
101 |
cd %{_builddir}/%name-%version/sun-manpages |
|
102 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
103 |
||
9397 | 104 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
105 |
||
106 |
%clean |
|
107 |
rm -rf $RPM_BUILD_ROOT |
|
108 |
||
109 |
%files |
|
13617 | 110 |
|
111 |
%doc -d enchant-%{enchant.version} AUTHORS README |
|
112 |
%doc(bzip2) -d enchant-%{enchant.version} ChangeLog |
|
113 |
%doc(bzip2) -d enchant-%{enchant.version} COPYING.LIB |
|
114 |
%doc(bzip2) -d enchant-%{enchant.version} NEWS |
|
115 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
116 |
||
9397 | 117 |
%defattr (-, root, bin) |
118 |
%dir %attr (0755, root, bin) %{_bindir} |
|
12769 | 119 |
%{_bindir}/enchant* |
120 |
%ifarch amd64 sparcv9 |
|
121 |
%dir %attr (0755, root, bin) %{_bindir}/%{_arch64} |
|
122 |
%{_bindir}/%{_arch64}/enchant* |
|
123 |
%endif |
|
9397 | 124 |
%dir %attr (0755, root, bin) %{_libdir} |
125 |
%{_libdir}/libenchant* |
|
12769 | 126 |
%ifarch amd64 sparcv9 |
127 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64} |
|
128 |
%{_libdir}/%{_arch64}/libenchant* |
|
129 |
%endif |
|
130 |
||
9397 | 131 |
%dir %{_libdir}/enchant |
132 |
%{_libdir}/enchant/*.so |
|
12769 | 133 |
%ifarch amd64 sparcv9 |
134 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}/enchant |
|
135 |
%{_libdir}/%{_arch64}/enchant/*.so |
|
136 |
%endif |
|
137 |
||
9397 | 138 |
%dir %attr (0755, root, sys) %{_datadir} |
139 |
%{_datadir}/enchant |
|
140 |
%dir %attr(0755, root, bin) %{_mandir} |
|
141 |
%dir %attr(0755, root, bin) %{_mandir}/man1 |
|
142 |
%{_mandir}/man1/* |
|
12953 | 143 |
%dir %attr(0755, root, bin) %{_mandir}/man3 |
144 |
%{_mandir}/man3/* |
|
9397 | 145 |
|
146 |
%files devel |
|
147 |
%defattr (-, root, bin) |
|
148 |
%dir %attr (0755, root, bin) %{_libdir} |
|
149 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
150 |
%{_libdir}/pkgconfig/* |
|
12769 | 151 |
%ifarch amd64 sparcv9 |
152 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64} |
|
153 |
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig |
|
154 |
%{_libdir}/%{_arch64}/pkgconfig/* |
|
155 |
%endif |
|
156 |
||
9397 | 157 |
%dir %attr (0755, root, bin) %{_includedir} |
158 |
%{_includedir}/* |
|
159 |
||
160 |
%changelog |
|
15998 | 161 |
* Mon Jul 06 2009 - [email protected] |
162 |
- change owner to Ke Wang. |
|
15833
7f9243acbaba
fix dependency issue(CR6843511, 6843654, 6843579, 6843587, 6843581, 6845023, 6843582)
davelam
parents:
15650
diff
changeset
|
163 |
* Tue Jun 02 2009 - [email protected] |
7f9243acbaba
fix dependency issue(CR6843511, 6843654, 6843579, 6843587, 6843581, 6845023, 6843582)
davelam
parents:
15650
diff
changeset
|
164 |
- fixed dependency issue(CR6843587). |
13617 | 165 |
* Wed Sep 17 2008 - [email protected] |
166 |
- Add copyright. |
|
12953 | 167 |
* Tue Jul 29 2008 - [email protected] |
168 |
- Add man page. |
|
12769 | 169 |
* Mon Jul 07 2008 - [email protected] |
170 |
- Remove gnome-spell because Evolution doesn't depends on it. |
|
171 |
- Add 64bit build support. |
|
12592 | 172 |
* Thu Jun 05 2008 - [email protected] |
173 |
- Add Build/Requires SUNWiso-codes/-devel for gnome-spell. |
|
12003 | 174 |
* Wed Apr 02 2008 - [email protected] |
175 |
- Add copyright file. |
|
9794 | 176 |
* Thu Apr 26 2007 - [email protected] |
177 |
- set CXX to $CXX -norunpath because libtool swallows this option sometimes |
|
178 |
and leaves compiler paths in the binaries |
|
9660 | 179 |
* Wed Apr 4 2007 - [email protected] |
180 |
- remove enchant++.h from the package. |
|
9618 | 181 |
* Fri Mar 23 2007 - [email protected] |
182 |
- Change %{_datadir}/control-center-2.0 perms to root:other on snv to match |
|
183 |
SUNWj5rt and SUNWj6rt who set the perms in their postinstall scripts. |
|
9568 | 184 |
* Thu Mar 15 2007 - [email protected] |
185 |
- Add Requires SUNWlibC after check-deps.pl run. |
|
9504 | 186 |
* Thu Mar 08 2007 - [email protected] |
187 |
- Remove dependency on aspell. |
|
9397 | 188 |
* Wed Feb 14 2007 - [email protected] |
189 |
- Make gnome-spell use enchant. |
|
190 |
* Sun Jan 28 2007 - [email protected] |
|
191 |
- update %files so that dir attributes work on both s10 and nevada |
|
192 |
* Mon Dec 11 2006 - [email protected] |
|
193 |
- Set LD to $CXX so that linking to C++ libs works in enchant. |
|
194 |
* Fri Dec 08 2006 - [email protected] |
|
195 |
- Add enchant.spec module and update %files. |
|
196 |
* Sun Jun 11 2006 - [email protected] |
|
197 |
- change group from other to bin/sys |
|
198 |
* Thu May 11 2006 - [email protected] |
|
199 |
- Merge -share pkg(s) into the base pkg(s). |
|
200 |
* Fri Apr 21 2006 - [email protected]. |
|
201 |
- Add %{_libdir}/aspell to PATH, |
|
202 |
this is becuase aspell change, refer to LSARC/2006/231 |
|
203 |
* Mon Feb 20 2006 - [email protected] |
|
204 |
- Update Build/Requires after running check-deps.pl script. |
|
205 |
* Sat Oct 30 2004 - [email protected] |
|
206 |
- change version to 2.6.0 to match other GNOME pkgs |
|
207 |
* Sat Oct 02 2004 - [email protected] |
|
208 |
- added %pkgbuild_postprocess |
|
209 |
* Thu Sep 23 2004 - [email protected] |
|
210 |
- Add BuildRequires SUNWgnome-libs-devel so libgnomeui is available for |
|
211 |
gnome-spell. |
|
212 |
* Tue Jun 22 2004 - [email protected] |
|
213 |
- changed install location to /usr/lib and /usr/bin |
|
214 |
* Thu Mar 11 2004 - <[email protected]> |
|
215 |
- initial version created |
|
15650 | 216 |