]>
Commit | Line | Data |
---|---|---|
34a89ef1 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with static_libs # static library | |
4 | # | |
4fca4d63 | 5 | Summary: A GTK+ module that bridges ATK to D-Bus at-spi |
960d998b | 6 | Summary(pl.UTF-8): Moduł GTK+ łączący ATK z at-spi jako usługą D-Bus |
4fca4d63 | 7 | Name: at-spi2-atk |
7cf546c1 | 8 | Version: 2.6.0 |
34a89ef1 | 9 | Release: 2 |
4fca4d63 MB |
10 | License: LGPL v2+ |
11 | Group: Libraries | |
7cf546c1 ŁK |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/at-spi2-atk/2.6/%{name}-%{version}.tar.xz |
13 | # Source0-md5: 1597e1f88778611be18d8710ac95787d | |
4fca4d63 | 14 | URL: http://www.linuxfoundation.org/en/AT-SPI_on_D-Bus |
946ee6f9 MB |
15 | BuildRequires: at-spi2-core-devel >= 2.4.0 |
16 | BuildRequires: atk-devel >= 2.4.0 | |
34a89ef1 | 17 | BuildRequires: autoconf >= 2.50 |
4fca4d63 | 18 | BuildRequires: automake |
e4c5f235 | 19 | BuildRequires: dbus-devel >= 1.0 |
960d998b | 20 | BuildRequires: glib2-devel >= 2.0.0 |
4fca4d63 MB |
21 | BuildRequires: libtool |
22 | BuildRequires: pkgconfig | |
23 | BuildRequires: rpmbuild(macros) >= 1.592 | |
851aed7a | 24 | BuildRequires: tar >= 1:1.22 |
960d998b | 25 | BuildRequires: xorg-lib-libX11-devel |
851aed7a | 26 | BuildRequires: xz |
4fca4d63 | 27 | Requires(post,postun): glib2 >= 1:2.26.0 |
34a89ef1 | 28 | Requires: %{name}-libs = %{version}-%{release} |
946ee6f9 MB |
29 | Requires: at-spi2-core >= 2.4.0 |
30 | Requires: atk >= 2.4.0 | |
960d998b | 31 | Requires: dbus >= 1.0 |
4fca4d63 MB |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %description | |
35 | This package provides a GTK+ module that bridges ATK to the new D-Bus | |
36 | based at-spi. | |
37 | ||
960d998b JB |
38 | %description -l pl.UTF-8 |
39 | Ten pakiet dostarcza moduł GTK+ łączący ATK z nowym at-spi, opartym o | |
40 | usługę D-Bus. | |
41 | ||
34a89ef1 JB |
42 | %package libs |
43 | Summary: Shared atk-bridge library | |
44 | Summary(pl.UTF-8): Biblioteka współdzielona atk-bridge | |
45 | Group: Libraries | |
46 | Requires: at-spi2-core-libs >= 2.4.0 | |
47 | Requires: glib2 >= 2.0.0 | |
48 | Conflicts: at-spi2-atk < 2.6.0-2 | |
49 | ||
50 | %description libs | |
51 | Shared atk-bridge library, providing ATK/D-Bus bridge. | |
52 | ||
53 | %description libs -l pl.UTF-8 | |
54 | Biblioteka współdzielona atk-bridge, zapewniająca pomost między ATK a | |
55 | D-Bus. | |
56 | ||
f57b3d5b | 57 | %package devel |
34a89ef1 JB |
58 | Summary: Header files for atk-bridge library |
59 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki atk-bridge | |
f57b3d5b | 60 | Group: Development/Libraries |
34a89ef1 JB |
61 | Requires: %{name}-libs = %{version}-%{release} |
62 | Requires: at-spi2-core-devel >= 2.4.0 | |
63 | Requires: glib2-devel >= 2.0.0 | |
f57b3d5b ŁK |
64 | |
65 | %description devel | |
34a89ef1 | 66 | Header files for atk-bridge library. |
f57b3d5b ŁK |
67 | |
68 | %description devel -l pl.UTF-8 | |
34a89ef1 JB |
69 | Pliki nagłówkowe biblioteki atk-bridge. |
70 | ||
71 | %package static | |
72 | Summary: Static atk-bridge library | |
73 | Summary(pl.UTF-8): Biblioteka statyczna atk-bridge | |
74 | Group: Development/Libraries | |
75 | Requires: %{name}-devel = %{version}-%{release} | |
76 | ||
77 | %description static | |
78 | Static atk-bridge library. | |
79 | ||
80 | %description static -l pl.UTF-8 | |
81 | Biblioteka statyczna atk-bridge. | |
f57b3d5b | 82 | |
4fca4d63 MB |
83 | %prep |
84 | %setup -q | |
85 | ||
86 | %build | |
4fca4d63 MB |
87 | %{__libtoolize} |
88 | %{__aclocal} | |
89 | %{__autoconf} | |
90 | %{__autoheader} | |
91 | %{__automake} | |
f134774e | 92 | %configure \ |
34a89ef1 JB |
93 | --disable-silent-rules |
94 | %{?with_static_libs:--enable-static} | |
4fca4d63 MB |
95 | %{__make} |
96 | ||
97 | %install | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %{__make} install \ | |
101 | DESTDIR=$RPM_BUILD_ROOT | |
102 | ||
f57b3d5b | 103 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gtk-*/modules/libatk-bridge.la \ |
34a89ef1 JB |
104 | $RPM_BUILD_ROOT%{_libdir}/*.la |
105 | ||
106 | %{?with_static_libs:%{__rm} $RPM_BUILD_ROOT%{_libdir}/gtk-*/module/libatk-bridge.a} | |
4fca4d63 | 107 | |
4fca4d63 MB |
108 | %clean |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
111 | %post | |
112 | %glib_compile_schemas | |
113 | ||
114 | %postun | |
115 | %glib_compile_schemas | |
116 | ||
34a89ef1 JB |
117 | %post libs -p /sbin/ldconfig |
118 | %postun libs -p /sbin/ldconfig | |
119 | ||
7cf546c1 | 120 | %files |
4fca4d63 | 121 | %defattr(644,root,root,755) |
4fca4d63 | 122 | %attr(755,root,root) %{_libdir}/gtk-2.0/modules/libatk-bridge.so |
4fca4d63 MB |
123 | %{_libdir}/gnome-settings-daemon-3.0/gtk-modules/at-spi2-atk.desktop |
124 | %{_datadir}/glib-2.0/schemas/org.a11y.atspi.gschema.xml | |
f57b3d5b | 125 | |
34a89ef1 JB |
126 | %files libs |
127 | %defattr(644,root,root,755) | |
128 | %doc AUTHORS NEWS README | |
129 | %attr(755,root,root) %{_libdir}/libatk-bridge-2.0.so.*.*.* | |
130 | %attr(755,root,root) %ghost %{_libdir}/libatk-bridge-2.0.so.0 | |
131 | ||
f57b3d5b ŁK |
132 | %files devel |
133 | %defattr(644,root,root,755) | |
134 | %attr(755,root,root) %{_libdir}/libatk-bridge-2.0.so | |
135 | %{_includedir}/at-spi2-atk | |
136 | %{_pkgconfigdir}/atk-bridge-2.0.pc | |
34a89ef1 JB |
137 | |
138 | %if %{with static_libs} | |
139 | %files static | |
140 | %defattr(644,root,root,755) | |
141 | %{_libdir}/libatk-bridge-2.0.a | |
142 | %endif |