]>
Commit | Line | Data |
---|---|---|
2023cd2d JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # disable gtk-doc | |
4 | %bcond_without static_libs # don't build static library | |
5 | # | |
314e70df | 6 | Summary: ATK - Accessibility Toolkit |
36168609 ER |
7 | Summary(pl.UTF-8): ATK - biblioteka ułatwiająca niepełnosprawnym korzystanie z komputerów |
8 | Summary(pt_BR.UTF-8): Interfaces para suporte a acessibilidade | |
314e70df | 9 | Name: atk |
75193da9 MB |
10 | Version: 1.30.0 |
11 | Release: 1 | |
adc5ecf7 | 12 | Epoch: 1 |
f68bcfa8 | 13 | License: LGPL v2+ |
2c0f206f | 14 | Group: X11/Libraries |
75193da9 MB |
15 | Source0: http://ftp.gnome.org/pub/GNOME/sources/atk/1.30/%{name}-%{version}.tar.bz2 |
16 | # Source0-md5: 548d413775819fef425410739041cac3 | |
693ff330 | 17 | URL: http://library.gnome.org/devel/atk/ |
75193da9 | 18 | BuildRequires: autoconf >= 2.62 |
3aca543c | 19 | BuildRequires: automake |
ab0b4c04 | 20 | BuildRequires: gettext-devel |
ba06bb46 | 21 | BuildRequires: glib2-devel >= 1:2.20.0 |
75193da9 | 22 | BuildRequires: gobject-introspection-devel >= 0.6.7 |
df23c961 MB |
23 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.8} |
24 | BuildRequires: gtk-doc-automake >= 1.8 | |
0ab8154b | 25 | BuildRequires: libtool >= 2:1.5.16 |
957a2a07 | 26 | BuildRequires: perl-base |
975626ac | 27 | BuildRequires: pkgconfig |
8bd26b76 | 28 | BuildRequires: rpmbuild(macros) >= 1.197 |
ba06bb46 | 29 | Requires: glib2 >= 1:2.20.0 |
74225e33 | 30 | Obsoletes: libatk1.0_0 |
2488716f | 31 | # sr@Latn vs. sr@latin |
32 | Conflicts: glibc-misc < 6:2.7 | |
0ad5858b | 33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
314e70df | 34 | |
314e70df | 35 | %description |
48edf961 | 36 | The ATK library provides a set of interfaces for adding accessibility |
37 | support to applications and graphical user interface toolkits. By | |
38 | supporting the ATK interfaces, an application or toolkit can be used | |
39 | as tools such as screen readers and magnifiers, and alternative input | |
40 | devices. | |
94314051 | 41 | |
75887df6 JR |
42 | %description -l pl.UTF-8 |
43 | Biblioteka ATK udostępnia zestaw interfejsów ułatwiających | |
44 | niepełnosprawnym korzystanie z aplikacji i poszczególnych elementów | |
45 | graficznego interfejsu użytkownika. Poprzez wykorzystanie interfejsów | |
46 | ATK, aplikacja lub element interfejsu może być używany z takimi | |
47 | narzędziami jak czytniki ekranu i narzędzia powiększające oraz | |
48 | alternatywnymi urządzeniami wejściowymi. | |
49 | ||
50 | %description -l pt_BR.UTF-8 | |
51 | A biblioteca ATK provê um conjunto de interfaces para adicionar | |
52 | suporte a acessibilidade para aplicações e interfaces gráficas. | |
53 | Suportando a interface ATK, uma aplicação ou interface gráfica pode | |
48edf961 | 54 | ser utilizada como ferramentas de leitura e aumento de tela, |
55 | dispositivos de entrada alternativos, etc. | |
314e70df | 56 | |
57 | %package devel | |
15da6a79 | 58 | Summary: ATK - header files |
36168609 ER |
59 | Summary(pl.UTF-8): ATK - pliki nagłówkowe |
60 | Summary(pt_BR.UTF-8): Interfaces para suporte a acessibilidade | |
2c0f206f | 61 | Group: X11/Development/Libraries |
adc5ecf7 | 62 | Requires: %{name} = %{epoch}:%{version}-%{release} |
ba06bb46 | 63 | Requires: glib2-devel >= 1:2.20.0 |
74225e33 | 64 | Obsoletes: libatk1.0_0-devel |
7744996b | 65 | |
314e70df | 66 | %description devel |
15da6a79 | 67 | ATK - header files. |
314e70df | 68 | |
75887df6 JR |
69 | %description devel -l pl.UTF-8 |
70 | ATK - pliki nagłówkowe. | |
94314051 | 71 | |
75887df6 | 72 | %description devel -l pt_BR.UTF-8 |
48edf961 | 73 | Interfaces para suporte a acessibilidade. |
74 | ||
314e70df | 75 | %package static |
10850004 | 76 | Summary: ATK static library |
36168609 ER |
77 | Summary(pl.UTF-8): Biblioteka statyczna ATK |
78 | Summary(pt_BR.UTF-8): Interfaces para suporte a acessibilidade | |
2c0f206f | 79 | Group: X11/Development/Libraries |
adc5ecf7 | 80 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
7744996b | 81 | |
314e70df | 82 | %description static |
10850004 | 83 | ATK static library. |
7744996b | 84 | |
75887df6 | 85 | %description static -l pl.UTF-8 |
94314051 | 86 | Biblioteka statyczna ATK. |
314e70df | 87 | |
75887df6 | 88 | %description static -l pt_BR.UTF-8 |
48edf961 | 89 | Interfaces para suporte a acessibilidade. |
90 | ||
00ed319a | 91 | %package apidocs |
92 | Summary: ATK API documentation | |
36168609 | 93 | Summary(pl.UTF-8): Dokumentacja API ATK |
00ed319a | 94 | Group: Documentation |
95 | Requires: gtk-doc-common | |
96 | ||
97 | %description apidocs | |
98 | ATK API documentation. | |
99 | ||
75887df6 | 100 | %description apidocs -l pl.UTF-8 |
00ed319a | 101 | Dokumentacja API ATK. |
102 | ||
314e70df | 103 | %prep |
0316715c | 104 | %setup -q |
75193da9 MB |
105 | sed -i 's/^en@shaw//' po/LINGUAS |
106 | rm po/en@shaw.po | |
314e70df | 107 | |
314e70df | 108 | %build |
c8a20703 | 109 | %{?with_apidocs:%{__gtkdocize}} |
29ba22b0 | 110 | %{__libtoolize} |
75193da9 | 111 | %{__aclocal} -I m4 |
29ba22b0 JB |
112 | %{__autoconf} |
113 | %{__autoheader} | |
114 | %{__automake} | |
65904f3a | 115 | %configure \ |
75193da9 | 116 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ |
11dbc856 | 117 | --with-html-dir=%{_gtkdocdir} \ |
ef42d581 | 118 | --%{?with_static_libs:en}%{!?with_static_libs:dis}able-static \ |
119 | --enable-shared | |
120 | ||
7744996b | 121 | %{__make} |
314e70df | 122 | |
123 | %install | |
124 | rm -rf $RPM_BUILD_ROOT | |
314e70df | 125 | |
10850004 | 126 | %{__make} install \ |
7b09545d | 127 | DESTDIR=$RPM_BUILD_ROOT |
10850004 | 128 | |
ab0b4c04 JB |
129 | %find_lang atk10 |
130 | ||
11dbc856 ER |
131 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/atk} |
132 | ||
314e70df | 133 | %clean |
134 | rm -rf $RPM_BUILD_ROOT | |
135 | ||
8e131f75 | 136 | %post -p /sbin/ldconfig |
137 | %postun -p /sbin/ldconfig | |
94314051 | 138 | |
ab0b4c04 | 139 | %files -f atk10.lang |
314e70df | 140 | %defattr(644,root,root,755) |
3aca543c | 141 | %doc AUTHORS NEWS README |
27cb9681 | 142 | %attr(755,root,root) %{_libdir}/libatk-1.0.so.*.*.* |
11dbc856 | 143 | %attr(755,root,root) %ghost %{_libdir}/libatk-1.0.so.0 |
75193da9 | 144 | %{_libdir}/girepository-1.0/Atk-1.0.typelib |
314e70df | 145 | |
146 | %files devel | |
147 | %defattr(644,root,root,755) | |
3aca543c | 148 | %doc ChangeLog |
27cb9681 JB |
149 | %attr(755,root,root) %{_libdir}/libatk-1.0.so |
150 | %{_libdir}/libatk-1.0.la | |
151 | %{_includedir}/atk-1.0 | |
152 | %{_pkgconfigdir}/atk.pc | |
889aa899 | 153 | %{_datadir}/gir-1.0/Atk-1.0.gir |
314e70df | 154 | |
ef42d581 | 155 | %if %{with static_libs} |
314e70df | 156 | %files static |
157 | %defattr(644,root,root,755) | |
27cb9681 | 158 | %{_libdir}/libatk-1.0.a |
ef42d581 | 159 | %endif |
00ed319a | 160 | |
161 | %if %{with apidocs} | |
162 | %files apidocs | |
163 | %defattr(644,root,root,755) | |
164 | %{_gtkdocdir}/atk | |
165 | %endif |