SUNWgnome-desklets.spec
author chrisk
Mon, 31 Aug 2009 16:23:04 +0000
changeset 16434 f21f22550fe9
parent 15964 d6d0c5b04507
child 17153 d46c96c887bf
permissions -rw-r--r--
2009-08-31 Christian Kelly <[email protected]> * base-specs/*.spec, *.spec: Change owner field to be parsable with spectool.
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
#
15556
79756053d7da 2009-04-03 Laszlo (Laca) Peter <[email protected]>
laca
parents: 13619
diff changeset
     6
# Copyright 2009 Sun Microsystems, Inc.
9397
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
#
16434
f21f22550fe9 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 15964
diff changeset
    10
%define owner jerrytan
9397
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
15650
dbcf7e3715dd 2009-04-18 Dave Lin <[email protected]>
davelam
parents: 15556
diff changeset
    23
Requires: SUNWgtk2
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
Requires: SUNWPython
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
Requires: SUNWgnome-libs
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
Requires: SUNWlibrsvg
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
Requires: SUNWgnome-python-desktop
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
Requires: SUNWgnome-python-libs
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
Requires: SUNWgnome-desktop-prefs
15556
79756053d7da 2009-04-03 Laszlo (Laca) Peter <[email protected]>
laca
parents: 13619
diff changeset
    30
Requires: SUNWdesktop-cache
15650
dbcf7e3715dd 2009-04-18 Dave Lin <[email protected]>
davelam
parents: 15556
diff changeset
    31
BuildRequires: SUNWgtk2-devel
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
BuildRequires: SUNWPython-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
BuildRequires: SUNWgnome-desktop-prefs-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
BuildRequires: SUNWgnome-libs-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
BuildRequires: SUNWgnome-python-desktop-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
BuildRequires: SUNWgnome-python-libs-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
BuildRequires: SUNWlibrsvg-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
%if %build_l10n
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
%package l10n
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
Summary:                 %{summary} - l10n files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
SUNW_BaseDir:            %{_basedir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
Requires:                %{name}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
rm -rf %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
mkdir %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
%gdesklets.prep -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
export CFLAGS="%optflags"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
export RPM_OPT_FLAGS="$CFLAGS"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
export LDFLAGS="%_ldflags"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
%gdesklets.build -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
%gdesklets.install -d %name-%version 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
12586
f41271040383 2008-06-04 Damien Carbery <[email protected]>
dcarbery
parents: 11926
diff changeset
    61
# Change %{_bindir}/gdesklets symlink to a relative one.
f41271040383 2008-06-04 Damien Carbery <[email protected]>
dcarbery
parents: 11926
diff changeset
    62
cd $RPM_BUILD_ROOT%{_bindir}
f41271040383 2008-06-04 Damien Carbery <[email protected]>
dcarbery
parents: 11926
diff changeset
    63
rm gdesklets
f41271040383 2008-06-04 Damien Carbery <[email protected]>
dcarbery
parents: 11926
diff changeset
    64
ln -s  ../lib/gdesklets/gdesklets
f41271040383 2008-06-04 Damien Carbery <[email protected]>
dcarbery
parents: 11926
diff changeset
    65
10662
4f133654b416 2007-10-15 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10644
diff changeset
    66
# fixes %_datadir/gdesklets/Displays/Calendar/gfx/months/README
4f133654b416 2007-10-15 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10644
diff changeset
    67
chmod -R a+rX $RPM_BUILD_ROOT
4f133654b416 2007-10-15 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10644
diff changeset
    68
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
rm -r $RPM_BUILD_ROOT%{_datadir}/mime
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
rm $RPM_BUILD_ROOT%{_datadir}/applications/*.cache
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
%if %build_l10n
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
# REMOVE l10n FILES
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
%post
15556
79756053d7da 2009-04-03 Laszlo (Laca) Peter <[email protected]>
laca
parents: 13619
diff changeset
    82
%restart_fmri desktop-mime-cache icon-cache
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
%postun
15556
79756053d7da 2009-04-03 Laszlo (Laca) Peter <[email protected]>
laca
parents: 13619
diff changeset
    85
%restart_fmri desktop-mime-cache
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
%files
15684
f2b94062562e 2009-04-27 Chris Wang <[email protected]>
bewitche
parents: 15650
diff changeset
    88
%doc -d gDesklets-%{gdesklets.version} AUTHORS
f2b94062562e 2009-04-27 Chris Wang <[email protected]>
bewitche
parents: 15650
diff changeset
    89
%doc(bzip2) -d gDesklets-%{gdesklets.version} COPYING README NEWS ChangeLog
13619
d1eccd3364d8 2008-09-17 Chris Wang <[email protected]>
bewitche
parents: 12586
diff changeset
    90
%dir %attr (0755, root, other) %{_datadir}/doc
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
%defattr (-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
%dir %attr (0755, root, bin) %{_bindir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
%{_bindir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
%dir %attr (0755, root, bin) %{_libdir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
%{_libdir}/gdesklets
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
%dir %attr (0755, root, sys) %{_datadir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
%dir %attr (0755, root, other) %{_datadir}/applications
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
%{_datadir}/applications/*.desktop
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
%dir %attr (0755, root, other) %{_datadir}/pixmaps
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   100
%{_datadir}/pixmaps/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   101
%dir %attr (0755, root, bin) %{_mandir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   102
%{_mandir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
%dir %attr (0755, root, other) %{_datadir}/icons
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
%dir %attr (0755, root, other) %{_datadir}/icons/gnome
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
%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
   106
%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
   107
%{_datadir}/icons/gnome/48x48/mimetypes/*
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   108
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   109
%if %build_l10n
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   110
%files l10n
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   111
%defattr (-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   112
%dir %attr (0755, root, sys) %{_datadir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   113
%attr (-, root, other) %{_datadir}/locale
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   114
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   115
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   116
%changelog
15964
d6d0c5b04507 2009-06-26 Chris Wang <[email protected]>
bewitche
parents: 15684
diff changeset
   117
* Fri Jun 26 2009 - [email protected]
d6d0c5b04507 2009-06-26 Chris Wang <[email protected]>
bewitche
parents: 15684
diff changeset
   118
- Change owner to jerrytan
15556
79756053d7da 2009-04-03 Laszlo (Laca) Peter <[email protected]>
laca
parents: 13619
diff changeset
   119
* Fri Apr  3 2009 - [email protected]
79756053d7da 2009-04-03 Laszlo (Laca) Peter <[email protected]>
laca
parents: 13619
diff changeset
   120
- use desktop-cache instead of postrun
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
15650
dbcf7e3715dd 2009-04-18 Dave Lin <[email protected]>
davelam
parents: 15556
diff changeset
   142