SUNWgnome-a11y-mousetweaks.spec
author funix
Wed, 26 May 2010 04:08:05 +0000
branchopensolaris-2010-03
changeset 18636 12dfdf681007
parent 16434 f21f22550fe9
permissions -rw-r--r--
2010-05-22 Harry Fu <[email protected]> * indiana/SUNWopensolaris-welcome.spec: Bump to 0.0.35
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
#
15556
79756053d7da 2009-04-03 Laszlo (Laca) Peter <[email protected]>
laca
parents: 15324
diff changeset
     6
# Copyright 2009 Sun Microsystems, Inc.
11582
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
#
16434
f21f22550fe9 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 15650
diff changeset
    10
%define owner liyuan
11582
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    11
#
13013
8a95adf6a9df Add line to indicate that the mousetweaks module is not to be
yippi
parents: 12644
diff changeset
    12
# We have removed mousetweaks from our builds since it is GPLv3.
8a95adf6a9df Add line to indicate that the mousetweaks module is not to be
yippi
parents: 12644
diff changeset
    13
# For now, leave in the following comment so that our ARC scripts
8a95adf6a9df Add line to indicate that the mousetweaks module is not to be
yippi
parents: 12644
diff changeset
    14
# recognize that we are not shipping this module starting with
8a95adf6a9df Add line to indicate that the mousetweaks module is not to be
yippi
parents: 12644
diff changeset
    15
# the 2.24 release.  When we re-integrate this package, remove
8a95adf6a9df Add line to indicate that the mousetweaks module is not to be
yippi
parents: 12644
diff changeset
    16
# the following line:
15582
aece1b26afa9 2009-04-07 Brian Cameron <[email protected]>
yippi
parents: 15556
diff changeset
    17
# PACKAGE NOT INCLUDED IN GNOME UMBRELLA ARC
13013
8a95adf6a9df Add line to indicate that the mousetweaks module is not to be
yippi
parents: 12644
diff changeset
    18
#
11582
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    19
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    20
%include Solaris.inc
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    21
%use mousetweaks = mousetweaks.spec
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
Name:                    SUNWgnome-a11y-mousetweaks
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    24
Summary:                 provided mouse accessibility enhancements
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    25
Version:                 %{mousetweaks.version}
14537
ef8b27846818 2008-10-30 Yue Wang <[email protected]>
yw230387
parents: 14531
diff changeset
    26
Source:                  %{name}-manpages-0.1.tar.gz
11582
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    27
SUNW_BaseDir:            %{_basedir}
11976
798f0ce46ec6 2008-03-31 Li Yuan <[email protected]>
liyuan
parents: 11585
diff changeset
    28
SUNW_Copyright:          %{name}.copyright
11582
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    29
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    30
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    31
%include default-depend.inc
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    32
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    33
Requires: SUNWgnome-config
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    34
Requires: SUNWgnome-applets
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    35
Requires: SUNWgnome-panel
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    36
Requires: SUNWgnome-a11y-libs
15324
36b720a1ae2c 2009-03-06 Brian Cameron <[email protected]>
yippi
parents: 14537
diff changeset
    37
Requires: SUNWdbus-glib
11582
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    38
Requires: SUNWgnome-libs
15556
79756053d7da 2009-04-03 Laszlo (Laca) Peter <[email protected]>
laca
parents: 15324
diff changeset
    39
Requires: SUNWdesktop-cache
12644
7b95d9235ffa 2008-06-12 Li Yuan <[email protected]>
liyuan
parents: 11976
diff changeset
    40
Requires: %{name}-root
11582
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
BuildRequires: SUNWgnome-config-devel
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    43
BuildRequires: SUNWgnome-panel-devel
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    44
BuildRequires: SUNWgnome-a11y-libs-devel
15324
36b720a1ae2c 2009-03-06 Brian Cameron <[email protected]>
yippi
parents: 14537
diff changeset
    45
