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