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