]> git.pld-linux.org Git - packages/crossmingw32-atk.git/blame - crossmingw32-atk.spec
- x32 rebuild
[packages/crossmingw32-atk.git] / crossmingw32-atk.spec
CommitLineData
83f64ac4 1%define realname atk
b28b1bf5
JB
2Summary: ATK - Accessibility Toolkit - cross MinGW32 version
3Summary(pl.UTF-8): ATK - biblioteka ułatwiająca niepełnosprawnym korzystanie z komputerów - wersja skrośna dla MinGW32
83f64ac4 4Name: crossmingw32-%{realname}
dd8df6f6 5Version: 2.16.0
17b240f0 6Release: 2
7412a699 7License: LGPL v2+
5a48950d 8Group: Development/Libraries
dd8df6f6
JB
9Source0: http://ftp.gnome.org/pub/GNOME/sources/atk/2.16/%{realname}-%{version}.tar.xz
10# Source0-md5: c7c5002bd6e58b4723a165f1bf312116
e64e4001 11URL: https://developer.gnome.org/atk/
0ce0ae78
JB
12BuildRequires: autoconf >= 2.63
13BuildRequires: automake >= 1:1.10
5a48950d 14BuildRequires: crossmingw32-gcc
75a76f18 15BuildRequires: crossmingw32-glib2 >= 2.32.0
cd45d277 16BuildRequires: libtool >= 2:2.2
7412a699 17BuildRequires: perl-base
b5e017bc 18BuildRequires: pkgconfig >= 1:0.15
dd8df6f6 19BuildRequires: python >= 1:2.5
7412a699 20BuildRequires: rpmbuild(macros) >= 1.197
cd45d277
JB
21BuildRequires: tar >= 1:1.22
22BuildRequires: xz
75a76f18 23Requires: crossmingw32-glib2 >= 2.32.0
7412a699 24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%define no_install_post_strip 1
27
28%define target i386-mingw32
29%define target_platform i386-pc-mingw32
7412a699 30
31%define _sysprefix /usr
32%define _prefix %{_sysprefix}/%{target}
83f64ac4 33%define _libdir %{_prefix}/lib
7412a699 34%define _pkgconfigdir %{_prefix}/lib/pkgconfig
5a48950d 35%define _dlldir /usr/share/wine/windows/system
7412a699 36%define __cc %{target}-gcc
37%define __cxx %{target}-g++
e0548e4b 38%define __pkgconfig_provides %{nil}
bd7db0ee 39%define __pkgconfig_requires %{nil}
7412a699 40
2c1f632c
JB
41%ifnarch %{ix86}
42# arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
43%define optflags -O2
44%endif
e6ed5599 45# -z options are invalid for mingw linker, most of -f options are Linux-specific
2c1f632c 46%define filterout_ld -Wl,-z,.*
e6ed5599 47%define filterout_c -f[-a-z0-9=]*
2c1f632c 48
7412a699 49%description
50The ATK library provides a set of interfaces for adding accessibility
51support to applications and graphical user interface toolkits. By
52supporting the ATK interfaces, an application or toolkit can be used
53as tools such as screen readers and magnifiers, and alternative input
54devices.
55
5a48950d
JB
56This package contains the cross version for Win32.
57
7412a699 58%description -l pl.UTF-8
59Biblioteka ATK udostępnia zestaw interfejsów ułatwiających
60niepełnosprawnym korzystanie z aplikacji i poszczególnych elementów
e5c005db
JB
61graficznego interfejsu użytkownika. Poprzez wykorzystanie interfejsów
62ATK, aplikacja lub element interfejsu może być używany z takimi
63narzędziami jak czytniki ekranu i narzędzia powiększające oraz
64alternatywnymi urządzeniami wejściowymi.
7412a699 65
5a48950d
JB
66Ten pakiet zawiera wersję skrośną dla Win32.
67
68%package static
b28b1bf5
JB
69Summary: Static atk library (cross MinGW32 version)
70Summary(pl.UTF-8): Statyczna biblioteka atk (wersja skrośna MinGW32)
5a48950d
JB
71Group: Development/Libraries
72Requires: %{name} = %{version}-%{release}
73
74%description static
b28b1bf5 75Static atk library (cross MinGW32 version).
5a48950d
JB
76
77%description static -l pl.UTF-8
b28b1bf5 78Statyczna biblioteka atk (wersja skrośna MinGW32).
5a48950d
JB
79
80%package dll
81Summary: DLL atk library for Windows
82Summary(pl.UTF-8): Biblioteka DLL atk dla Windows
83Group: Applications/Emulators
75a76f18 84Requires: crossmingw32-glib2-dll >= 2.32.0
5a48950d
JB
85Requires: wine
86
87%description dll
88DLL atk library for Windows.
89
90%description dll -l pl.UTF-8
91Biblioteka DLL atk dla Windows.
7412a699 92
93%prep
83f64ac4 94%setup -q -n %{realname}-%{version}
7412a699 95
96%build
b5e017bc 97export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
7412a699 98%{__libtoolize}
99%{__aclocal}
100%{__autoconf}
101%{__autoheader}
102%{__automake}
103%configure \
7412a699 104 --target=%{target} \
bedcf096 105 --host=%{target} \
106 --disable-gtk-doc \
cd45d277 107 --disable-silent-rules \
bedcf096 108 --enable-static
7412a699 109
110%{__make}
111
112%install
113rm -rf $RPM_BUILD_ROOT
114
f8b559df 115%{__make} -j1 install \
7412a699 116 DESTDIR=$RPM_BUILD_ROOT
117
5a48950d
JB
118install -d $RPM_BUILD_ROOT%{_dlldir}
119mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
120
121%if 0%{!?debug:1}
122%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
123%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
124%endif
125
cd45d277 126%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/gtk-doc
5a48950d 127# runtime
cd45d277 128%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale
7412a699 129
130%clean
131rm -rf $RPM_BUILD_ROOT
132
5a48950d 133%files
7412a699 134%defattr(644,root,root,755)
135%doc AUTHORS NEWS README
5a48950d
JB
136%{_libdir}/libatk-1.0.dll.a
137%{_libdir}/libatk-1.0.la
5a48950d 138%{_includedir}/atk-1.0
e5c005db 139%{_pkgconfigdir}/atk.pc
5a48950d
JB
140
141%files static
142%defattr(644,root,root,755)
143%{_libdir}/libatk-1.0.a
144
145%files dll
146%defattr(644,root,root,755)
147%{_dlldir}/libatk-1.0-*.dll
This page took 1.129909 seconds and 4 git commands to generate.