9550
|
1 |
#
|
|
2 |
# spec file for package SUNWdevhelp.spec
|
|
3 |
#
|
11370
|
4 |
# Copyright 2008 Sun Microsystems, Inc.
|
9550
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
|
8 |
# includes module(s): devhelp
|
|
9 |
#
|
11985
|
10 |
# Owner: SimonZheng
|
11924
|
11 |
#
|
9550
|
12 |
|
|
13 |
%include Solaris.inc
|
|
14 |
%use devhelp = devhelp.spec
|
|
15 |
|
|
16 |
Name: SUNWgnome-devhelp
|
|
17 |
Summary: API documentation browser for GNOME 2
|
|
18 |
Version: %{default_pkg_version}
|
9578
|
19 |
Source: %{name}-manpages-0.1.tar.gz
|
9550
|
20 |
SUNW_BaseDir: %{_basedir}
|
11924
|
21 |
SUNW_Copyright: %{name}.copyright
|
9550
|
22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
23 |
|
|
24 |
%include default-depend.inc
|
|
25 |
Requires: SUNWgnome-base-libs
|
9567
|
26 |
Requires: SUNWgnome-panel
|
12317
|
27 |
Requires: SUNWfirefox
|
9550
|
28 |
BuildRequires: SUNWgnome-base-libs-devel
|
9567
|
29 |
BuildRequires: SUNWgnome-panel-devel
|
12317
|
30 |
BuildRequires: SUNWfirefox-devel
|
9550
|
31 |
|
|
32 |
%package root
|
|
33 |
Summary: %{summary} - / filesystem
|
|
34 |
SUNW_BaseDir: /
|
|
35 |
%include default-depend.inc
|
9782
|
36 |
Requires: SUNWpostrun-root
|
9550
|
37 |
Requires: SUNWgnome-config
|
|
38 |
|
|
39 |
%package devel
|
|
40 |
Summary: %{summary} - developer files
|
|
41 |
SUNW_BaseDir: %{_basedir}
|
|
42 |
%include default-depend.inc
|
|
43 |
Requires: %name
|
|
44 |
Requires: SUNWgnome-base-libs-devel
|
|
45 |
|
|
46 |
%if %build_l10n
|
|
47 |
%package l10n
|
|
48 |
Summary: %{summary} - l10n files
|
|
49 |
SUNW_BaseDir: %{_basedir}
|
|
50 |
%include default-depend.inc
|
|
51 |
Requires: %{name}
|
|
52 |
%endif
|
|
53 |
|
|
54 |
%prep
|
|
55 |
rm -rf %name-%version
|
|
56 |
mkdir %name-%version
|
|
57 |
%devhelp.prep -d %name-%version
|
|
58 |
cd %{_builddir}/%name-%version
|
9578
|
59 |
gzcat %SOURCE0 | tar xf -
|
9550
|
60 |
|
|
61 |
%build
|
12269
|
62 |
export CFLAGS="%optflags -I/usr/include/mps"
|
9550
|
63 |
export LDFLAGS="%_ldflags"
|
12269
|
64 |
export ACLOCAL_FLAGS="-I ./m4 -I /usr/share/aclocal"
|
9550
|
65 |
%if %cc_is_gcc
|
|
66 |
%else
|
|
67 |
export CXX="${CXX} -norunpath"
|
|
68 |
%endif
|
12269
|
69 |
export CXXFLAGS="%cxx_optflags -I/usr/include/mps"
|
9550
|
70 |
%devhelp.build -d %name-%version
|
|
71 |
|
|
72 |
%install
|
|
73 |
rm -rf $RPM_BUILD_ROOT
|
|
74 |
%devhelp.install -d %name-%version
|
9578
|
75 |
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
76 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
77 |
make install DESTDIR=$RPM_BUILD_ROOT
|
9550
|
78 |
|
|
79 |
%if %build_l10n
|
|
80 |
%else
|
|
81 |
# REMOVE l10n FILES
|
|
82 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
83 |
%endif
|
|
84 |
|
|
85 |
%clean
|
|
86 |
rm -rf $RPM_BUILD_ROOT
|
|
87 |
|
|
88 |
%post root
|
11084
|
89 |
%include gconf-install.script
|
9550
|
90 |
|
|
91 |
%preun root
|
9782
|
92 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0
|
|
93 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
|
|
94 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
|
9550
|
95 |
echo ' exit 0';
|
|
96 |
echo '}';
|
|
97 |
echo 'umask 0022';
|
9782
|
98 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
|
|
99 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
|
|
100 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
|
|
101 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
|
|
102 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
|
|
103 |
echo 'schemas="$SDIR/devhelp.schemas"';
|
|
104 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
|
|
105 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
|
9550
|
106 |
|
|
107 |
%files
|
|
108 |
%defattr (-, root, bin)
|
|
109 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
110 |
%{_bindir}/*
|
|
111 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
112 |
%{_libdir}/lib*
|
|
113 |
%{_libdir}/gedit-2/plugins/devhelp*
|
|
114 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
115 |
%dir %attr (0755, root, bin) %{_datadir}/devhelp
|
|
116 |
%{_datadir}/devhelp/*
|
|
117 |
%attr (0755, root, other) %{_datadir}/icons
|
|
118 |
%dir %attr (0755, root, other) %{_datadir}/applications
|
|
119 |
%{_datadir}/applications/*
|
9578
|
120 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
121 |
%dir %attr(0755, root, bin) %{_mandir}/*
|
|
122 |
%{_mandir}/*/*
|
9550
|
123 |
|
|
124 |
%files root
|
9780
|
125 |
%defattr (-, root, sys)
|
9550
|
126 |
%attr (0755, root, sys) %dir %{_sysconfdir}
|
|
127 |
%{_sysconfdir}/gconf/schemas/devhelp.schemas
|
|
128 |
|
|
129 |
%files devel
|
|
130 |
%defattr (-, root, bin)
|
|
131 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
132 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
133 |
%{_libdir}/pkgconfig/*
|
|
134 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
135 |
%{_includedir}/*
|
|
136 |
|
|
137 |
%if %build_l10n
|
|
138 |
%files l10n
|
|
139 |
%defattr (-, root, bin)
|
|
140 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
141 |
%attr (-, root, other) %{_datadir}/locale
|
|
142 |
%endif
|
|
143 |
|
|
144 |
%changelog
|
12352
|
145 |
* Mon May 26 2008 - [email protected]
|
|
146 |
- Modification has been made in base/devhelp.spec, so that we can support both
|
|
147 |
of FF2 and FF3 now. Using --with-ff3 to build with FF3
|
|
148 |
* Fri May 16 2008 - [email protected]
|
12317
|
149 |
- Undo Evan's change - revert to depend on SUNWfirefox/-devel because FF3 is
|
|
150 |
not stable enough to be the default browser in Nevada.
|
12269
|
151 |
* Thu May 08 2008 - [email protected]
|
|
152 |
- Replace Build/Requires SUNWfirefox/-devel to SUNWfirefox3/-devel
|
|
153 |
- Remove hardcode of firefox inlude path.
|
11924
|
154 |
* Thu Mar 27 2008 - [email protected]
|
|
155 |
- Add file SUNWgnome-devhelp.copyright.
|
11370
|
156 |
* Thu Jan 3 2008 - [email protected]
|
|
157 |
- use gconf-install.script instead of an inline script
|
11084
|
158 |
* Wed Oct 31 2007 - [email protected]
|
|
159 |
- Change the inline postinstall script to an include.
|
9780
|
160 |
* Tue Apr 24 2007 - [email protected]
|
9782
|
161 |
- make gconf postrun scripts consistent with other packages
|
|
162 |
- use $BASEDIR instead of $PKG_INSTALL_ROOT to fix diskless install
|
|
163 |
(CR 6537817)
|
|
164 |
* Tue Apr 24 2007 - [email protected]
|
9780
|
165 |
- s/0755/-/ in defattr so that files are not made all executable
|
9578
|
166 |
* Thu Mar 19 2007 - [email protected]
|
|
167 |
- Add manpage.
|
9567
|
168 |
* Thu Mar 15 2007 - [email protected]
|
|
169 |
- Add Build/Requires SUNWgnome-panel/-devel for libwnck.
|
|
170 |
* Wed March 14 2007 - [email protected]
|
9550
|
171 |
- Initial version created, which stems from extra-spec-file
|
|
172 |
created by [email protected] on sourceforge.net svn repository.
|