]> git.pld-linux.org Git - packages/crossmingw32-atk.git/blame - crossmingw32-atk.spec
- updated to 2.0.1
[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}
7afb24cc 5Version: 2.0.1
7412a699 6Release: 1
7License: LGPL v2+
5a48950d 8Group: Development/Libraries
0ce0ae78 9Source0: http://ftp.gnome.org/pub/GNOME/sources/atk/2.0/%{realname}-%{version}.tar.bz2
7afb24cc 10# Source0-md5: 87f20b78deaedef858ac54358c0786b1
00f642c5 11URL: http://library.gnome.org/devel/atk/
0ce0ae78
JB
12BuildRequires: autoconf >= 2.63
13BuildRequires: automake >= 1:1.10
5a48950d 14BuildRequires: crossmingw32-gcc
62350f6a 15BuildRequires: crossmingw32-glib2 >= 2.20.0
7412a699 16BuildRequires: libtool >= 2:1.5.16
17BuildRequires: perl-base
b5e017bc 18BuildRequires: pkgconfig >= 1:0.15
7412a699 19BuildRequires: rpmbuild(macros) >= 1.197
62350f6a 20Requires: crossmingw32-glib2 >= 2.20.0
7412a699 21BuildRoot: %{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
7412a699 27
28%define _sysprefix /usr
29%define _prefix %{_sysprefix}/%{target}
83f64ac4 30%define _libdir %{_prefix}/lib
7412a699 31%define _pkgconfigdir %{_prefix}/lib/pkgconfig
5a48950d 32%define _dlldir /usr/share/wine/windows/system
7412a699 33%define __cc %{target}-gcc
34%define __cxx %{target}-g++
35
2c1f632c
JB
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
7412a699 43%description
44The ATK library provides a set of interfaces for adding accessibility
45support to applications and graphical user interface toolkits. By
46supporting the ATK interfaces, an application or toolkit can be used
47as tools such as screen readers and magnifiers, and alternative input
48devices.
49
5a48950d
JB
50This package contains the cross version for Win32.
51
7412a699 52%description -l pl.UTF-8
53Biblioteka ATK udostępnia zestaw interfejsów ułatwiających
54niepełnosprawnym korzystanie z aplikacji i poszczególnych elementów
e5c005db
JB
55graficznego interfejsu użytkownika. Poprzez wykorzystanie interfejsów
56ATK, aplikacja lub element interfejsu może być używany z takimi
57narzędziami jak czytniki ekranu i narzędzia powiększające oraz
58alternatywnymi urządzeniami wejściowymi.
7412a699 59
5a48950d
JB
60Ten pakiet zawiera wersję skrośną dla Win32.
61
62%package static
b28b1bf5
JB
63Summary: Static atk library (cross MinGW32 version)
64Summary(pl.UTF-8): Statyczna biblioteka atk (wersja skrośna MinGW32)
5a48950d
JB
65Group: Development/Libraries
66Requires: %{name} = %{version}-%{release}
67
68%description static
b28b1bf5 69Static atk library (cross MinGW32 version).
5a48950d
JB
70
71%description static -l pl.UTF-8
b28b1bf5 72Statyczna biblioteka atk (wersja skrośna MinGW32).
5a48950d
JB
73
74%package dll
75Summary: DLL atk library for Windows
76Summary(pl.UTF-8): Biblioteka DLL atk dla Windows
77Group: Applications/Emulators
62350f6a 78Requires: crossmingw32-glib2-dll >= 2.20.0
5a48950d
JB
79Requires: wine
80
81%description dll
82DLL atk library for Windows.
83
84%description dll -l pl.UTF-8
85Biblioteka DLL atk dla Windows.
7412a699 86
87%prep
83f64ac4 88%setup -q -n %{realname}-%{version}
7412a699 89
90%build
b5e017bc 91export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
7412a699 92%{__libtoolize}
93%{__aclocal}
94%{__autoconf}
95%{__autoheader}
96%{__automake}
97%configure \
7412a699 98 --target=%{target} \
bedcf096 99 --host=%{target} \
100 --disable-gtk-doc \
101 --enable-static
7412a699 102
103%{__make}
104
105%install
106rm -rf $RPM_BUILD_ROOT
107
f8b559df 108%{__make} -j1 install \
7412a699 109 DESTDIR=$RPM_BUILD_ROOT
110
5a48950d
JB
111install -d $RPM_BUILD_ROOT%{_dlldir}
112mv -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
119rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc
120# runtime
121rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
7412a699 122
123%clean
124rm -rf $RPM_BUILD_ROOT
125
5a48950d 126%files
7412a699 127%defattr(644,root,root,755)
128%doc AUTHORS NEWS README
5a48950d
JB
129%{_libdir}/libatk-1.0.dll.a
130%{_libdir}/libatk-1.0.la
131%{_libdir}/atk-1.0.def
132%{_includedir}/atk-1.0
e5c005db 133%{_pkgconfigdir}/atk.pc
5a48950d
JB
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.04734 seconds and 4 git commands to generate.