SUNWgnome-power-manager.spec
author qc161282
Thu, 14 Feb 2008 03:52:08 +0000
changeset 11631 a3f634fed259
child 11632 eb80f874b3c3
permissions -rw-r--r--
2008-02-14 Jeff Cai<[email protected]> * SUNWgnome-power-manager.spec: * base-specs/gnome-power-manager.spec: * patches/gnome-power-manager-01-build.diff: * patches/gnome-power-manager-06-icon_plicy_and_cpufreq_show.diff: * patches/gnome-power-manager-07-disable-sleep-configration.diff: * patches/gnome-power-manager-08-brightness-applet-install.diff: * patches/gnome-power-manager-09-scripts.diff: * patches/gnome-power-manager-10-diable-suspend-button-configration .diff: * patches/gnome-power-manager-11-authorization-checking.diff: * patches/gnome-power-manager-12-crash.diff: * patches/gnome-power-manager-13-beep.diff: * patches/gnome-power-manager-14-lid-shutdown.diff: * patches/gnome-power-manager-15-disable-lid-beeping.diff: * patches/gnome-power-manager-16-brightness-reduction.diff: * patches/gnome-power-manager-17-interactive-cmd.diff: Move GNOME Power Manager to gnome spec repository from sourceforge.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11631
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
     1
#
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
     2
# spec file for package SFEgnome-power-manager
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
     3
#
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
     4
# includes module(s): gnome-power-manager
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
     5
#
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
     6
%include Solaris.inc
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
     7
%use gpm = gnome-power-manager.spec
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
     8
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
     9