BuildRequires: SUNWdbus-glib-devel
11582
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    46
BuildRequires: SUNWgnome-libs-devel
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    47
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    48
%package root
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    49
Summary:                 %{summary} - / filesystem
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    50
SUNW_BaseDir:            /
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    51
%include default-depend.inc
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    52
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    53
%if %build_l10n
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    54
%package l10n
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    55
Summary:                 %{summary} - l10n content
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    56
SUNW_BaseDir:            %{_basedir}
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    57
%include default-depend.inc
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    58
Requires: %{name}
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    59
%endif
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    60
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    61
%prep
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    62
rm -rf %name-%version
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    63
mkdir %name-%version
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    64
%mousetweaks.prep -d %name-%version
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    65
cd %{_builddir}/%name-%version
14537
ef8b27846818 2008-10-30 Yue Wang <[email protected]>
yw230387
parents: 14531
diff changeset
    66
gzcat %SOURCE0 | tar xf -
11582
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
%build
11585
6560dc9766d9 2008-02-04 Li Yuan <[email protected]>
liyuan
parents: 11582
diff changeset
    69
export CFLAGS="%optflags"
11582
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    70
export RPM_OPT_FLAGS="$CFLAGS"
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    71
export LDFLAGS="%_ldflags"
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    72
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    73
%mousetweaks.build -d %name-%version
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    74
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    75
%install
11585
6560dc9766d9 2008-02-04 Li Yuan <[email protected]>
liyuan
parents: 11582
diff changeset
    76
rm -rf $RPM_BUILD_ROOT
11582
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    77
%mousetweaks.install -d %name-%version
14537
ef8b27846818 2008-10-30 Yue Wang <[email protected]>
yw230387
parents: 14531
diff changeset
    78
rm -rf $RPM_BUILD_ROOT%{_mandir}
ef8b27846818 2008-10-30 Yue Wang <[email protected]>
yw230387
parents: 14531
diff changeset
    79
cd %{_builddir}/%name-%version/sun-manpages
ef8b27846818 2008-10-30 Yue Wang <[email protected]>
yw230387
parents: 14531
diff changeset
    80
