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