author | jerrytan |
Mon, 11 Aug 2008 07:35:57 +0000 | |
branch | gnome-2-22 |
changeset 12497 | f4743e0d8120 |
parent 12022 | 7f50b311ab34 |
child 15556 | 79756053d7da |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWgnome-ui-designer |
|
3 |
# |
|
4 |
# includes module(s): glade |
|
5 |
# |
|
6 |
# Copyright (c) 2004 Sun Microsystems, Inc. |
|
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: hawklu |
|
11 |
# |
|
12 |
%include Solaris.inc |
|
13 |
||
14 |
%use glade = glade.spec |
|
15 |
||
16 |
Name: SUNWgnome-ui-designer |
|
17 |
Summary: GNOME UI designer |
|
18 |
Version: %{default_pkg_version} |
|
19 |
Source: %{name}-manpages-0.1.tar.gz |
|
20 |
SUNW_BaseDir: %{_basedir} |
|
12022 | 21 |
SUNW_Copyright:%{name}.copyright |
9397 | 22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
23 |
||
24 |
%include default-depend.inc |
|
25 |
Requires: SUNWgnome-libs |
|
26 |
Requires: SUNWgnome-base-libs |
|
27 |
Requires: SUNWgnome-component |
|
28 |
Requires: SUNWlibms |
|
29 |
Requires: SUNWlibpopt |
|
30 |
Requires: SUNWlxml |
|
31 |
Requires: SUNWpostrun |
|
32 |
BuildRequires: SUNWgnome-component-devel |
|
33 |
BuildRequires: SUNWlibpopt-devel |
|
34 |
BuildRequires: SUNWgnome-libs-devel |
|
35 |
BuildRequires: SUNWgnome-base-libs-devel |
|
36 |
||
37 |
%if %build_l10n |
|
38 |
%package l10n |
|
39 |
Summary: %{summary} - l10n files |
|
40 |
SUNW_BaseDir: %{_basedir} |
|
41 |
%include default-depend.inc |
|
42 |
Requires: %{name} |
|
43 |
%endif |
|
44 |
||
45 |
%package devel |
|
46 |
Summary: %{summary} - development files |
|
47 |
SUNW_BaseDir: %{_basedir} |
|
48 |
%include default-depend.inc |
|
49 |
Requires: %{name} |
|
50 |
||
51 |
%prep |
|
52 |
rm -rf %name-%version |
|
53 |
mkdir %name-%version |
|
54 |
%glade.prep -d %name-%version |
|
55 |
cd %{_builddir}/%name-%version |
|
56 |
gzcat %SOURCE0 | tar xf - |
|
57 |
||
58 |
%build |
|
59 |
export PKG_CONFIG_PATH=%{_pkg_config_path} |
|
60 |
export CFLAGS="%optflags -I%{_includedir}" |
|
61 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
62 |
export LDFLAGS="%_ldflags" |
|
63 |
||
64 |
%glade.build -d %name-%version |
|
65 |
||
66 |
%install |
|
67 |
%glade.install -d %name-%version |
|
68 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
69 |
cd %{_builddir}/%name-%version/sun-manpages |
|
70 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
71 |
||
72 |
%if %build_l10n |
|
73 |
%else |
|
74 |
# REMOVE l10n FILES |
|
75 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
76 |
# Put these back in when localized help is delivered from l10n |
|
77 |
# rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/glade-2/[a-z] |
|
78 |
# rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/gaim/glade-2-[a-z]*.omf |
|
79 |
%endif |
|
80 |
||
81 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):unsupported" $RPM_BUILD_ROOT} |
|
82 |
||
83 |
%clean |
|
84 |
rm -rf $RPM_BUILD_ROOT |
|
85 |
||
86 |
%post |
|
87 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0'; |
|
88 |
echo '/usr/bin/update-desktop-database' |
|
89 |
) | $BASEDIR/lib/postrun -b -u -c JDS_wait |
|
90 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; |
|
91 |
echo '/usr/bin/scrollkeeper-update' |
|
92 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
|
93 |
||
94 |
%postun |
|
95 |
test -x $BASEDIR/lib/postrun || exit 0 |
|
96 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0'; |
|
97 |
echo '/usr/bin/update-desktop-database' |
|
98 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
|
99 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; |
|
100 |
echo '/usr/bin/scrollkeeper-update' |
|
101 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
|
102 |
||
103 |
%files |
|
104 |
%defattr (-, root, bin) |
|
105 |
%dir %attr (0755, root, bin) %{_bindir} |
|
106 |
%{_bindir}/* |
|
107 |
%dir %attr (0755, root, bin) %{_libdir} |
|
108 |
%{_libdir}/*.so* |
|
109 |
%{_libdir}/glade* |
|
110 |
%dir %attr (0755, root, sys) %{_datadir} |
|
111 |
%dir %attr (0755, root, other) %{_datadir}/applications |
|
112 |
%{_datadir}/applications/* |
|
113 |
%{_datadir}/glade* |
|
114 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
|
115 |
%{_datadir}/gnome/* |
|
116 |
%{_datadir}/omf |
|
117 |
%dir %attr (0755, root, other) %{_datadir}/icons |
|
118 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor |
|
119 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/* |
|
120 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/*/apps |
|
121 |
%{_datadir}/icons/hicolor/*/apps/* |
|
122 |
%dir %attr(0755, root, bin) %{_mandir} |
|
123 |
%dir %attr(0755, root, bin) %{_mandir}/* |
|
124 |
%{_mandir}/*/* |
|
125 |
||
126 |
%if %build_l10n |
|
127 |
%files l10n |
|
128 |
%defattr (-, root, bin) |
|
129 |
%dir %attr (0755, root, sys) %{_datadir} |
|
130 |
%attr (-, root, other) %{_datadir}/locale |
|
131 |
%endif |
|
132 |
||
133 |
%files devel |
|
134 |
%defattr (-, root, bin) |
|
135 |
%dir %attr (0755, root, bin) %{_includedir} |
|
136 |
%{_includedir}/* |
|
137 |
%dir %attr (0755, root, bin) %{_libdir} |
|
138 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
139 |
%{_libdir}/pkgconfig/* |
|
9609
0f09ff7b61a7
* SUNWgnome-desklets.spec: Move %{_datadir}/gtk-doc to -devel package.
halton
parents:
9544
diff
changeset
|
140 |
%dir %attr (0755, root, sys) %{_datadir} |
0f09ff7b61a7
* SUNWgnome-desklets.spec: Move %{_datadir}/gtk-doc to -devel package.
halton
parents:
9544
diff
changeset
|
141 |
%{_datadir}/gtk-doc |
9397 | 142 |
|
143 |
%changelog |
|
11542
8e476f230291
* SUNWgmime.spec: remove %if without_gtk_doc validation
pale
parents:
10616
diff
changeset
|
144 |
* Tue Jan 29 2008 - [email protected] |
8e476f230291
* SUNWgmime.spec: remove %if without_gtk_doc validation
pale
parents:
10616
diff
changeset
|
145 |
- Remove without_gtk_doc validation. gtk-doc |
8e476f230291
* SUNWgmime.spec: remove %if without_gtk_doc validation
pale
parents:
10616
diff
changeset
|
146 |
should always be packaged. |
10616 | 147 |
* Fri Oct 5 2007 - [email protected] |
148 |
- delete unneeded env vars |
|
9829 | 149 |
* Thu May 03 2007 - [email protected] |
150 |
- Add %if code so that %{_datadir}/gtk-doc is only packaged when requested. |
|
9609
0f09ff7b61a7
* SUNWgnome-desklets.spec: Move %{_datadir}/gtk-doc to -devel package.
halton
parents:
9544
diff
changeset
|
151 |
* Thu Mar 22 2007 - [email protected] |
0f09ff7b61a7
* SUNWgnome-desklets.spec: Move %{_datadir}/gtk-doc to -devel package.
halton
parents:
9544
diff
changeset
|
152 |
- Move %{_datadir}/gtk-doc to -devel package. |
9544 | 153 |
* Tue Mar 13 2007 - [email protected] |
154 |
- Add %{_datadir}/gtk-doc to %files for new tarball. |
|
9397 | 155 |
* Wed Feb 28 2007 - [email protected] |
156 |
- Add package -devel and change files section since upgrade to glade3. |
|
157 |
* Mon Sep 04 2006 - [email protected] |
|
158 |
- New Manpage tarball |
|
159 |
* Fri Jul 14 2006 - [email protected] |
|
160 |
- update %post/%postun/etc scripts to support diskless client setup, |
|
161 |
part of 6448317 |
|
162 |
* Thu Jun 29 2006 - [email protected] |
|
163 |
- update postrun scripts |
|
164 |
* Sun Jun 11 2006 - [email protected] |
|
165 |
- change group from other to bin/sys |
|
166 |
* Wed May 10 2006 - [email protected] |
|
167 |
- merge -share pkg(s) into the base pkg(s) |
|
168 |
* Mon Feb 20 2006 - [email protected] |
|
169 |
- Update Build/Requires after running check-deps.pl script. |
|
170 |
* Sat Dec 3 2005 - [email protected] |
|
171 |
- add %post script that runs update-desktop-database |
|
172 |
* Tue Nov 29 2005 - [email protected] |
|
173 |
- remove javahelp stuff |
|
174 |
* Mon Dec 13 2004 - [email protected] |
|
175 |
- Move to /usr/bin to implement ARC decision. |
|
176 |
* Fri Nov 12 2004 - [email protected] |
|
177 |
- move to /usr/demo/jds |
|
178 |
* Wed Oct 06 2004 - [email protected] |
|
179 |
- Add localized help files to l10n section |
|
180 |
* Sat Oct 02 2004 - [email protected] |
|
181 |
- added %pkgbuild_postprocess |
|
182 |
* Mon Aug 23 2004 - [email protected] |
|
183 |
- s/SUNWpl5u/SUNWperl584usr/ |
|
184 |
* Wed Aug 18 2004 - [email protected] |
|
185 |
- Change manpage perms for Solaris integration. |
|
186 |
* Sat Jun 26 2004 [email protected] |
|
187 |
- Changed install location to /usr/... |
|
188 |
* Wed Jun 2 2004 - [email protected] |
|
189 |
- Added %{_datadir}/locale to install l10n messages |
|
190 |
* Fri Mar 26 2004 - [email protected] |
|
191 |
- Created, |