author | funix |
Wed, 26 May 2010 04:08:05 +0000 | |
branch | opensolaris-2010-03 |
changeset 18636 | 12dfdf681007 |
parent 16434 | f21f22550fe9 |
permissions | -rw-r--r-- |
11582 | 1 |
# |
2 |
# spec file for package SUNWgnome-a11y-mousetweaks |
|
3 |
# |
|
4 |
# includes module(s): mousetweaks |
|
5 |
# |
|
15556 | 6 |
# Copyright 2009 Sun Microsystems, Inc. |
11582 | 7 |
# This file and all modifications and additions to the pristine |
8 |
# package are under the same license as the package itself. |
|
9 |
# |
|
16434 | 10 |
%define owner liyuan |
11582 | 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 | 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 | 19 |
|
20 |
%include Solaris.inc |
|
21 |
%use mousetweaks = mousetweaks.spec |
|
22 |
||
23 |
Name: SUNWgnome-a11y-mousetweaks |
|
24 |
Summary: provided mouse accessibility enhancements |
|
25 |
Version: %{mousetweaks.version} |
|
14537 | 26 |
Source: %{name}-manpages-0.1.tar.gz |
11582 | 27 |
SUNW_BaseDir: %{_basedir} |
11976 | 28 |
SUNW_Copyright: %{name}.copyright |
11582 | 29 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
30 |
||
31 |
%include default-depend.inc |
|
32 |
||
33 |
Requires: SUNWgnome-config |
|
34 |
Requires: SUNWgnome-applets |
|
35 |
Requires: SUNWgnome-panel |
|
36 |
Requires: SUNWgnome-a11y-libs |
|
15324 | 37 |
Requires: SUNWdbus-glib |
11582 | 38 |
Requires: SUNWgnome-libs |
15556 | 39 |
Requires: SUNWdesktop-cache |
12644 | 40 |
Requires: %{name}-root |
11582 | 41 |
|
42 |
BuildRequires: SUNWgnome-config-devel |
|
43 |
BuildRequires: SUNWgnome-panel-devel |
|
44 |
BuildRequires: SUNWgnome-a11y-libs-devel |
|
15324 | 45 |
BuildRequires: SUNWdbus-glib-devel |
11582 | 46 |
BuildRequires: SUNWgnome-libs-devel |
47 |
||
48 |
%package root |
|
49 |
Summary: %{summary} - / filesystem |
|
50 |
SUNW_BaseDir: / |
|
51 |
%include default-depend.inc |
|
52 |
||
53 |
%if %build_l10n |
|
54 |
%package l10n |
|
55 |
Summary: %{summary} - l10n content |
|
56 |
SUNW_BaseDir: %{_basedir} |
|
57 |
%include default-depend.inc |
|
58 |
Requires: %{name} |
|
59 |
%endif |
|
60 |
||
61 |
%prep |
|
62 |
rm -rf %name-%version |
|
63 |
mkdir %name-%version |
|
64 |
%mousetweaks.prep -d %name-%version |
|
65 |
cd %{_builddir}/%name-%version |
|
14537 | 66 |
gzcat %SOURCE0 | tar xf - |
11582 | 67 |
|
68 |
%build |
|
11585 | 69 |
export CFLAGS="%optflags" |
11582 | 70 |
export RPM_OPT_FLAGS="$CFLAGS" |
71 |
export LDFLAGS="%_ldflags" |
|
72 |
||
73 |
%mousetweaks.build -d %name-%version |
|
74 |
||
75 |
%install |
|
11585 | 76 |
rm -rf $RPM_BUILD_ROOT |
11582 | 77 |
%mousetweaks.install -d %name-%version |
14537 | 78 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
79 |
cd %{_builddir}/%name-%version/sun-manpages |
|
80 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
11582 | 81 |
|
82 |
%if %build_l10n |
|
83 |
%else |
|
84 |
# REMOVE l10n FILES |
|
85 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
86 |
%endif |
|
87 |
||
88 |
||
89 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
90 |
||
91 |
%clean |
|
92 |
rm -rf $RPM_BUILD_ROOT |
|
93 |
||
94 |
%post |
|
15556 | 95 |
%restart_fmri desktop-mime-cache gconf-cache |
11582 | 96 |
|
97 |
%postun |
|
15556 | 98 |
%restart_fmri desktop-mime-cache |
11582 | 99 |
|
100 |
%files |
|
101 |
%defattr(-,root,bin) |
|
102 |
%dir %attr (0755, root, bin) %{_bindir} |
|
103 |
%{_bindir}/* |
|
104 |
%dir %attr (0755, root, bin) %{_libdir} |
|
105 |
%{_libdir}/* |
|
106 |
%dir %attr(0755, root, sys) %{_datadir} |
|
107 |
%{_datadir}/mousetweaks |
|
14531 | 108 |
%doc -d mousetweaks-%{mousetweaks.version} README AUTHORS |
109 |
%doc(bzip2) -d mousetweaks-%{mousetweaks.version} COPYING.GPL COPYING.FDL NEWS ChangeLog src/mt-pidfile.c |
|
110 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
11582 | 111 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
112 |
%dir %attr (0755, root, bin) %{_datadir}/gnome/help |
|
113 |
%{_datadir}/gnome/help/* |
|
13425 | 114 |
%{_datadir}/omf/mousetweaks/* |
11582 | 115 |
%dir %attr(0755, root, bin) %{_mandir} |
116 |
%dir %attr(0755, root, bin) %{_mandir}/man1 |
|
117 |
%{_mandir}/man1/* |
|
118 |
||
119 |
||
120 |
%if %build_l10n |
|
121 |
%files l10n |
|
122 |
%defattr (-, root, bin) |
|
123 |
%dir %attr (0755, root, sys) %{_datadir} |
|
124 |
%attr (-, root, other) %{_datadir}/locale |
|
125 |
%endif |
|
126 |
||
127 |
%files root |
|
128 |
%defattr (-, root, sys) |
|
129 |
%attr (0755, root, sys) %dir %{_sysconfdir} |
|
130 |
%{_sysconfdir}/gconf/schemas/mousetweaks.schemas |
|
131 |
%{_sysconfdir}/gconf/schemas/pointer-capture-applet.schemas |
|
132 |
||
133 |
%changelog |
|
15556 | 134 |
* Fri Apr 3 2009 - [email protected] |
135 |
- use desktop-cache instead of postrun |
|
15324 | 136 |
* Thu Mar 05 2009 - [email protected] |
137 |
- Change SUNWdbus-bindings to SUNWdbus-glib. |
|
14537 | 138 |
* Thu Oct 30 2008 - [email protected] |
139 |
- Remove the original manpages, and add new manpages. |
|
14531 | 140 |
* Thu Oct 30 2008 - [email protected] |
141 |
- Add copyright information. |
|
13425 | 142 |
* Fri Sep 05 2008 - [email protected] |
143 |
- Fixed %files, added /usr/share/omf/mousetweaks dir. |
|
12644 | 144 |
* Thu Jun 12 2008 - [email protected] |
145 |
- Add missing dependency on the %{name}-root pacakge. |
|
11976 | 146 |
* Mon Mar 31 2008 - [email protected] |
147 |
- Add copyright file |
|
11585 | 148 |
* Mon Feb 04 2008 Li Yuan <[email protected]> |
149 |
- Remove mfversion patch and use autoconf/automake to avoid |
|
150 |
build errors. Remove some unnecessary script. |
|
11582 | 151 |
* Tue Jan 29 2008 Li Yuan <[email protected]> |
152 |
- Initial version. |