author | dermotm |
Mon, 24 Jul 2006 12:30:39 +0000 | |
branch | gnome-2-10 |
changeset 19949 | 94f49bf19351 |
parent 19884 | 8a9ee5371cb5 |
permissions | -rw-r--r-- |
19693 | 1 |
# |
2 |
# spec file for package libxklavier |
|
3 |
# |
|
4 |
# Copyright (c) 2005 Sun Microsystems, Inc. |
|
5 |
# This file and all modifications and additions to the pristine |
|
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
1469 | 8 |
Name: libxklavier |
9 |
License: LGPL |
|
10 |
Group: System/Libraries/GNOME |
|
19277 | 11 |
Version: 2.0 |
12 |
Release: 35 |
|
19693 | 13 |
Distribution: Java Desktop System |
1469 | 14 |
Vendor: Sun Microsystems, Inc. |
15 |
Summary: Utility library for XKB |
|
19884 | 16 |
Source: http://ftp.gnome.org/pub/GNOME/sources/libxklavier/2.0/%{name}-%{version}.tar.bz2 |
19566 | 17 |
Patch1: libxklavier-01-wall.diff |
19794 | 18 |
Patch2: libxklavier-02-g11n-i18n-ui.diff |
1564 | 19 |
URL: http://www.freedesktop.org/Software/LibXklavier |
1469 | 20 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
21 |
Docdir: %{_defaultdocdir}/doc |
|
22 |
Autoreqprov: on |
|
23 |
Prereq: /sbin/ldconfig |
|
24 |
||
3628 | 25 |
%define libxml2_version 2.6.7 |
1469 | 26 |
|
27 |
BuildRequires: libxml2-devel >= %{libxml2_version} |
|
28 |
Requires: libxml2 >= %{libxml2_version} |
|
29 |
||
30 |
%description |
|
31 |
libxklavier is a private utility library used in the GNOME control center |
|
32 |
used for XKB. |
|
33 |
||
34 |
%package devel |
|
19292 | 35 |
Summary: Utility library for XKB |
1469 | 36 |
Group: Development/Libraries/GNOME |
37 |
Requires: %{name} = %{version} |
|
38 |
Requires: libxml2-devel >= %{libxml2_version} |
|
39 |
||
40 |
%description devel |
|
41 |
libxklavier is a private utility library used in the GNOME control center |
|
42 |
used for XKB. |
|
43 |
||
44 |
%prep |
|
45 |
%setup -q |
|
4821 | 46 |
|
19566 | 47 |
%patch1 -p1 |
19794 | 48 |
%patch2 -p1 |
1469 | 49 |
|
19830 | 50 |
%ifnarch sparc |
51 |
bash -x ./xfree86.sh |
|
52 |
%endif |
|
19277 | 53 |
|
4455 | 54 |
|
1469 | 55 |
%build |
3263 | 56 |
%ifos linux |
57 |
if [ -x /usr/bin/getconf ]; then |
|
58 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
59 |
fi |
|
60 |
%else |
|
3846 | 61 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 62 |
%endif |
63 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
64 |
CPUS=1 |
|
65 |
fi |
|
66 |
||
4821 | 67 |
LC_ALL= |
68 |
LANG= |
|
69 |
export LANG LC_ALL |
|
70 |
glib-gettextize --force --copy |
|
71 |
libtoolize --force --copy |
|
72 |
intltoolize --force --copy |
|
73 |
aclocal $ACLOCAL_FLAGS |
|
74 |
autoheader |
|
75 |
automake -a -c -f |
|
76 |
autoconf |
|
77 |
||
1469 | 78 |
CFLAGS="$RPM_OPT_FLAGS" \ |
1729 | 79 |
%ifos solaris |
4300 | 80 |
|
19281 | 81 |
aclocal $ACLOCAL_FLAGS |
82 |
automake -a -c -f |
|
83 |
autoconf |
|
84 |
||
4300 | 85 |
%ifarch sparc |
86 |
%define xkbbase /usr/openwin/lib/X11/xkb |
|
87 |
%else |
|
88 |
%define xkbbase /usr/X11/lib/X11/xkb |
|
89 |
%endif |
|
90 |
||
1469 | 91 |
./configure --prefix=%{_prefix} \ |
1729 | 92 |
--disable-doxygen \ |
4300 | 93 |
--with-xkb-base=%xkbbase \ |
4821 | 94 |
--enable-local-xml-cfg \ |
1469 | 95 |
--sysconfdir=%{_sysconfdir} |
1728 | 96 |
%else |
97 |
./configure --prefix=%{_prefix} \ |
|
4821 | 98 |
--enable-local-xml-cfg \ |
1728 | 99 |
--sysconfdir=%{_sysconfdir} |
100 |
%endif |
|
1729 | 101 |
|
3263 | 102 |
make -j $CPUS |
1469 | 103 |
|
104 |
%install |
|
105 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
3628 | 106 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
107 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
|
1469 | 108 |
|
109 |
%clean |
|
110 |
rm -rf $RPM_BUILD_ROOT |
|
111 |
||
112 |
%post |
|
113 |
/sbin/ldconfig |
|
114 |
||
115 |
%postun |
|
116 |
/sbin/ldconfig |
|
117 |
||
118 |
%files |
|
119 |
%defattr (-, root, root) |
|
120 |
%{_libdir}/*.so.* |
|
5112 | 121 |
%{_datadir}/libxklavier |
1469 | 122 |
|
123 |
%files devel |
|
124 |
%defattr (-, root, root) |
|
125 |
%{_libdir}/*.so |
|
126 |
%{_libdir}/pkgconfig/*.pc |
|
127 |
%{_includedir}/libxklavier |
|
128 |
||
129 |
%changelog |
|
19566 | 130 |
* Wed Jul 13 2005 - [email protected] |
131 |
- No longer need patch 1 to install uninstalled.pc files since |
|
132 |
we split the Solaris panel and applet into separate spec files. |
|
133 |
||
19277 | 134 |
* Fri May 13 2005 - [email protected] |
135 |
- Bumping to version 2.0, since version >1.3 is needed for |
|
136 |
gnome-applets 2.10. |
|
137 |
||
5112 | 138 |
* Mon Feb 21 2005 - [email protected] |
139 |
- Added .xml file to %files section. Fixing 6216095. |
|
140 |
||
4847 | 141 |
* Fri Jan 14 2005 - [email protected] |
142 |
- adding libxklavier l10n po tarball to the build |
|
143 |
||
4821 | 144 |
* Wed Jan 12 2005 - [email protected] |
145 |
- Add libxklavier-02-g11n-i18n-ui.diff to localize gnome-keyboard-applet |
|
146 |
Fixes 6216095 |
|
147 |
||
4300 | 148 |
* Tue Oct 19 2004 - [email protected] |
149 |
- use old openwin xkb on Solaris sparc as Xorg xkb is only available on x86 |
|
3628 | 150 |
* Wed Jul 07 2004 - [email protected] |
151 |
- ported to rpm4 |
|
152 |
||
3263 | 153 |
* Wed Jul 07 2004 - [email protected] |
154 |
- added "-j $CPUS" to make to speed up builds |
|
155 |
||
2555 | 156 |
* Mon Apr 26 2004 - <[email protected]> |
157 |
- Bump to 1.02 |
|
158 |
||
2400 | 159 |
* Tue Apr 6 2004 - <[email protected]> |
160 |
- Bump to 1.0 |
|
161 |
||
2141 | 162 |
* Thu Mar 04 2004 - <[email protected]> |
163 |
- add patch to fix null pointer segv on Solaris |
|
164 |
patch has also been put into upstream cvs. |
|
165 |
||
1920 | 166 |
* Tue Feb 24 2004 - <[email protected]> |
167 |
- Update Distro |
|
168 |
||
1728 | 169 |
* Tue Feb 17 2004 - <[email protected]> |
1730
8575cdee6857
add patch to fix build error with Forte caused by out-of-range
laca
parents:
1729
diff
changeset
|
170 |
- fix build error with Forte caused by out-of-range initialiser |
8575cdee6857
add patch to fix build error with Forte caused by out-of-range
laca
parents:
1729
diff
changeset
|
171 |
|
8575cdee6857
add patch to fix build error with Forte caused by out-of-range
laca
parents:
1729
diff
changeset
|
172 |
* Tue Feb 17 2004 - <[email protected]> |
1728 | 173 |
- disable doxygen when building on Solaris |
174 |
||
1564 | 175 |
* Wed Jan 04 2004 - <[email protected]> |
176 |
- Bumped version to 0.97 |
|
177 |
||
1469 | 178 |
* Tue Dec 16 2003 - <[email protected]> |
179 |
- initial Sun release. |