SUNWgnome-a11y-mousetweaks.spec
author davelam
Thu, 07 Aug 2008 02:31:31 +0000
branchgnome-2-22
changeset 12491 b2fc226f1836
parent 12425 b686922c250f
permissions -rw-r--r--
2008-08-07 Dave Lin <[email protected]> * closed/SUNWflash-player-plugin.spec: Hack the version number from 9.0.125 9.0.1250 to fix the integration issue, which was caused by the incorrect version number(9.0.1124 should be 9.0.124) in the previous version bump.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11582
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     1
#
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     2
# spec file for package SUNWgnome-a11y-mousetweaks
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     3
#
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     4
# includes module(s): mousetweaks
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     5
#
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     6
# Copyright (c) 2005 Sun Microsystems, Inc.
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     7
# This file and all modifications and additions to the pristine
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     8
# package are under the same license as the package itself.
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     9
#
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    10
# Owner: liyuan
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    11
#
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    12
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    13
%include Solaris.inc
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    14
%use mousetweaks = mousetweaks.spec
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    15
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    16
Name:                    SUNWgnome-a11y-mousetweaks
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    17
Summary:                 provided mouse accessibility enhancements
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    18
Version:                 %{mousetweaks.version}
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    19
SUNW_BaseDir:            %{_basedir}
11976
798f0ce46ec6 2008-03-31 Li Yuan <[email protected]>
liyuan
parents: 11585
diff changeset
    20
SUNW_Copyright:          %{name}.copyright
11582
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    21
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    22
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    23
%include default-depend.inc
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    24
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    25
Requires: SUNWgnome-config
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    26
Requires: SUNWgnome-base-libs
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    27
Requires: SUNWgnome-applets
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    28
Requires: SUNWgnome-panel
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    29
Requires: SUNWgnome-a11y-libs
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    30
Requires: SUNWdbus-bindings
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    31
Requires: SUNWgnome-libs
11585
6560dc9766d9 2008-02-04 Li Yuan <[email protected]>
liyuan
parents: 11582
diff changeset
    32
Requires: SUNWpostrun
12425
b686922c250f add missing dependency on root pkg
davelam
parents: 11976
diff changeset
    33
Requires: %{name}-root
11582
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    34
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    35
BuildRequires: SUNWgnome-config-devel
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    36
BuildRequires: SUNWgnome-base-libs-devel
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    37
BuildRequires: SUNWgnome-panel-devel
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    38
BuildRequires: SUNWgnome-a11y-libs-devel
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    39
BuildRequires: SUNWdbus-bindings-devel
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    40
BuildRequires: SUNWgnome-libs-devel
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    41
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    42
%package root
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    43
Summary:                 %{summary} - / filesystem
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    44
SUNW_BaseDir:            /
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    45
%include default-depend.inc
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    46
Requires: SUNWpostrun-root
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    47
Requires: SUNWgnome-config
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    48
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    49
%if %build_l10n
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    50
%package l10n
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    51
Summary:                 %{summary} - l10n content
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    52
SUNW_BaseDir:            %{_basedir}
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    53
%include default-depend.inc
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    54
Requires: %{name}
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    55
%endif
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    56
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    57
%prep
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    58
rm -rf %name-%version
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    59
mkdir %name-%version
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    60
%mousetweaks.prep -d %name-%version
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    61
cd %{_builddir}/%name-%version
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    62
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    63
%build
11585
6560dc9766d9 2008-02-04 Li Yuan <[email protected]>
liyuan
parents: 11582
diff changeset
    64
export CFLAGS="%optflags"
11582
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    65
export RPM_OPT_FLAGS="$CFLAGS"
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    66
export LDFLAGS="%_ldflags"
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    67
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    68
%mousetweaks.build -d %name-%version
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    69
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    70
%install
11585
6560dc9766d9 2008-02-04 Li Yuan <[email protected]>
liyuan
parents: 11582
diff changeset
    71
