author | an230044 |
Mon, 27 Apr 2009 10:20:06 +0000 | |
branch | opensolaris-2008-11 |
changeset 14400 | 9bcbbac16a07 |
parent 13619 | d1eccd3364d8 |
child 15556 | 79756053d7da |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# # spec file for package SUNWgnome-desklets |
|
3 |
# |
|
4 |
# includes module(s): gdesklets |
|
5 |
# |
|
6 |
# Copyright (c) 2007 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: bewitche |
|
11 |
# |
|
12 |
%include Solaris.inc |
|
13 |
||
14 |
%use gdesklets = gdesklets.spec |
|
15 |
||
16 |
Name: SUNWgnome-desklets |
|
17 |
Summary: GNOME desktop widgets engine |
|
18 |
Version: %{default_pkg_version} |
|
19 |
SUNW_BaseDir: %{_basedir} |
|
11926 | 20 |
SUNW_Copyright: %{name}.copyright |
9397 | 21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
22 |
%include default-depend.inc |
|
23 |
Requires: SUNWPython |
|
24 |
Requires: SUNWgnome-libs |
|
25 |
Requires: SUNWlibrsvg |
|
26 |
Requires: SUNWgnome-python-desktop |
|
27 |
Requires: SUNWgnome-python-libs |
|
28 |
Requires: SUNWgnome-desktop-prefs |
|
29 |
Requires: SUNWpostrun |
|
30 |
BuildRequires: SUNWPython-devel |
|
31 |
BuildRequires: SUNWgnome-desktop-prefs-devel |
|
32 |
BuildRequires: SUNWgnome-libs-devel |
|
33 |
BuildRequires: SUNWgnome-python-desktop-devel |
|
34 |
BuildRequires: SUNWgnome-python-libs-devel |
|
35 |
BuildRequires: SUNWlibrsvg-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 |
%prep |
|
46 |
rm -rf %name-%version |
|
47 |
mkdir %name-%version |
|
48 |
%gdesklets.prep -d %name-%version |
|
49 |
||
50 |
%build |
|
51 |
export CFLAGS="%optflags" |
|
52 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
53 |
export LDFLAGS="%_ldflags" |
|
54 |
%gdesklets.build -d %name-%version |
|
55 |
||
56 |
%install |
|
57 |
%gdesklets.install -d %name-%version |
|
58 |
||
12586 | 59 |
# Change %{_bindir}/gdesklets symlink to a relative one. |
60 |
cd $RPM_BUILD_ROOT%{_bindir} |
|
61 |
rm gdesklets |
|
62 |
ln -s ../lib/gdesklets/gdesklets |
|
63 |
||
10662 | 64 |
# fixes %_datadir/gdesklets/Displays/Calendar/gfx/months/README |
65 |
chmod -R a+rX $RPM_BUILD_ROOT |
|
66 |
||
9397 | 67 |
rm -r $RPM_BUILD_ROOT%{_datadir}/mime |
68 |
rm $RPM_BUILD_ROOT%{_datadir}/applications/*.cache |
|
69 |
||
70 |
%if %build_l10n |
|
71 |
%else |
|
72 |
# REMOVE l10n FILES |
|
73 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
74 |
%endif |
|
75 |
||
76 |
||
77 |
%clean |
|
78 |
rm -rf $RPM_BUILD_ROOT |
|
79 |
||
80 |
%post |
|
10644 | 81 |
%include desktop-database-install.script |
10639 | 82 |
%include scrollkeeper-update.script |
83 |
%include icon-cache.script |
|
9397 | 84 |
|
85 |
%postun |
|
86 |
test -x $BASEDIR/lib/postrun || exit 0 |
|
10644 | 87 |
%include desktop-database-uninstall.script |
10639 | 88 |
%include scrollkeeper-update.script |
9397 | 89 |
|
90 |
%files |
|
13619 | 91 |
%doc -d gdesklets-%{gdesklets.version} AUTHORS |
92 |
%doc(bzip2) -d gdesklets-%{gdesklets.version} COPYING README NEWS ChangeLog |
|
93 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
9397 | 94 |
%defattr (-, root, bin) |
95 |
%dir %attr (0755, root, bin) %{_bindir} |
|
96 |
%{_bindir}/* |
|
97 |
%dir %attr (0755, root, bin) %{_libdir} |
|
98 |
%{_libdir}/gdesklets |
|
99 |
%dir %attr (0755, root, sys) %{_datadir} |
|
100 |
%dir %attr (0755, root, other) %{_datadir}/applications |
|
101 |
%{_datadir}/applications/*.desktop |
|
102 |
%dir %attr (0755, root, other) %{_datadir}/pixmaps |
|
103 |
%{_datadir}/pixmaps/* |
|
104 |
%dir %attr (0755, root, bin) %{_mandir} |
|
105 |
%{_mandir}/* |
|
106 |
%dir %attr (0755, root, other) %{_datadir}/icons |
|
107 |
%dir %attr (0755, root, other) %{_datadir}/icons/gnome |
|
108 |
%dir %attr (0755, root, other) %{_datadir}/icons/gnome/48x48 |
|
9609
0f09ff7b61a7
* SUNWgnome-desklets.spec: Move %{_datadir}/gtk-doc to -devel package.
halton
parents:
9397
diff
changeset
|
109 |
%dir %attr (0755, root, other) %{_datadir}/icons/gnome/48x48/mimetypes |
0f09ff7b61a7
* SUNWgnome-desklets.spec: Move %{_datadir}/gtk-doc to -devel package.
halton
parents:
9397
diff
changeset
|
110 |
%{_datadir}/icons/gnome/48x48/mimetypes/* |
9397 | 111 |
|
112 |
%if %build_l10n |
|
113 |
%files l10n |
|
114 |
%defattr (-, root, bin) |
|
115 |
%dir %attr (0755, root, sys) %{_datadir} |
|
116 |
%attr (-, root, other) %{_datadir}/locale |
|
117 |
%endif |
|
118 |
||
119 |
||
120 |
%changelog |
|
13619 | 121 |
* Wed Sep 18 2008 - [email protected] |
122 |
- Update copyright |
|
12586 | 123 |
* Wed Jun 04 2008 - [email protected] |
124 |
- Make %{_bindir}/gdesklets a relative symlink as absolute symlinks are not |
|
125 |
permitted by Solaris WOS. |
|
10662 | 126 |
* Mon Oct 15 2007 - [email protected] |
127 |
- make all files in the package readable |
|
10639 | 128 |
* Thu Oct 11 2007 - [email protected] |
10644 | 129 |
- Use desktop-database-install.script for %post |
130 |
and desktop-database-uninstall.script for %postun |
|
131 |
* Thu Oct 11 2007 - [email protected] |
|
10639 | 132 |
- Change the inline postinstall script to an include |
9609
0f09ff7b61a7
* SUNWgnome-desklets.spec: Move %{_datadir}/gtk-doc to -devel package.
halton
parents:
9397
diff
changeset
|
133 |
* Thu Mar 22 2007 - [email protected] |
0f09ff7b61a7
* SUNWgnome-desklets.spec: Move %{_datadir}/gtk-doc to -devel package.
halton
parents:
9397
diff
changeset
|
134 |
- Change %{_datadir}/icons/gnome/48x48/mimetypes attr to root:other. |
9397 | 135 |
* Thu Feb 8 2007 - [email protected] |
136 |
- Update dependency list for files used in %post and during build. |
|
137 |
* Mon Feb 5 2007 - [email protected] |
|
138 |
- Set %dir %attr for icons dirs. |
|
139 |
- Remove 'rm -rf $RPM_BUILD_ROOT' from %install as it is not needed. |
|
140 |
* Thu Jan 29 2007 - <[email protected]> |
|
141 |
- initial creation |