]>
Commit | Line | Data |
---|---|---|
e540cf67 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # disable gtk-doc | |
4 | # | |
bb4a8862 | 5 | Summary: Accessibility implementation for GTK+ and GNOME libraries |
8aca3fab | 6 | Summary(pl.UTF-8): Implementacja ułatwiania pracy niepełnosprawnym dla GTK+ i GNOME |
bb4a8862 | 7 | Name: gail |
d8d6896b | 8 | Version: 1.22.3 |
df74416a | 9 | Release: 1 |
4aff31f8 MB |
10 | License: LGPL v2+ |
11 | Group: X11/Libraries | |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gail/1.22/%{name}-%{version}.tar.bz2 | |
d8d6896b | 13 | # Source0-md5: 1b0d2b3d5f89fb620ce6122e52578b41 |
e35e4705 | 14 | URL: http://developer.gnome.org/projects/gap/ |
4aff31f8 | 15 | BuildRequires: atk-devel >= 1:1.22.0 |
60189cb5 | 16 | BuildRequires: autoconf |
46311992 | 17 | BuildRequires: automake >= 1.6 |
86557e42 | 18 | BuildRequires: gettext-devel |
4aff31f8 | 19 | BuildRequires: gtk+2-devel >= 2:2.12.8 |
abb2db34 | 20 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.8} |
46311992 | 21 | BuildRequires: gtk-doc-automake >= 1.0 |
60189cb5 | 22 | BuildRequires: libtool |
3742124f | 23 | BuildRequires: pkgconfig |
737a4c1e | 24 | BuildRequires: rpmbuild(macros) >= 1.197 |
8cd63d61 | 25 | # sr@Latn vs. sr@latin |
26 | Conflicts: glibc-misc < 6:2.7 | |
6255d6f9 | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
bb4a8862 | 28 | |
bb4a8862 | 29 | %description |
30 | GAIL implements the abstract interfaces found in ATK for GTK+ and | |
4aff31f8 | 31 | GNOME libraries, enabling accessibility technologies such as AT-SPI to |
bb4a8862 | 32 | access those GUIs. |
33 | ||
145f6e12 JR |
34 | %description -l pl.UTF-8 |
35 | GAIL jest implementacją abstrakcyjnych interfejsów z ATK dla bibliotek | |
4aff31f8 | 36 | GTK+ i GNOME, umożliwiającą korzystanie z technik takich jak AT-SPI, |
145f6e12 | 37 | aby ułatwić niepełnosprawnym korzystanie z tych GUI. |
6255d6f9 | 38 | |
bb4a8862 | 39 | %package devel |
40 | Summary: Header files to compile applications that use GAIL | |
8aca3fab | 41 | Summary(pl.UTF-8): Pliki nagłówkowe GAIL |
bb4a8862 | 42 | Group: X11/Development/Libraries |
d93d0bb1 | 43 | Requires: %{name} = %{version}-%{release} |
4aff31f8 MB |
44 | Requires: atk-devel >= 1:1.22.0 |
45 | Requires: gtk+2-devel >= 2:2.12.8 | |
bb4a8862 | 46 | |
47 | %description devel | |
49678139 | 48 | gail-devel contains the header files required to compile applications |
bb4a8862 | 49 | against the GAIL libraries. |
50 | ||
145f6e12 JR |
51 | %description devel -l pl.UTF-8 |
52 | Pakiet gail-devel zawiera pliki nagłówkowe potrzebne do kompilowania | |
53 | aplikacji używających bibliotek GAIL. | |
6255d6f9 | 54 | |
bb4a8862 | 55 | %package static |
6255d6f9 | 56 | Summary: Static GAIL libraries |
8aca3fab | 57 | Summary(pl.UTF-8): Statyczne biblioteki GAIL |
bb4a8862 | 58 | Group: X11/Development/Libraries |
d93d0bb1 | 59 | Requires: %{name}-devel = %{version}-%{release} |
bb4a8862 | 60 | |
61 | %description static | |
6255d6f9 JB |
62 | gail-static contains the static GAIL libraries. |
63 | ||
145f6e12 | 64 | %description static -l pl.UTF-8 |
6255d6f9 | 65 | Pakiet gail-static zawiera statyczne biblioteki GAIL. |
bb4a8862 | 66 | |
590b0b07 | 67 | %package apidocs |
abb2db34 MB |
68 | Summary: API documentation |
69 | Summary(pl.UTF-8): Dokumentacja API | |
590b0b07 | 70 | Group: Documentation |
71 | Requires: gtk-doc-common | |
72 | ||
73 | %description apidocs | |
abb2db34 | 74 | API documentation. |
590b0b07 | 75 | |
145f6e12 | 76 | %description apidocs -l pl.UTF-8 |
39c5f587 | 77 | Dokumentacja API. |
590b0b07 | 78 | |
bb4a8862 | 79 | %prep |
80 | %setup -q | |
d93d0bb1 | 81 | |
bb4a8862 | 82 | %build |
7dcec031 | 83 | %{?with_apidocs:%{__gtkdocize}} |
60189cb5 | 84 | %{__libtoolize} |
ac85dc8d | 85 | %{__aclocal} |
60189cb5 | 86 | %{__autoconf} |
87 | %{__automake} | |
bb4a8862 | 88 | %configure \ |
1c73ebb5 | 89 | %{?with_apidocs:--enable-gtk-doc} \ |
326aa189 | 90 | --enable-static \ |
91 | --with-html-dir=%{_gtkdocdir} | |
bb4a8862 | 92 | %{__make} |
93 | ||
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
60189cb5 | 96 | |
bb4a8862 | 97 | %{__make} install \ |
49678139 | 98 | DESTDIR=$RPM_BUILD_ROOT |
bb4a8862 | 99 | |
5b88e2bb JB |
100 | # no static modules and *.la for gtk modules - shut up check-files |
101 | rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/lib*.{la,a} | |
a6da873b | 102 | |
8cd63d61 | 103 | [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \ |
104 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin} | |
d93d0bb1 | 105 | %find_lang %{name} |
106 | ||
bb4a8862 | 107 | %clean |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
4fefd0df | 110 | %post -p /sbin/ldconfig |
111 | %postun -p /sbin/ldconfig | |
48afc82d | 112 | |
d93d0bb1 | 113 | %files -f %{name}.lang |
bb4a8862 | 114 | %defattr(644,root,root,755) |
6255d6f9 | 115 | %doc AUTHORS ChangeLog NEWS README |
46311992 JB |
116 | %attr(755,root,root) %{_libdir}/gtk-2.0/modules/libferret.so |
117 | %attr(755,root,root) %{_libdir}/gtk-2.0/modules/libgail.so | |
118 | %attr(755,root,root) %{_libdir}/libgailutil.so.*.*.* | |
4aff31f8 | 119 | %attr(755,root,root) %ghost %{_libdir}/libgailutil.so.18 |
bb4a8862 | 120 | |
121 | %files devel | |
122 | %defattr(644,root,root,755) | |
46311992 JB |
123 | %attr(755,root,root) %{_libdir}/libgailutil.so |
124 | %{_libdir}/libgailutil.la | |
9f43c7b1 | 125 | %{_includedir}/gail-1.0 |
46311992 | 126 | %{_pkgconfigdir}/gail.pc |
bb4a8862 | 127 | |
128 | %files static | |
129 | %defattr(644,root,root,755) | |
46311992 | 130 | %{_libdir}/libgailutil.a |
590b0b07 | 131 | |
132 | %if %{with apidocs} | |
133 | %files apidocs | |
134 | %defattr(644,root,root,755) | |
46311992 | 135 | %{_gtkdocdir}/gail-libgail-util |
590b0b07 | 136 | %endif |