]> git.pld-linux.org Git - packages/crossmingw32-atk.git/blob - crossmingw32-atk.spec
- updated to 2.0.1
[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:        2.0.1
6 Release:        1
7 License:        LGPL v2+
8 Group:          Development/Libraries
9 Source0:        http://ftp.gnome.org/pub/GNOME/sources/atk/2.0/%{realname}-%{version}.tar.bz2
10 # Source0-md5:  87f20b78deaedef858ac54358c0786b1
11 URL:            http://library.gnome.org/devel/atk/
12 BuildRequires:  autoconf >= 2.63
13 BuildRequires:  automake >= 1:1.10
14 BuildRequires:  crossmingw32-gcc
15 BuildRequires:  crossmingw32-glib2 >= 2.20.0
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.20.0
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         _libdir                 %{_prefix}/lib
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 %ifnarch %{ix86}
37 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
38 %define         optflags        -O2
39 %endif
40 # -z options are invalid for mingw linker
41 %define         filterout_ld    -Wl,-z,.*
42
43 %description
44 The ATK library provides a set of interfaces for adding accessibility
45 support to applications and graphical user interface toolkits. By
46 supporting the ATK interfaces, an application or toolkit can be used
47 as tools such as screen readers and magnifiers, and alternative input
48 devices.
49
50 This package contains the cross version for Win32.
51
52 %description -l pl.UTF-8
53 Biblioteka ATK udostępnia zestaw interfejsów ułatwiających
54 niepełnosprawnym korzystanie z aplikacji i poszczególnych elementów
55 graficznego interfejsu użytkownika. Poprzez wykorzystanie interfejsów
56 ATK, aplikacja lub element interfejsu może być używany z takimi
57 narzędziami jak czytniki ekranu i narzędzia powiększające oraz
58 alternatywnymi urządzeniami wejściowymi.
59
60 Ten pakiet zawiera wersję skrośną dla Win32.
61
62 %package static
63 Summary:        Static atk library (cross MinGW32 version)
64 Summary(pl.UTF-8):      Statyczna biblioteka atk (wersja skrośna MinGW32)
65 Group:          Development/Libraries
66 Requires:       %{name} = %{version}-%{release}
67
68 %description static
69 Static atk library (cross MinGW32 version).
70
71 %description static -l pl.UTF-8
72 Statyczna biblioteka atk (wersja skrośna MinGW32).
73
74 %package dll
75 Summary:        DLL atk library for Windows
76 Summary(pl.UTF-8):      Biblioteka DLL atk dla Windows
77 Group:          Applications/Emulators
78 Requires:       crossmingw32-glib2-dll >= 2.20.0
79 Requires:       wine
80
81 %description dll
82 DLL atk library for Windows.
83
84 %description dll -l pl.UTF-8
85 Biblioteka DLL atk dla Windows.
86
87 %prep
88 %setup -q -n %{realname}-%{version}
89
90 %build
91 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
92 %{__libtoolize}
93 %{__aclocal}
94 %{__autoconf}
95 %{__autoheader}
96 %{__automake}
97 %configure \
98         --target=%{target} \
99         --host=%{target} \
100         --disable-gtk-doc \
101         --enable-static
102
103 %{__make}
104
105 %install
106 rm -rf $RPM_BUILD_ROOT
107
108 %{__make} -j1 install \
109         DESTDIR=$RPM_BUILD_ROOT
110
111 install -d $RPM_BUILD_ROOT%{_dlldir}
112 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
113
114 %if 0%{!?debug:1}
115 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
116 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
117 %endif
118
119 rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc
120 # runtime
121 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
122
123 %clean
124 rm -rf $RPM_BUILD_ROOT
125
126 %files
127 %defattr(644,root,root,755)
128 %doc AUTHORS NEWS README
129 %{_libdir}/libatk-1.0.dll.a
130 %{_libdir}/libatk-1.0.la
131 %{_libdir}/atk-1.0.def
132 %{_includedir}/atk-1.0
133 %{_pkgconfigdir}/atk.pc
134
135 %files static
136 %defattr(644,root,root,755)
137 %{_libdir}/libatk-1.0.a
138
139 %files dll
140 %defattr(644,root,root,755)
141 %{_dlldir}/libatk-1.0-*.dll
This page took 0.055307 seconds and 3 git commands to generate.