]> git.pld-linux.org Git - packages/crossmingw32-atk.git/blob - crossmingw32-atk.spec
42b3ccbbd1d2827825b708bc467251bdfcc8c72d
[packages/crossmingw32-atk.git] / crossmingw32-atk.spec
1 %define         _realname   atk
2 Summary:        ATK - Accessibility Toolkit - cross Mingw32 version
3 Summary(pl.UTF-8):      ATK - biblioteka ułatwiająca niepełnosprawnym korzystanie z komputerów - wersja skrośna dla Mingw32
4 Name:           crossmingw32-%{_realname}
5 Version:        1.18.0
6 Release:        1
7 License:        LGPL v2+
8 Group:          Development/Libraries
9 Source0:        http://ftp.gnome.org/pub/GNOME/sources/atk/1.18/%{_realname}-%{version}.tar.bz2
10 # Source0-md5:  9fc33ec48fd32933f7f630479dfad667
11 URL:            http://developer.gnome.org/projects/gap/
12 BuildRequires:  autoconf >= 2.54
13 BuildRequires:  automake
14 BuildRequires:  crossmingw32-gcc
15 BuildRequires:  crossmingw32-glib2 >= 2.12.11
16 BuildRequires:  libtool >= 2:1.5.16
17 BuildRequires:  perl-base
18 BuildRequires:  pkgconfig
19 BuildRequires:  rpmbuild(macros) >= 1.197
20 Requires:       crossmingw32-glib2 >= 2.12.11
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %define         no_install_post_strip   1
24
25 %define         target                  i386-mingw32
26 %define         target_platform         i386-pc-mingw32
27 %define         arch                    %{_prefix}/%{target}
28
29 %define         _sysprefix              /usr
30 %define         _prefix                 %{_sysprefix}/%{target}
31 %define         _pkgconfigdir           %{_prefix}/lib/pkgconfig
32 %define         _dlldir                 /usr/share/wine/windows/system
33 %define         __cc                    %{target}-gcc
34 %define         __cxx                   %{target}-g++
35
36 %description
37 The ATK library provides a set of interfaces for adding accessibility
38 support to applications and graphical user interface toolkits. By
39 supporting the ATK interfaces, an application or toolkit can be used
40 as tools such as screen readers and magnifiers, and alternative input
41 devices.
42
43 This package contains the cross version for Win32.
44
45 %description -l pl.UTF-8
46 Biblioteka ATK udostępnia zestaw interfejsów ułatwiających
47 niepełnosprawnym korzystanie z aplikacji i poszczególnych elementów
48 graficznego interfejsu użytkownika. Poprzez wykorzystanie
49 interfejsów ATK, aplikacja lub element interfejsu może być używany
50 z takimi narzędziami jak czytniki ekranu i narzędzia powiększające
51 oraz alternatywnymi urządzeniami wejściowymi.
52
53 Ten pakiet zawiera wersję skrośną dla Win32.
54
55 %package static
56 Summary:        Static atk library (cross mingw32 version)
57 Summary(pl.UTF-8):      Statyczna biblioteka atk (wersja skrośna mingw32)
58 Group:          Development/Libraries
59 Requires:       %{name} = %{version}-%{release}
60
61 %description static
62 Static atk library (cross mingw32 version).
63
64 %description static -l pl.UTF-8
65 Statyczna biblioteka atk (wersja skrośna mingw32).
66
67 %package dll
68 Summary:        DLL atk library for Windows
69 Summary(pl.UTF-8):      Biblioteka DLL atk dla Windows
70 Group:          Applications/Emulators
71 Requires:       crossmingw32-glib2-dll >= 2.12.11
72 Requires:       wine
73
74 %description dll
75 DLL atk library for Windows.
76
77 %description dll -l pl.UTF-8
78 Biblioteka DLL atk dla Windows.
79
80 %prep
81 %setup -q -n %{_realname}-%{version}
82
83 %build
84 export PKG_CONFIG_PATH=%{_prefix}/lib/pkgconfig
85 %{__libtoolize}
86 %{__aclocal}
87 %{__autoconf}
88 %{__autoheader}
89 %{__automake}
90 %configure \
91         --target=%{target} \
92         --host=%{target} \
93         --disable-gtk-doc \
94         --enable-static
95
96 %{__make}
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100
101 %{__make} install \
102         DESTDIR=$RPM_BUILD_ROOT
103
104 install -d $RPM_BUILD_ROOT%{_dlldir}
105 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
106
107 %if 0%{!?debug:1}
108 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
109 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
110 %endif
111
112 rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc
113 # runtime
114 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
115
116 %clean
117 rm -rf $RPM_BUILD_ROOT
118
119 %files
120 %defattr(644,root,root,755)
121 %doc AUTHORS NEWS README
122 %{_libdir}/libatk-1.0.dll.a
123 %{_libdir}/libatk-1.0.la
124 %{_libdir}/atk-1.0.def
125 %{_includedir}/atk-1.0
126 %{_pkgconfigdir}/atk*
127
128 %files static
129 %defattr(644,root,root,755)
130 %{_libdir}/libatk-1.0.a
131
132 %files dll
133 %defattr(644,root,root,755)
134 %{_dlldir}/libatk-1.0-*.dll
This page took 0.072056 seconds and 3 git commands to generate.