Name:                    SFEgnome-power-manager
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    10
Summary:                 GNOME Power Manager
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    11
Version:                 %{default_pkg_version}
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    12
SUNW_BaseDir:            %{_basedir}
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    13
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    14
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    15
%include default-depend.inc
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    16
Requires:                SUNWgnome-base-libs
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    17
BuildRequires:           SUNWgnome-base-libs-devel
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    18
Requires:                SUNWgnome-libs
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    19
BuildRequires:           SUNWgnome-libs-devel
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    20
Requires:                SUNWdbus
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    21
BuildRequires:           SUNWdbus-devel
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    22
Requires:                SUNWdbus-bindings
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    23
BuildRequires:           SUNWdbus-bindings-devel
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    24
Requires:                SUNWhal
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    25
Requires:                SUNWgnome-panel
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    26
BuildRequires:           SUNWgnome-panel-devel
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    27
Requires:                SUNWpostrun
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    28
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    29
%package root
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    30
Summary:                 %{summary} - / filesystem
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    31
SUNW_BaseDir:            /
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    32
%include default-depend.inc
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    33
Requires: SUNWpostrun
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    34
Requires: SUNWgnome-config
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    35
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    36
%if %build_l10n
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    37
%package l10n
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    38
Summary:                 %{summary} - l10n files
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    39
SUNW_BaseDir:            %{_basedir}
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    40
%include default-depend.inc
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    41
Requires:                %{name}
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    42
%endif
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    43
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    44
%prep
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    45
rm -rf %name-%version
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    46
mkdir %name-%version
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    47
%gpm.prep -d %name-%version
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    48
cd %{_builddir}/%name-%version
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    49
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    50
%build
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    51
%gpm.build -d %name-%version
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    52
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    53
%install
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    54
rm -rf $RPM_BUILD_ROOT
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    55
%gpm.install -d %name-%version
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    56
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    57
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    58
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    59
# Delete scrollkeeper files, man & doc dir
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    60
rm -rf $RPM_BUILD_ROOT/var
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    61
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    62
rm -rf $RPM_BUILD_ROOT%{_mandir}/
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    63
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    64
# Remove gnome-inhibit
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    65
rm -rf  $RPM_BUILD_ROOT%{_bindir}/gnome-inhibit-applet
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    66
rm -rf  $RPM_BUILD_ROOT%{_datadir}/gnome-power-manager/gpm-inhibit-test.glade
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    67
rm -rf  $RPM_BUILD_ROOT%{_datadir}/gnome-2.0/ui/GNOME_InhibitApplet.xml
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    68
rm -rf  $RPM_BUILD_ROOT%{_libdir}/bonobo/servers/GNOME_InhibitApplet.server
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    69
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    70
# Move scripts from /usr/bin to /usr/lib
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    71
mv $RPM_BUILD_ROOT%{_bindir}/gnome-power-*.sh $RPM_BUILD_ROOT%{_libdir}/
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    72
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    73
%if %build_l10n
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    74
%else
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    75
# REMOVE l10n FILES
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    76
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    77
%endif
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    78
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    79
%clean
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    80
rm -rf $RPM_BUILD_ROOT
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    81
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    82
%post
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    83
( echo 'test -x /usr/bin/gtk-update-icon-cache || exit 0';
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    84
  echo 'rm -f %{_datadir}/icons/*/icon-theme.cache';
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    85
  echo 'ls -d %{_datadir}/icons/* | xargs -l1 /usr/bin/gtk-update-icon-cache'
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    86
) | $BASEDIR/lib/postrun -b -u -t 5 -c JDS
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    87
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    88
  echo '/usr/bin/update-desktop-database'
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    89
) | $BASEDIR/lib/postrun -b -u -c JDS_wait
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    90
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    91
  echo '/usr/bin/scrollkeeper-update'
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    92
) | $BASEDIR/lib/postrun -b -u -c JDS
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    93
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    94
%postun
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    95
test -x $BASEDIR/lib/postrun || exit 0
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    96
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    97
  echo '/usr/bin/update-desktop-database'
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    98
) | $BASEDIR/lib/postrun -b -u -c JDS
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
    99
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   100
  echo '/usr/bin/scrollkeeper-update'
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   101
) | $BASEDIR/lib/postrun -b -u -c JDS
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   102
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   103
%post root
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   104
( echo 'test -x /usr/bin/gconftool-2 || {';
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   105
  echo '  echo "ERROR: gconftool-2 not found"';
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   106
  echo '  echo "ERROR: gconftool-2 not found"';
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   107
  echo '  exit 0';
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   108
  echo '}';
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   109
  echo 'umask 0022';
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   110
  echo "GCONF_CONFIG_SOURCE=xml:merged:%{_sysconfdir}/gconf/gconf.xml.defaults";
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   111
  echo 'export GCONF_CONFIG_SOURCE';
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   112
  echo "SDIR=%{_sysconfdir}/gconf/schemas";
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   113
  echo '/usr/bin/gconftool-2 --makefile-install-rule $SDIR/gnome-power-manager.schemas'
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   114
) | $PKG_INSTALL_ROOT/usr/lib/postrun
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   115
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   116
%preun root
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   117
( echo 'test -x /usr/bin/gconftool-2 || {';
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   118
  echo '  echo "ERROR: gconftool-2 not found"';
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   119
  echo '  exit 0';
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   120
  echo '}';
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   121
  echo 'umask 0022';
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   122
  echo "GCONF_CONFIG_SOURCE=xml:merged:%{_sysconfdir}/gconf/gconf.xml.defaults";
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   123
  echo 'export GCONF_CONFIG_SOURCE';
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   124
  echo "SDIR=%{_sysconfdir}/gconf/schemas";
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   125
  echo '/usr/bin/gconftool-2 --makefile-uninstall-rule $SDIR/gnome-power-manager.schemas'
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   126
) | $PKG_INSTALL_ROOT/usr/lib/postrun
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   127
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   128
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   129
%files
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   130
%defattr (-, root, bin)
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   131
%dir %attr (0755, root, bin) %{_bindir}
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   132
%{_bindir}/*
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   133
%dir %attr (0755, root, bin) %{_libdir}
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   134
%{_libdir}/gnome-power-*.sh
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   135
%{_libdir}/gnome-*-applet
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   136
%dir %attr (0755, root, bin) %{_libdir}/bonobo
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   137
%dir %attr (0755, root, bin) %{_libdir}/bonobo/servers
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   138
%{_libdir}/bonobo/servers/GNOME_BrightnessApplet.server
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   139
%dir %attr (0755, root, sys) %{_datadir}
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   140
%dir %attr (0755, root, other) %{_datadir}/gnome
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   141
%dir %attr (0755, root, bin) %{_datadir}/gnome/autostart
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   142
%{_datadir}/gnome/autostart/gnome-power-manager.desktop
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   143
%dir %attr (0755, root, bin) %{_datadir}/gnome/help
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   144
%dir %attr (0755, root, bin) %{_datadir}/gnome/help/gnome-power-manager
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   145
%{_datadir}/gnome/help/gnome-power-manager/*/*
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   146
%dir %attr (0755, root, bin) %{_datadir}/gnome-2.0
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   147
%dir %attr (0755, root, bin) %{_datadir}/gnome-2.0/ui
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   148
%{_datadir}/gnome-2.0/ui/GNOME_BrightnessApplet.xml
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   149
%dir %attr (0755, root, bin) %{_datadir}/gnome-power-manager
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   150
%{_datadir}/gnome-power-manager/*
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   151
%dir %attr (0755, root, bin) %{_datadir}/dbus-1
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   152
%dir %attr (0755, root, bin) %{_datadir}/dbus-1/services
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   153
%{_datadir}/dbus-1/services/gnome-power-manager.service
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   154
%dir %attr (0755, root, bin) %{_datadir}/omf/
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   155
%dir %attr (0755, root, bin) %{_datadir}/omf/gnome-power-manager
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   156
%{_datadir}/omf/gnome-power-manager/*
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   157
%dir %attr (0755, root, other) %{_datadir}/applications
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   158
%{_datadir}/applications/gnome-power-*.desktop
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   159
%dir %attr (0755, root, other) %{_datadir}/icons
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   160
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   161
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/scalable/
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   162
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/scalable/apps/
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   163
%{_datadir}/icons/hicolor/scalable/apps/*
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   164
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/16x16
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   165
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/16x16/apps/
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   166
%{_datadir}/icons/hicolor/16x16/apps/*
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   167
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/22x22/
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   168
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/22x22/apps/
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   169
%{_datadir}/icons/hicolor/22x22/apps/*
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   170
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/24x24/
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   171
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/24x24/apps/
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   172
%{_datadir}/icons/hicolor/24x24/apps/*
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   173
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/48x48/
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   174
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/48x48/apps/
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   175
%{_datadir}/icons/hicolor/48x48/apps/*
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   176
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   177
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   178
%files root
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   179
%defattr (0755, root, sys)
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   180
%dir %attr (0755, root, sys) %{_sysconfdir}
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   181
%{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   182
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   183
%if %build_l10n
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   184
%files l10n
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   185
%defattr (-, root, bin)
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   186
%dir %attr (0755, root, sys) %{_datadir}
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   187
%attr (-, root, other) %{_datadir}/locale
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   188
%endif
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   189
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   190
%changelog
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   191
* Thu Feb 14 2008 - [email protected]
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   192
  Move to gnome spec repository from sourceforge.
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   193
* Wed Dec 26 2007 - [email protected]
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   194
- Let patch gnome-power-manager-08-brightness-install.diff 
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   195
  do moving applets.
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   196
* Fri Dec 21 2007 - [email protected]
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   197
- Remove redundant CFLAGS and LDFLAGS.
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   198
* Mon Dec 17 2007 - [email protected]
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   199
- Move gnome-brightness-applet into /usr/lib.
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   200
* Thu Dec 12 2007 - [email protected]
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   201
- Disable gnome-inhibit-applet, remove relevant files.
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   202
* Tue Nov 27 2007 - [email protected]
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   203
- Removed man installation dir.
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   204
* Sun Nov 18 2007 - [email protected]
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   205
- Fix %files.
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   206
* Thu Nov 08 2007 - [email protected]
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   207
- Ensure doc dir is not installed
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   208
* Wed Nov 7 2007 - [email protected]
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   209
- Fix %post icon-cache.
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   210
* Thu Oct 25 2007 - [email protected]
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   211
- Delete installation files under /usr/share/docs.
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   212
* Wed Oct 17 2007 - [email protected]
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   213
- add /usr/gnu to search paths
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   214
* Wed Sep 19 2007 - [email protected]
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   215
- Fix %post/%preun typos
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   216
* Thu Aug 30 2007 - [email protected]
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   217
- Add missing doc dir
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   218
* Thu Mar 29 2007 - [email protected]
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   219
- Include l10n files.
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   220
* Tue Mar 27 2007 - [email protected]
a3f634fed259 2008-02-14 Jeff Cai<[email protected]>
qc161282
parents:
diff changeset
   221
- Create