9397
|
1 |
#
|
|
2 |
# spec file for package SUNWgnome-desklets-extra
|
|
3 |
#
|
|
4 |
#
|
|
5 |
# Copyright (c) 2007 Sun Microsystems, Inc.
|
|
6 |
# This file and all modifications and additions to the pristine
|
|
7 |
# package are under the same license as the package itself.
|
|
8 |
#
|
|
9 |
# Owner: bewitche
|
|
10 |
#
|
|
11 |
|
|
12 |
|
|
13 |
%include Solaris.inc
|
|
14 |
%use gdesklets = gdesklets-extra.spec
|
|
15 |
|
|
16 |
Name: SUNWgnome-desklets-extra
|
|
17 |
Summary: Supplied Gnome desktop widgets
|
|
18 |
Version: %{default_pkg_version}
|
|
19 |
SUNW_BaseDir: %{_basedir}
|
11926
|
20 |
SUNW_Copyright: %{name}.copyright
|
9397
|
21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
22 |
|
|
23 |
Requires: SUNWgnome-desklets
|
|
24 |
Requires: SUNWgnome-desktop-prefs
|
|
25 |
Requires: SUNWgnome-libs
|
|
26 |
Requires: SUNWpostrun
|
|
27 |
BuildRequires: SUNWgnome-desktop-prefs-devel
|
|
28 |
BuildRequires: SUNWgnome-libs-devel
|
|
29 |
|
|
30 |
%description
|
|
31 |
|
|
32 |
%prep
|
|
33 |
rm -rf %name-%version
|
|
34 |
mkdir %name-%version
|
|
35 |
|
|
36 |
%build
|
|
37 |
# we just get the bits tarball from developer
|
|
38 |
%gdesklets.build -d %name-%version
|
|
39 |
|
|
40 |
%install
|
|
41 |
rm -rf $RPM_BUILD_ROOT
|
|
42 |
%gdesklets.install -d %name-%version
|
|
43 |
|
|
44 |
%clean
|
|
45 |
rm -rf $RPM_BUILD_ROOT
|
|
46 |
|
|
47 |
%post
|
|
48 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
49 |
echo '/usr/bin/update-desktop-database'
|
|
50 |
) | $BASEDIR/lib/postrun -b -u -c JDS_wait
|
|
51 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
|
|
52 |
echo '/usr/bin/scrollkeeper-update'
|
|
53 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
54 |
|
|
55 |
%postun
|
|
56 |
test -x $BASEDIR/lib/postrun || exit 0
|
|
57 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
58 |
echo '/usr/bin/update-desktop-database'
|
|
59 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
60 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
|
|
61 |
echo '/usr/bin/scrollkeeper-update'
|
|
62 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
63 |
|
|
64 |
%files
|
|
65 |
%defattr (-, root, bin)
|
|
66 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
67 |
%dir %attr (0755, root, bin) %{_datadir}/gdesklets
|
|
68 |
%{_datadir}/gdesklets/*
|
|
69 |
|
|
70 |
%changelog
|
|
71 |
* Thu Feb 8 2007 - [email protected]
|
|
72 |
- Update dependency list for files used in %post and during build.
|
|
73 |
|
|
74 |
* Mon Feb 5 2007 - [email protected]
|
|
75 |
- Add %prep section to create dir in BUILD dir.
|
|
76 |
|
|
77 |
* Thu Jan 29 2007 - <[email protected]>
|
|
78 |
- initial creation
|
|
79 |
|
|
80 |
|