]> git.pld-linux.org Git - packages/crossmingw32-atk.git/blob - crossmingw32-atk.spec
- make -j1 install
[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.20.0
6 Release:        1
7 License:        LGPL v2+
8 Group:          Development/Libraries
9 Source0:        http://ftp.gnome.org/pub/GNOME/sources/atk/1.20/%{_realname}-%{version}.tar.bz2
10 # Source0-md5:  b1a9e28d9f54ea306bd85a4c84b25fb8
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.14.1
16 BuildRequires:  libtool >= 2:1.5.16
17 BuildRequires:  perl-base
18 BuildRequires:  pkgconfig >= 1:0.15
19 BuildRequires:  rpmbuild(macros) >= 1.197
20 Requires:       crossmingw32-glib2 >= 2.14.1
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
28 %define         _sysprefix              /usr
29 %define         _prefix                 %{_sysprefix}/%{target}
30 %define         _pkgconfigdir           %{_prefix}/lib/pkgconfig
31 %define         _dlldir                 /usr/share/wine/windows/system
32 %define         __cc                    %{target}-gcc
33 %define         __cxx                   %{target}-g++
34
35 %description
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.
41
42 This package contains the cross version for Win32.
43
44 %description -l pl.UTF-8
45 Biblioteka ATK udostępnia zestaw interfejsów ułatwiających
46 niepełnosprawnym korzystanie z aplikacji i poszczególnych elementów
47 graficznego interfejsu użytkownika. Poprzez wykorzystanie
48 interfejsów ATK, aplikacja lub element interfejsu może być używany
49 z takimi narzędziami jak czytniki ekranu i narzędzia powiększające
50 oraz alternatywnymi urządzeniami wejściowymi.
51
52 Ten pakiet zawiera wersję skrośną dla Win32.
53
54 %package static
55 Summary:        Static atk library (cross mingw32 version)
56 Summary(pl.UTF-8):      Statyczna biblioteka atk (wersja skrośna mingw32)
57 Group:          Development/Libraries
58 Requires:       %{name} = %{version}-%{release}
59
60 %description static
61 Static atk library (cross mingw32 version).
62
63 %description static -l pl.UTF-8
64 Statyczna biblioteka atk (wersja skrośna mingw32).
65
66 %package dll
67 Summary:        DLL atk library for Windows
68 Summary(pl.UTF-8):      Biblioteka DLL atk dla Windows
69 Group:          Applications/Emulators
70 Requires:       crossmingw32-glib2-dll >= 2.14.1
71 Requires:       wine
72
73 %description dll
74 DLL atk library for Windows.
75
76 %description dll -l pl.UTF-8
77 Biblioteka DLL atk dla Windows.
78
79 %prep
80 %setup -q -n %{_realname}-%{version}
81
82 %build
83 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
84 %{__libtoolize}
85 %{__aclocal}
86 %{__autoconf}
87 %{__autoheader}
88 %{__automake}
89 %configure \
90         --target=%{target} \
91         --host=%{target} \
92         --disable-gtk-doc \
93         --enable-static
94
95 %{__make}
96
97 %install
98 rm -rf $RPM_BUILD_ROOT
99
100 %{__make} -j1 install \
101         DESTDIR=$RPM_BUILD_ROOT
102
103 install -d $RPM_BUILD_ROOT%{_dlldir}
104 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
105
106 %if 0%{!?debug:1}
107 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
108 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
109 %endif
110
111 rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc
112 # runtime
113 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
114
115 %clean
116 rm -rf $RPM_BUILD_ROOT
117
118 %files
119 %defattr(644,root,root,755)
120 %doc AUTHORS NEWS README
121 %{_libdir}/libatk-1.0.dll.a
122 %{_libdir}/libatk-1.0.la
123 %{_libdir}/atk-1.0.def
124 %{_includedir}/atk-1.0
125 %{_pkgconfigdir}/atk*
126
127 %files static
128 %defattr(644,root,root,755)
129 %{_libdir}/libatk-1.0.a
130
131 %files dll
132 %defattr(644,root,root,755)
133 %{_dlldir}/libatk-1.0-*.dll
This page took 0.110994 seconds and 3 git commands to generate.