author | henryz |
Wed, 09 Apr 2008 07:35:21 +0000 | |
changeset 12065 | ec40d145a28b |
parent 11958 | 9a5520e3cc7a |
child 13542 | f4cb52eb2c4d |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWgnome-crash-report |
|
3 |
# |
|
4 |
# includes module(s): bug-buddy |
|
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: mattman |
|
11 |
# |
|
12 |
%include Solaris.inc |
|
13 |
||
14 |
%use bug_buddy= bug-buddy.spec |
|
15 |
||
16 |
Name: SUNWgnome-crash-report |
|
17 |
Summary: GNOME crash report generator |
|
18 |
Version: %{default_pkg_version} |
|
19 |
Source: %{name}-manpages-0.1.tar.gz |
|
20 |
SUNW_BaseDir: %{_basedir} |
|
11958
9a5520e3cc7a
* SUNWgnome-pdf-viewer.spec : Add Copyright to preamble
mattman
parents:
11370
diff
changeset
|
21 |
SUNW_Copyright: %{name}.copyright |
9397 | 22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
23 |
||
24 |
%include default-depend.inc |
|
25 |
Requires: SUNWgnome-vfs |
|
26 |
Requires: SUNWgnome-component |
|
27 |
Requires: SUNWgnome-libs |
|
28 |
Requires: SUNWgnome-base-libs |
|
29 |
Requires: SUNWgnome-panel |
|
30 |
Requires: SUNWgnome-config |
|
31 |
Requires: SUNWlxml |
|
32 |
Requires: SUNWpostrun |
|
33 |
Requires: SUNWlibgtop |
|
34 |
BuildRequires: SUNWgnome-vfs-devel |
|
35 |
BuildRequires: SUNWgnome-component-devel |
|
36 |
BuildRequires: SUNWgnome-libs-devel |
|
37 |
BuildRequires: SUNWgnome-base-libs-devel |
|
38 |
BuildRequires: SUNWgnome-panel-devel |
|
39 |
BuildRequires: SUNWgnome-config-devel |
|
40 |
BuildRequires: SUNWlxml |
|
41 |
BuildRequires: SUNWlibgtop-devel |
|
10300
afddfb60ea31
Add BuildRequires SUNWgcc for when module is bumped to 2.19.x and gcc used to build it.
dcarbery
parents:
10298
diff
changeset
|
42 |
#BuildRequires: SUNWgcc |
9397 | 43 |
|
44 |
%package root |
|
45 |
Summary: %{summary} - / filesystem |
|
46 |
SUNW_BaseDir: / |
|
47 |
%include default-depend.inc |
|
48 |
Requires: SUNWpostrun-root |
|
49 |
Requires: SUNWgnome-config |
|
50 |
||
51 |
%if %build_l10n |
|
52 |
%package l10n |
|
53 |
Summary: %{summary} - l10n files |
|
54 |
SUNW_BaseDir: %{_basedir} |
|
55 |
%include default-depend.inc |
|
56 |
Requires: %{name} |
|
57 |
%endif |
|
58 |
||
59 |
%prep |
|
60 |
rm -rf %name-%version |
|
61 |
mkdir %name-%version |
|
62 |
%bug_buddy.prep -d %name-%version |
|
63 |
cd %{_builddir}/%name-%version |
|
64 |
gzcat %SOURCE0 | tar xf - |
|
65 |
||
66 |
%build |
|
10298 | 67 |
# Uncomment these 4 lines when building 2.19.0. |
68 |
#export CC=/usr/sfw/bin/gcc |
|
69 |
#export CXX=/usr/sfw/bin/g++ |
|
70 |
#export CFLAGS="%gcc_optflags -I%{_includedir} -I/usr/sfw/include/c++/3.4.3" |
|
71 |
#export CXXFLAGS="%gcc_cxx_optflags -I%{_includedir} -I/usr/sfw/include/c++/3.4.3" |
|
10565 | 72 |
|
73 |
%if %cc_is_gcc |
|
74 |
%else |
|
75 |
export CXX="${CXX} -norunpath" |
|
76 |
%endif |
|
77 |
export CXXFLAGS="%cxx_optflags" |
|
78 |
||
10606 | 79 |
export CFLAGS="%optflags" |
9397 | 80 |
export RPM_OPT_FLAGS="$CFLAGS" |
81 |
export LDFLAGS="%_ldflags" |
|
82 |
%bug_buddy.build -d %name-%version |
|
83 |
||
84 |
%install |
|
85 |
rm -rf $RPM_BUILD_ROOT |
|
86 |
%bug_buddy.install -d %name-%version |
|
87 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
88 |
cd %{_builddir}/%name-%version/sun-manpages |
|
89 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
90 |
||
91 |
rm -r $RPM_BUILD_ROOT%{_datadir}/applications |
|
92 |
||
93 |
%if %build_l10n |
|
94 |
%else |
|
95 |
# REMOVE l10n FILES |
|
96 |
rm -r $RPM_BUILD_ROOT%{_datadir}/locale |
|
97 |
%endif |
|
98 |
||
99 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
100 |
||
101 |
%clean |
|
102 |
rm -rf $RPM_BUILD_ROOT |
|
103 |
||
104 |
%post |
|
105 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; |
|
106 |
echo '/usr/bin/scrollkeeper-update' |
|
107 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
|
108 |
||
109 |
%postun |
|
110 |
test -x $BASEDIR/lib/postrun || exit 0 |
|
111 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; |
|
112 |
echo '/usr/bin/scrollkeeper-update' |
|
113 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
|
114 |
||
115 |
%post root |
|
11370 | 116 |
%include gconf-install.script |
9397 | 117 |
|
118 |
%preun root |
|
119 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0 |
|
120 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; |
|
121 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; |
|
122 |
echo ' exit 0'; |
|
123 |
echo '}'; |
|
124 |
echo 'umask 0022'; |
|
125 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; |
|
126 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; |
|
127 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; |
|
128 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; |
|
129 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; |
|
130 |
echo 'schemas="$SDIR/bug-buddy.schemas"'; |
|
131 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas' |
|
132 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a |
|
133 |
||
134 |
%files |
|
135 |
%defattr (-, root, bin) |
|
136 |
%dir %attr (0755, root, bin) %{_bindir} |
|
137 |
%{_bindir}/* |
|
138 |
%dir %attr (0755, root, sys) %{_datadir} |
|
139 |
%attr (-, root, other) %{_datadir}/icons |
|
140 |
%{_datadir}/bug-buddy |
|
141 |
%dir %attr(0755, root, bin) %{_mandir} |
|
142 |
%dir %attr(0755, root, bin) %{_mandir}/* |
|
143 |
%{_mandir}/*/* |
|
10389 | 144 |
%dir %attr(0755, root, bin) %{_libdir} |
145 |
%dir %attr(0755, root, bin) %{_libdir}/* |
|
146 |
%{_libdir}/*/*/* |
|
9397 | 147 |
|
148 |
%files root |
|
9780 | 149 |
%defattr (-, root, sys) |
9397 | 150 |
%attr (0755, root, sys) %dir %{_sysconfdir} |
151 |
%{_sysconfdir}/gconf/schemas/bug-buddy.schemas |
|
152 |
||
153 |
%if %build_l10n |
|
154 |
%files l10n |
|
155 |
%defattr (-, root, bin) |
|
156 |
%dir %attr (0755, root, sys) %{_datadir} |
|
157 |
%attr (-, root, other) %{_datadir}/locale |
|
158 |
%endif |
|
159 |
||
160 |
%changelog |
|
11370 | 161 |
* Thu Jan 3 2008 - [email protected] |
162 |
- use gconf-install.script instead of an inline script |
|
10606 | 163 |
* Thu Oct 4 2007 - [email protected] |
164 |
- delete unneeded env vars |
|
10565 | 165 |
* Fri Sep 28 2007 - [email protected] |
166 |
- Add -norunpath to CXX path so that Sun internal runpaths are not embedded in |
|
167 |
libgnomebreakpad.so. |
|
10389 | 168 |
* Tue Aug 28 2007 - [email protected] |
169 |
- update files for 2.19.91 tarball |
|
10298 | 170 |
* Fri Aug 10 2007 - [email protected] |
171 |
- Unbump to 2.18.1 so that it builds. |
|
10294 | 172 |
* Thu Aug 09 2007 - [email protected] |
173 |
- Change to use gcc. |
|
9780 | 174 |
* Tue Apr 24 2007 - [email protected] |
175 |
- s/0755/-/ in defattr so that files are not made all executable |
|
9397 | 176 |
* Fri Sep 08 2006 - [email protected] |
177 |
- New Manpage tarball |
|
178 |
* Tue Sep 05 2006 - [email protected] |
|
179 |
- Update packaging for new tarball. |
|
180 |
* Wed Aug 16 2006 - [email protected] |
|
181 |
- Change 'icons' line in %files to pick up files. |
|
182 |
* Sat Aug 12 2006 - [email protected] |
|
183 |
- change datadir/icons permissions back to root:other since it's a stable |
|
184 |
interface and wasn't supposed to be changed |
|
185 |
* Wed Jul 26 2006 - [email protected] |
|
186 |
- Update packaging for new tarball (icons moved). |
|
187 |
* Fri Jul 14 2006 - [email protected] |
|
188 |
- update %post/%postun/etc scripts to support diskless client setup, |
|
189 |
part of 6448317 |
|
190 |
* Thu Jun 29 2006 - [email protected] |
|
191 |
- update postrun scripts |
|
192 |
* Sun Jun 11 2006 - [email protected] |
|
193 |
- change group from other to bin/sys |
|
194 |
* Thu May 25 2006 - [email protected] |
|
195 |
- use post/preun scripts to install schemas into the merged gconf files |
|
196 |
* Wed May 10 2006 - [email protected] |
|
197 |
- merge -share pkg(s) into the base pkg(s) |
|
198 |
* Sun Feb 19 2006 - [email protected] |
|
199 |
- Update Build/Requires after running check-deps.pl script. |
|
200 |
* Tue Nov 29 2005 - [email protected] |
|
201 |
- remove javahelp stuff |
|
202 |
* Fri Oct 28 2005 - [email protected] |
|
203 |
- Complete dependency listing. |
|
204 |
* Wed Oct 26 2005 - [email protected] |
|
205 |
- Resurrect bug-buddy, and get it to work with pstack |