9397
|
1 |
#
|
|
2 |
# spec file for package SUNWgnome-text-editor
|
|
3 |
#
|
|
4 |
# includes module(s): gedit gtksourceview
|
|
5 |
#
|
11370
|
6 |
# Copyright 2008 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: rickju
|
|
11 |
#
|
|
12 |
%include Solaris.inc
|
|
13 |
|
|
14 |
%use gedit = gedit.spec
|
|
15 |
|
|
16 |
Name: SUNWgnome-text-editor
|
|
17 |
Summary: GNOME text editor
|
|
18 |
Version: %{default_pkg_version}
|
|
19 |
Source: %{name}-manpages-0.1.tar.gz
|
|
20 |
SUNW_BaseDir: %{_basedir}
|
11938
|
21 |
SUNW_Copyright: %{name}.copyright
|
9397
|
22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
23 |
|
|
24 |
%include default-depend.inc
|
|
25 |
Requires: SUNWgnome-text-editor-root
|
|
26 |
Requires: SUNWgnome-libs
|
|
27 |
Requires: SUNWgnome-print
|
|
28 |
Requires: SUNWlibms
|
|
29 |
Requires: SUNWgnome-base-libs
|
|
30 |
Requires: SUNWgnome-config
|
|
31 |
Requires: SUNWgnome-vfs
|
|
32 |
Requires: SUNWgnome-component
|
|
33 |
Requires: SUNWlibms
|
|
34 |
Requires: SUNWlxml
|
|
35 |
Requires: SUNWPython
|
|
36 |
Requires: SUNWgnome-python-libs
|
|
37 |
Requires: SUNWgnome-python-desktop
|
|
38 |
Requires: SUNWpostrun
|
|
39 |
Requires: SUNWgnome-gtksourceview
|
9504
|
40 |
Requires: SUNWgnome-spell
|
13125
|
41 |
BuildRequires: SUNWxwinc
|
|
42 |
BuildRequires: SUNWlxml-devel
|
9397
|
43 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
44 |
BuildRequires: SUNWgnome-config-devel
|
|
45 |
BuildRequires: SUNWgnome-vfs-devel
|
|
46 |
BuildRequires: SUNWgnome-libs-devel
|
|
47 |
BuildRequires: SUNWgnome-print-devel
|
|
48 |
BuildRequires: SUNWgnome-component-devel
|
|
49 |
BuildRequires: SUNWPython-devel
|
|
50 |
BuildRequires: SUNWgnome-python-libs-devel
|
|
51 |
BuildRequires: SUNWgnome-python-desktop-devel
|
|
52 |
BuildRequires: SUNWgnome-gtksourceview-devel
|
9504
|
53 |
BuildRequires: SUNWgnome-spell-devel
|
9397
|
54 |
|
|
55 |
%if %build_l10n
|
|
56 |
%package l10n
|
|
57 |
Summary: %{summary} - l10n files
|
|
58 |
SUNW_BaseDir: %{_basedir}
|
|
59 |
%include default-depend.inc
|
|
60 |
Requires: %{name}
|
|
61 |
%endif
|
|
62 |
|
|
63 |
%package root
|
|
64 |
Summary: %{summary} - / filesystem
|
|
65 |
SUNW_BaseDir: /
|
|
66 |
%include default-depend.inc
|
|
67 |
Requires: SUNWpostrun-root
|
|
68 |
Requires: SUNWgnome-config
|
|
69 |
|
|
70 |
%package devel
|
|
71 |
Summary: %{summary} - development files
|
|
72 |
SUNW_BaseDir: %{_basedir}
|
|
73 |
Requires: %{name} = %{version}
|
|
74 |
%include default-depend.inc
|
|
75 |
|
|
76 |
%prep
|
|
77 |
rm -rf %name-%version
|
|
78 |
mkdir %name-%version
|
|
79 |
%gedit.prep -d %name-%version
|
|
80 |
cd %{_builddir}/%name-%version
|
|
81 |
gzcat %SOURCE0 | tar xf -
|
|
82 |
cd %{_builddir}/%name-%version/gedit-%gedit.version
|
|
83 |
|
|
84 |
%build
|
|
85 |
PKG_CONFIG_DISABLE_UNINSTALLED=
|
|
86 |
unset PKG_CONFIG_DISABLE_UNINSTALLED
|
|
87 |
export LDFLAGS="%_ldflags -norunpath"
|
|
88 |
export CFLAGS="%optflags"
|
|
89 |
export LD_LIBRARY_PATH="/usr/sfw/lib:$LD_LIBRARY_PATH"
|
|
90 |
export LDFLAGS="%_ldflags -L/usr/X11/lib -R /usr/X11/lib -lX11"
|
|
91 |
%gedit.build -d %name-%version
|
|
92 |
|
|
93 |
%install
|
|
94 |
rm -rf $RPM_BUILD_ROOT
|
|
95 |
%gedit.install -d %name-%version
|
|
96 |
|
|
97 |
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
98 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
99 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
100 |
|
|
101 |
chmod 0755 $RPM_BUILD_ROOT%{_datadir}/gnome/help/gedit/C/*.xml
|
|
102 |
|
|
103 |
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
|
|
104 |
rm -rf $RPM_BUILD_ROOT%{_localstatedir}
|
|
105 |
|
|
106 |
%if %build_l10n
|
|
107 |
%else
|
|
108 |
# REMOVE l10n FILES
|
|
109 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
110 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]*
|
|
111 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z]*.omf
|
|
112 |
%endif
|
|
113 |
|
|
114 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
115 |
|
|
116 |
%clean
|
|
117 |
rm -rf $RPM_BUILD_ROOT
|
|
118 |
|
|
119 |
%post
|
|
120 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
121 |
echo '/usr/bin/update-desktop-database'
|
|
122 |
) | $BASEDIR/lib/postrun -b -u -c JDS_wait
|
|
123 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
|
|
124 |
echo '/usr/bin/scrollkeeper-update'
|
|
125 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
126 |
|
|
127 |
%postun
|
|
128 |
test -x $BASEDIR/lib/postrun || exit 0
|
|
129 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
130 |
echo '/usr/bin/update-desktop-database'
|
|
131 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
132 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
|
|
133 |
echo '/usr/bin/scrollkeeper-update'
|
|
134 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
135 |
|
|
136 |
%post root
|
11370
|
137 |
%include gconf-install.script
|
9397
|
138 |
|
|
139 |
%preun root
|
|
140 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0
|
|
141 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
|
|
142 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
|
|
143 |
echo ' exit 0';
|
|
144 |
echo '}';
|
|
145 |
echo 'umask 0022';
|
|
146 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
|
|
147 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
|
|
148 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
|
|
149 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
|
|
150 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
|
|
151 |
echo 'schemas="$SDIR/gedit.schemas"';
|
|
152 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
|
|
153 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
|
|
154 |
|
|
155 |
%files
|
|
156 |
%defattr (-, root, bin)
|
|
157 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
158 |
%{_bindir}/*
|
|
159 |
%dir %attr (0755, root, bin) %{_libdir}
|
9522
|
160 |
%{_libdir}/gedit-2/gedit-bugreport.sh
|
9397
|
161 |
%{_libdir}/gedit-2/plugins/*.so*
|
|
162 |
%{_libdir}/gedit-2/plugins/*.gedit-plugin
|
10617
|
163 |
%{_libdir}/gedit-2/plugins/snippets
|
|
164 |
%{_libdir}/gedit-2/plugins/externaltools
|
|
165 |
%{_libdir}/gedit-2/plugins/pythonconsole
|
9397
|
166 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
167 |
%dir %attr (0755, root, other) %{_datadir}/applications
|
|
168 |
%{_datadir}/applications/*
|
|
169 |
%{_datadir}/gedit-2
|
|
170 |
%{_datadir}/gtk-doc
|
|
171 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
172 |
%{_datadir}/gnome/help/gedit/C
|
|
173 |
%{_datadir}/omf/gedit/*-C.omf
|
|
174 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
175 |
%dir %attr(0755, root, bin) %{_mandir}/man1
|
|
176 |
%{_mandir}/man1/*
|
13657
|
177 |
%doc -d gedit-%{gedit.version} AUTHORS ChangeLog MAINTAINERS NEWS README
|
|
178 |
%doc(bzip2) -d gedit-%{gedit.version} COPYING
|
|
179 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
9397
|
180 |
|
|
181 |
%if %build_l10n
|
|
182 |
%files l10n
|
|
183 |
%defattr (-, root, bin)
|
|
184 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
185 |
%attr (-, root, other) %{_datadir}/locale
|
|
186 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
187 |
%{_datadir}/gnome/help/*/[a-z]*
|
|
188 |
%{_datadir}/omf/*/*-[a-z]*.omf
|
|
189 |
%endif
|
|
190 |
|
|
191 |
%files root
|
9780
|
192 |
%defattr (-, root, sys)
|
9397
|
193 |
%attr (0755, root, sys) %dir %{_sysconfdir}
|
|
194 |
%{_sysconfdir}/gconf/schemas/gedit.schemas
|
|
195 |
%{_sysconfdir}/gconf/schemas/gedit-file-browser.schemas
|
|
196 |
|
|
197 |
%files devel
|
|
198 |
%defattr (-, root, bin)
|
|
199 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
200 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
201 |
%{_libdir}/pkgconfig/*
|
|
202 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
203 |
%{_includedir}/*
|
|
204 |
|
|
205 |
%changelog
|
13125
|
206 |
* Sun Oct 07 2007 - [email protected]
|
|
207 |
- Add BuildRequires SUNWwxinc for sm.pc and SUNWlxml-devel for libxml-2.0.pc
|
|
208 |
(both referenced in configure.ac).
|
11370
|
209 |
* Thu Jan 3 2008 - [email protected]
|
|
210 |
- use gconf-install.script instead of an inline script
|
10617
|
211 |
* Sun Oct 07 2007 - [email protected]
|
|
212 |
- Add python plugin dirs, now installed because pygtksourceview is part of
|
|
213 |
SUNWgnome-python-libs.
|
10569
|
214 |
* Fri Sep 28 2007 - [email protected]
|
|
215 |
- delete unneeded env variables that break the indiana build
|
|
216 |
- delete SUNWxwrtl dep -- already depend on SUNWgnome-base-libs
|
10157
|
217 |
* Tue Jul 03 2007 - [email protected]
|
|
218 |
- Remove 3 plugins dirs from %files because they are no longer installed.
|
9780
|
219 |
* Tue Apr 24 2007 - [email protected]
|
|
220 |
- s/0755/-/ in defattr so that files are not made all executable
|
9522
|
221 |
* Mon Mar 12 2007 - [email protected]
|
|
222 |
- Add %{_libdir}/gedit-2/gedit-bugreport.sh, for 2.18.0 tarball.
|
9504
|
223 |
* Thu Mar 08 2007 - [email protected]
|
|
224 |
- Remove the dependency on aspell.
|
9397
|
225 |
* Thu Jan 25 2007 - [email protected]
|
|
226 |
- Remove plugins/*.py* from %files as none are installed.
|
|
227 |
* Tue Sep 05 2006 - [email protected]
|
|
228 |
- Fix root pkg (s/filebrowser.schemas/gedit-file-browser.schemas/).
|
|
229 |
* Mon Sep 04 2006 - [email protected]
|
|
230 |
- New Manpage tarball
|
|
231 |
* Wed Aug 16 2006 - [email protected]
|
|
232 |
- Add gtk-doc dir to %files.
|
|
233 |
* Fri Jul 28 2006 - [email protected]
|
|
234 |
- Update %files for new tarball.
|
|
235 |
* Fri Jul 14 2006 - [email protected]
|
|
236 |
- update %post/%postun/etc scripts to support diskless client setup,
|
|
237 |
part of 6448317
|
|
238 |
* Thu Jun 29 2006 - [email protected]
|
|
239 |
- update postrun scripts
|
|
240 |
* Thu Jun 29 2006 - [email protected]
|
|
241 |
- update %post/%preun gconf scripts, add SUNWgnome-gtksourceview deps
|
|
242 |
* Sun Jun 11 2006 - [email protected]
|
|
243 |
- change group from other to bin/sys
|
|
244 |
* Fri Jun 2 2006 - [email protected]
|
|
245 |
- use post/preun scripts to install schemas into the merged gconf files
|
|
246 |
* Sat May 13 2006 - [email protected]
|
|
247 |
- Remove /usr/lib/jds-private from LDFLAGS
|
|
248 |
* Wed May 10 2006 - [email protected]
|
|
249 |
- merge -share pkg(s) into the base pkg(s)
|
|
250 |
* Mon May 08 2006 - [email protected]
|
|
251 |
- Add Build/Requires SUNWgnome-python-desktop/-devel to build python plugins.
|
|
252 |
* Thu Mar 20 2006 - [email protected]
|
|
253 |
- Add Build/Requires SUNWgnome-python-libs/-devel to build python plugins.
|
|
254 |
* Wed Mar 15 2006 - [email protected]
|
|
255 |
- Add to Build/Requires after running check-deps.pl.
|
|
256 |
* Wed Mar 15 2006 - [email protected]
|
|
257 |
- Add Build/Requires SUNWgnome-component/-devel for ORBit2.
|
|
258 |
* Tue Mar 14 2006 - [email protected]
|
|
259 |
- Add plugins files to %files and remove unneeded rmdir of /usr/var.
|
|
260 |
* Mon Feb 20 2006 - [email protected]
|
|
261 |
- Complete update of Build/Requires after running check-deps.pl script.
|
|
262 |
* Fri Feb 17 2006 - [email protected]
|
|
263 |
- Update Build/Requires after running check-deps.pl script.
|
|
264 |
* Tue Jan 31 2006 - [email protected]
|
|
265 |
- Remove application-registry and mime-info directories as no files installed
|
|
266 |
there now.
|
|
267 |
* Wed Jan 18 2006 - [email protected]
|
|
268 |
- Remove scrollkeeper files under /usr/var and /var.
|
|
269 |
* Sat Jan 07 2006 - [email protected]
|
|
270 |
- Update %files for new tarball.
|
|
271 |
* Sat Dec 3 2005 - [email protected]
|
|
272 |
- add %post script that runs update-desktop-database
|
|
273 |
* Tue Nov 29 2005 - [email protected]
|
|
274 |
- remove javahelp stuff
|
|
275 |
* Wed Sep 14 2005 - [email protected]
|
|
276 |
- remove unpackaged files
|
|
277 |
* Wed Aug 31 2005 - [email protected]
|
|
278 |
- Set LD_LIBRARY_PATH so that libfreetype.so.6 can be found when a built
|
|
279 |
binary is run during the build step.
|
|
280 |
* Thu May 19 2005 - [email protected]
|
|
281 |
- Updte to 2.10, fix LDFLAGS and packaging for Solaris.
|
|
282 |
* Sat Jun 26 2004 [email protected]
|
|
283 |
- move sman3 manpages to devel pkg per Solaris pkg requirement
|
|
284 |
* Sat Oct 02 2004 - [email protected]
|
|
285 |
- added %pkgbuild_postprocess
|
|
286 |
* Thu Sep 09 2004 - [email protected]
|
|
287 |
- Added gtksourceview manpage
|
|
288 |
* Mon Aug 23 2004 - [email protected]
|
|
289 |
- s/SUNWpl5u/SUNWperl584usr/
|
|
290 |
* Wed Aug 18 2004 - [email protected]
|
|
291 |
- Change manpage perms for Solaris integration.
|
|
292 |
* Fri Jul 09 2004 - [email protected]
|
|
293 |
- Return -R to LDFLAGS. I had incorrectly implemented the ARC decision.
|
|
294 |
* Thu Jul 08 2004 - [email protected]
|
|
295 |
- Remove -R from LDFLAGS because ARC said to use -norunpath.
|
|
296 |
* Fri Jul 02 2004 - [email protected]
|
|
297 |
- Add /usr/lib/jds-private to LDFLAGS.
|
|
298 |
* Sat Jun 26 2004 [email protected]
|
|
299 |
- Changed install location to /usr/...
|
|
300 |
* Wed Jun 2 2004 - [email protected]
|
|
301 |
- Added %{_datadir}/locale to install l10n messages
|
|
302 |
* Mon May 03 2004 - <[email protected]>
|
|
303 |
- Added entry in spec for plugins files to get installed.
|
|
304 |
* Fri Mar 26 2004 - <[email protected]>
|
|
305 |
- add SUNWgnome-file-mgr dependency (for libeel)
|
|
306 |
* Wed Mar 24 2004 - [email protected]
|
|
307 |
- Added SGML man page integration
|
|
308 |
* Thu Mar 04 2004 - <[email protected]>
|
|
309 |
- fix build
|
|
310 |
- fix files %share
|
|
311 |
* Mon Mar 01 2004 - <[email protected]>
|
|
312 |
- fix dependencies
|
|
313 |
* Thu Feb 26 2004 - <[email protected]>
|
|
314 |
- set PERL5LIB to make intltool happy
|
|
315 |
* Mon Feb 23 2004 - <[email protected]>
|
|
316 |
- install gconf schemas at end of install stage.
|