author | laca |
Fri, 29 Oct 2004 01:28:51 +0000 | |
changeset 4365 | d8676a6421af |
parent 4276 | 2a2c7f354601 |
child 4387 | 1b0580c5041e |
permissions | -rw-r--r-- |
20 | 1 |
Name: atk |
156 | 2 |
License: LGPL |
3 |
Group: System/Libraries |
|
3443 | 4 |
Version: 1.7.3 |
4276 | 5 |
Release: 22 |
1770 | 6 |
Distribution: Cinnabar |
575 | 7 |
Vendor: Sun Microsystems, Inc. |
168 | 8 |
Summary: ATK - Accesibility Toolkit Libraries |
2546 | 9 |
Source: http://ftp.gnome.org/pub/GNOME/sources/atk/1.7/%{name}-%{version}.tar.bz2 |
4265 | 10 |
Source1: atk-l10n-po-1.6.tar.bz2 |
1432 | 11 |
Source2: libatk-1.0.3.gz |
168 | 12 |
URL: http://www.gtk.org |
20 | 13 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
168 | 14 |
Docdir: %{_defaultdocdir}/doc |
156 | 15 |
AutoReqProv: on |
1080 | 16 |
Prereq: /sbin/ldconfig |
156 | 17 |
|
3628 | 18 |
%define glib2_version 2.4.0 |
170 | 19 |
|
20 |
Requires: glib2 >= %{glib2_version} |
|
21 |
BuildRequires: glib2-devel >= %{glib2_version} |
|
20 | 22 |
|
23 |
%description |
|
2174 | 24 |
The ATK Library provides a set of interfaces for accesibility. By supporting the ATK interfaces, an application or toolkit can be used with such tools as screen readers, magnifiers, and alternate input devices. |
20 | 25 |
|
26 |
%package devel |
|
168 | 27 |
Summary: ATK - Accessibility Toolkit Developer Libraries |
20 | 28 |
Group: Development/Libraries/GNOME |
29 |
Requires: %{name} = %{version} |
|
170 | 30 |
Requires: glib2-devel >= %{glib2_version} |
20 | 31 |
|
32 |
%description devel |
|
2174 | 33 |
The ATK Library provides a set of interfaces for accesibility. By supporting the ATK interfaces, an application or toolkit can be used with such tools as screen readers, magnifiers, and alternate input devices. |
20 | 34 |
|
35 |
%prep |
|
36 |
%setup -q |
|
1507 | 37 |
bzcat %SOURCE1 | tar xf - |
20 | 38 |
|
4121 | 39 |
%ifos solaris |
4271 | 40 |
%ifarch amd64 sparcv9 |
4121 | 41 |
cd .. |
42 |
cp -rp atk-%{version} atk-%{version}-64 |
|
43 |
%endif |
|
4127 | 44 |
%endif |
4121 | 45 |
|
46 |
||
20 | 47 |
%build |
3263 | 48 |
%ifos linux |
49 |
if [ -x /usr/bin/getconf ]; then |
|
50 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
51 |
fi |
|
52 |
%else |
|
3846 | 53 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 54 |
%endif |
55 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
56 |
CPUS=1 |
|
57 |
fi |
|
58 |
||
4121 | 59 |
CONFLAGS="--prefix=%{_prefix}" |
60 |
||
61 |
%ifos solaris |
|
62 |
||
63 |
CPUS=$(($CPUS*4)) |
|
64 |
||
4271 | 65 |
%ifarch amd64 sparcv9 |
4365 | 66 |
export CC=${CC64:-$CC} |
67 |
save_PATH="$PATH" |
|
68 |
ccdir=`dirname $CC` |
|
69 |
export PATH=$ccdir:$PATH |
|
4121 | 70 |
cd ../atk-%version-64 |
71 |
export CFLAGS="$CFLAGS64" |
|
72 |
export LDFLAGS="$LDFLAGS64" |
|
73 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH64" |
|
74 |
||
75 |
./configure $CONFLAGS \ |
|
76 |
--bindir=%{_bindir}/%{_arch64} \ |
|
77 |
--libdir=%{_libdir}/%{_arch64} \ |
|
78 |
--libexecdir=%{_libexecdir}/%{_arch64} \ |
|
79 |
--sysconfdir=%{_sysconfdir}/%{_arch64} \ |
|
80 |
--disable-gtk-doc |
|
81 |
||
82 |
make -j $CPUS |
|
83 |
cd ../atk-%version |
|
4365 | 84 |
export CC=${CC32:-$CC} |
85 |
export PATH="$save_PATH" |
|
4121 | 86 |
|
87 |
export LDFLAGS="$LDFLAGS32" |
|
88 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH32" |
|
4365 | 89 |
export CFLAGS="$CFLAGS32" |
90 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
4121 | 91 |
|
92 |
%endif |
|
4365 | 93 |
%endif |
4121 | 94 |
|
95 |
||
168 | 96 |
CFLAGS="$RPM_OPT_FLAGS" \ |
4121 | 97 |
./configure $CONFLAGS \ |
98 |
--sysconfdir=%{_sysconfdir} \ |
|
99 |
--enable-gtk-doc |
|
3263 | 100 |
make -j $CPUS |
20 | 101 |
|
102 |
%install |
|
4121 | 103 |
|
104 |
%ifos solaris |
|
4271 | 105 |
%ifarch amd64 sparcv9 |
4121 | 106 |
cd ../atk-%version-64 |
107 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
108 |
cd ../atk-%version |
|
109 |
%endif |
|
4127 | 110 |
%endif |
4121 | 111 |
|
20 | 112 |
make DESTDIR=$RPM_BUILD_ROOT install |
1507 | 113 |
install -d $RPM_BUILD_ROOT%{_mandir}/man3 |
114 |
install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
3628 | 115 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
20 | 116 |
|
117 |
%clean |
|
118 |
rm -rf $RPM_BUILD_ROOT |
|
119 |
||
168 | 120 |
%post |
121 |
/sbin/ldconfig |
|
156 | 122 |
|
168 | 123 |
%postun |
124 |
/sbin/ldconfig |
|
156 | 125 |
|
20 | 126 |
%files |
127 |
%defattr(-, root, root) |
|
156 | 128 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
1058 | 129 |
%{_libdir}/libatk*.so.* |
20 | 130 |
|
131 |
%files devel |
|
132 |
%defattr(-, root, root) |
|
168 | 133 |
%{_includedir}/atk-1.0/* |
156 | 134 |
%{_libdir}/pkgconfig/*.pc |
1058 | 135 |
%{_libdir}/libatk*.so |
156 | 136 |
%{_datadir}/gtk-doc/html/atk |
1432 | 137 |
%{_mandir}/man3/* |
20 | 138 |
|
156 | 139 |
%changelog |
4365 | 140 |
* Fri Oct 29 2004 - [email protected] |
141 |
- use $CC64 for the 64-bit build if defined |
|
142 |
||
4121 | 143 |
* Sat Oct 2 2004 - [email protected] |
144 |
- Create 64bit libraries for Solaris |
|
145 |
||
3660 | 146 |
* Wed Aug 18 2004 - [email protected] |
147 |
- added --enable-gtk-doc. |
|
148 |
||
3443 | 149 |
* Wed Jul 28 2004 - <[email protected]> |
150 |
- Bump to 1.7.3 |
|
151 |
||
3427 | 152 |
* Mon Jul 26 2004 - <[email protected]> |
153 |
- Bump to 1.7.2 |
|
154 |
||
3279
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
155 |
* Thu Jul 08 2004 - [email protected] |
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
156 |
- Updated l10n content to atk-l10n-po-1.2.tar.bz2 |
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
157 |
|
3628 | 158 |
* Wed Jul 07 2004 - [email protected] |
159 |
- ported to rpm4 |
|
160 |
||
3263 | 161 |
* Wed Jul 07 2004 - [email protected] |
162 |
- added "-j $CPUS" to make to speed up builds |
|
163 |
||
3049 | 164 |
* Tue Jun 08 2004 - <[email protected]> |
165 |
- Bump to 1.7.1 |
|
166 |
||
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
167 |
* Wed May 12 2004 - [email protected] |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
168 |
- Updated l10n content to atk-l10n-po-1.1.tar.bz2 |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
169 |
|
2546 | 170 |
* Thu Apr 22 2004 - <[email protected]> |
171 |
- Bump to 1.7.0 |
|
172 |
||
2350 | 173 |
* Mon Mar 29 2004 - [email protected] |
174 |
- Updated l10n content to atk-l10n-po-1.0.tar.bz2 |
|
175 |
||
2200
aa471adba25d
* gnome-speech.spec: Add JDK path to CFLAGS and PATH for Linux.
dc144907
parents:
2180
diff
changeset
|
176 |
* Mon Mar 15 2004 - <[email protected]> |
aa471adba25d
* gnome-speech.spec: Add JDK path to CFLAGS and PATH for Linux.
dc144907
parents:
2180
diff
changeset
|
177 |
- Change '1.5' in URL to '1.6'. |
aa471adba25d
* gnome-speech.spec: Add JDK path to CFLAGS and PATH for Linux.
dc144907
parents:
2180
diff
changeset
|
178 |
|
2180 | 179 |
* Thu Mar 11 2004 - <[email protected]> |
180 |
- Reset release to 1. |
|
181 |
||
2174 | 182 |
* Wed Mar 10 2004 - <[email protected]> |
183 |
- Bump to 1.6.0 |
|
184 |
||
1770 | 185 |
* Wed Feb 18 2004 - <[email protected]> |
186 |
- Bump to 1.5.4, remove pc patch |
|
187 |
||
1507 | 188 |
* Fri Jan 09 2004 - <[email protected]> |
189 |
- add patch to fix a broken .pc file |
|
190 |
- clean up for Solaris builds |
|
1770 | 191 |
|
1432 | 192 |
* Mon Dec 15 2003 - <[email protected]> |
193 |
- upgrade to 1.5.1 tarball |
|
194 |
||
1190 | 195 |
* Mon Oct 6 2003 - <[email protected]> |
196 |
- upgrade to 1.4 tarball |
|
1432 | 197 |
|
1058 | 198 |
* Thu Aug 14 2003 - <[email protected]> |
199 |
- move lib*.so to -devel, remove *.a, *.la |
|
200 |
||
20 | 201 |
* Tue May 13 2003 - [email protected] |
156 | 202 |
- initial Sun release |