make install DESTDIR=$RPM_BUILD_ROOT
11582
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    81
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    82
%if %build_l10n
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    83
%else
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    84
# REMOVE l10n FILES
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    85
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    86
%endif
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    87
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
%{?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
    90
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    91
%clean
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    92
rm -rf $RPM_BUILD_ROOT
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    93
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    94
%post
15556
79756053d7da 2009-04-03 Laszlo (Laca) Peter <[email protected]>
laca
parents: 15324
diff changeset
    95
%restart_fmri desktop-mime-cache gconf-cache
11582
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    96
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    97
%postun
15556
79756053d7da 2009-04-03 Laszlo (Laca) Peter <[email protected]>
laca
parents: 15324
diff changeset
    98
%restart_fmri desktop-mime-cache
11582
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    99
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   100
%files
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   101
%defattr(-,root,bin)
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   102
%dir %attr (0755, root, bin) %{_bindir}
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   103
%{_bindir}/*
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   104
%dir %attr (0755, root, bin) %{_libdir}
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   105
%{_libdir}/*
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   106
%dir %attr(0755, root, sys) %{_datadir}
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   107
%{_datadir}/mousetweaks
14531
34984ae2b46c 2008-10-30 Li Yuan <[email protected]>
liyuan
parents: 13425
diff changeset
   108
%doc -d mousetweaks-%{mousetweaks.version} README AUTHORS
34984ae2b46c 2008-10-30 Li Yuan <[email protected]>
liyuan
parents: 13425
diff changeset
   109
%doc(bzip2) -d mousetweaks-%{mousetweaks.version} COPYING.GPL COPYING.FDL NEWS ChangeLog src/mt-pidfile.c
34984ae2b46c 2008-10-30 Li Yuan <[email protected]>
liyuan
parents: 13425
diff changeset
   110
%dir %attr (0755, root, other) %{_datadir}/doc
11582
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   111
%dir %attr (0755, root, other) %{_datadir}/gnome
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   112
%dir %attr (0755, root, bin) %{_datadir}/gnome/help
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   113
%{_datadir}/gnome/help/*
13425
5f7363de4547 2008-09-05 Christian Kelly <[email protected]>
chrisk
parents: 13013
diff changeset
   114
%{_datadir}/omf/mousetweaks/*
11582
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   115
%dir %attr(0755, root, bin) %{_mandir}
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   116
%dir %attr(0755, root, bin) %{_mandir}/man1
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   117
%{_mandir}/man1/*
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   118
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   119
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   120
%if %build_l10n
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   121
%files l10n
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   122
%defattr (-, root, bin)
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   123
%dir %attr (0755, root, sys) %{_datadir}
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   124
%attr (-, root, other) %{_datadir}/locale
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   125
%endif
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   126
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   127
%files root
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   128
%defattr (-, root, sys)
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   129
%attr (0755, root, sys) %dir %{_sysconfdir}
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   130
%{_sysconfdir}/gconf/schemas/mousetweaks.schemas
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   131
%{_sysconfdir}/gconf/schemas/pointer-capture-applet.schemas
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   132
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   133
%changelog
15556
79756053d7da 2009-04-03 Laszlo (Laca) Peter <[email protected]>
laca
parents: 15324
diff changeset
   134
* Fri Apr  3 2009 - [email protected]
79756053d7da 2009-04-03 Laszlo (Laca) Peter <[email protected]>
laca
parents: 15324
diff changeset
   135
- use desktop-cache instead of postrun
15324
36b720a1ae2c 2009-03-06 Brian Cameron <[email protected]>
yippi
parents: 14537
diff changeset
   136
* Thu Mar 05 2009 - [email protected]
36b720a1ae2c 2009-03-06 Brian Cameron <[email protected]>
yippi
parents: 14537
diff changeset
   137
- Change SUNWdbus-bindings to SUNWdbus-glib.
14537
ef8b27846818 2008-10-30 Yue Wang <[email protected]>
yw230387
parents: 14531
diff changeset
   138
* Thu Oct 30 2008 - [email protected]
ef8b27846818 2008-10-30 Yue Wang <[email protected]>
yw230387
parents: 14531
diff changeset
   139
- Remove the original manpages, and add new manpages.
14531
34984ae2b46c 2008-10-30 Li Yuan <[email protected]>
liyuan
parents: 13425
diff changeset
   140
* Thu Oct 30 2008 - [email protected]
34984ae2b46c 2008-10-30 Li Yuan <[email protected]>
liyuan
parents: 13425
diff changeset
   141
- Add copyright information.
13425
5f7363de4547 2008-09-05 Christian Kelly <[email protected]>
chrisk
parents: 13013
diff changeset
   142
* Fri Sep 05 2008 - [email protected]
5f7363de4547 2008-09-05 Christian Kelly <[email protected]>
chrisk
parents: 13013
diff changeset
   143
- Fixed %files, added /usr/share/omf/mousetweaks dir. 
12644
7b95d9235ffa 2008-06-12 Li Yuan <[email protected]>
liyuan
parents: 11976
diff changeset
   144
* Thu Jun 12 2008 - [email protected]
7b95d9235ffa 2008-06-12 Li Yuan <[email protected]>
liyuan
parents: 11976
diff changeset
   145
- Add missing dependency on the %{name}-root pacakge.
11976
798f0ce46ec6 2008-03-31 Li Yuan <[email protected]>
liyuan
parents: 11585
diff changeset
   146
* Mon Mar 31 2008 - [email protected]
798f0ce46ec6 2008-03-31 Li Yuan <[email protected]>
liyuan
parents: 11585
diff changeset
   147
- Add copyright file
11585
6560dc9766d9 2008-02-04 Li Yuan <[email protected]>
liyuan
parents: 11582
diff changeset
   148
* Mon Feb 04 2008 Li Yuan <[email protected]>
6560dc9766d9 2008-02-04 Li Yuan <[email protected]>
liyuan
parents: 11582
diff changeset
   149
- Remove mfversion patch and use autoconf/automake to avoid
6560dc9766d9 2008-02-04 Li Yuan <[email protected]>
liyuan
parents: 11582
diff changeset
   150
  build errors. Remove some unnecessary script.
11582
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   151
* Tue Jan 29 2008 Li Yuan <[email protected]>
c6ba49e2212f 2008-02-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
   152
- Initial version.