rm -rf $RPM_BUILD_ROOT
11582
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    72
%mousetweaks.install -d %name-%version
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    73
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    74
%if %build_l10n
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    75
%else
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    76
# REMOVE l10n FILES
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    77
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    78
%endif
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    79
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    80
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    81
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    82
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    83
%clean
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    84
rm -rf $RPM_BUILD_ROOT
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    85
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    86
%post
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    87
%include desktop-database-install.script
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    88
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    89
%postun
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    90
test -x $BASEDIR/lib/postrun || exit 0
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    91
%include desktop-database-uninstall.script
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    92
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    93
%post root
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    94
%include gconf-install.script
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    95
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    96
%preun root
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    97
test -x $BASEDIR/var/lib/postrun/postrun || exit 0
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    98
( echo 'test -x /usr/bin/gconftool-2 || {';
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    99
  echo '  echo "ERROR: gconftool-2 not found"';
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   100
  echo '  exit 0';
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   101
  echo '}';
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   102
  echo 'umask 0022';
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   103
  echo 'GCONF_CONFIG_SOURCE=xml:merged:$PKG_INSTALL_ROOT/etc/gconf/gconf.xml.defaults';
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   104
  echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   105
  echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   106
  echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   107
  echo 'SDIR=$PKG_INSTALL_ROOT%{_sysconfdir}/gconf/schemas';
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   108
  echo 'schemas="$SDIR/mousetweaks.schemas';
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   109
  echo '         $SDIR/pointer-capture-applet.schemas"';
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   110
  echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   111
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   112
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   113
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   114
%files
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   115
%defattr(-,root,bin)
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   116
%dir %attr (0755, root, bin) %{_bindir}
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   117
%{_bindir}/*
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   118
%dir %attr (0755, root, bin) %{_libdir}
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   119
%{_libdir}/*
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   120
%dir %attr(0755, root, sys) %{_datadir}
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   121
%{_datadir}/mousetweaks
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   122
%dir %attr (0755, root, other) %{_datadir}/gnome
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   123
%dir %attr (0755, root, bin) %{_datadir}/gnome/help
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   124
%{_datadir}/gnome/help/*
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   125
%dir %attr(0755, root, bin) %{_mandir}
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   126
%dir %attr(0755, root, bin) %{_mandir}/man1
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   127
%{_mandir}/man1/*
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   128
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   129
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   130
%if %build_l10n
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   131
%files l10n
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   132
%defattr (-, root, bin)
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   133
%dir %attr (0755, root, sys) %{_datadir}
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   134
%attr (-, root, other) %{_datadir}/locale
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   135
%endif
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   136
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   137
%files root
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   138
%defattr (-, root, sys)
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   139
%attr (0755, root, sys) %dir %{_sysconfdir}
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   140
%{_sysconfdir}/gconf/schemas/mousetweaks.schemas
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   141
%{_sysconfdir}/gconf/schemas/pointer-capture-applet.schemas
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   142
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   143
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   144
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   145
%changelog
12425
b686922c250f add missing dependency on root pkg
davelam
parents: 11976
diff changeset
   146
* Thu Jun 12 2008 - [email protected]
b686922c250f add missing dependency on root pkg
davelam
parents: 11976
diff changeset
   147
- Add missing dependency on root pkg
11976
798f0ce46ec6 2008-03-31 Li Yuan <[email protected]>
liyuan
parents: 11585
diff changeset
   148
* Mon Mar 31 2008 - [email protected]
798f0ce46ec6 2008-03-31 Li Yuan <[email protected]>
liyuan
parents: 11585
diff changeset
   149
- Add copyright file
11585
6560dc9766d9 2008-02-04 Li Yuan <[email protected]>
liyuan
parents: 11582
diff changeset
   150
* Mon Feb 04 2008 Li Yuan <[email protected]>
6560dc9766d9 2008-02-04 Li Yuan <[email protected]>
liyuan
parents: 11582
diff changeset
   151
- Remove mfversion patch and use autoconf/automake to avoid
6560dc9766d9 2008-02-04 Li Yuan <[email protected]>
liyuan
parents: 11582
diff changeset
   152
  build errors. Remove some unnecessary script.
11582
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   153
* Tue Jan 29 2008 Li Yuan <[email protected]>
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   154
- Initial version.