]> git.pld-linux.org Git - packages/crossmingw32-gtk+2.git/blob - crossmingw32-gtk+2.spec
- updated to 2.12.2
[packages/crossmingw32-gtk+2.git] / crossmingw32-gtk+2.spec
1 Summary:        The Gimp Toolkit - Ming32 cross version
2 Summary(pl.UTF-8):      Gimp Toolkit - wersja skrośna dla Ming32
3 Name:           crossmingw32-gtk+2
4 Version:        2.12.2
5 Release:        1
6 License:        LGPL v2+
7 Group:          Development/Libraries
8 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.12/gtk+-%{version}.tar.bz2
9 # Source0-md5:  a789a8a333d418f47cda1dba106d9aac
10 URL:            http://www.gtk.org/
11 BuildRequires:  crossmingw32-atk >= 1.20.0
12 BuildRequires:  crossmingw32-gcc
13 BuildRequires:  crossmingw32-glib2 >= 2.14.2
14 BuildRequires:  crossmingw32-libjpeg
15 BuildRequires:  crossmingw32-libpng
16 BuildRequires:  crossmingw32-libtiff
17 BuildRequires:  crossmingw32-pango >= 1.18.3
18 BuildRequires:  pkgconfig >= 1:0.15
19 Requires:       crossmingw32-atk >= 1.20.0
20 Requires:       crossmingw32-glib2 >= 2.14.2
21 Requires:       crossmingw32-pango >= 1.18.3
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %define         abivers 2.10.0
25
26 %define         no_install_post_strip   1
27
28 %define         target                  i386-mingw32
29 %define         target_platform         i386-pc-mingw32
30
31 %define         _sysprefix              /usr
32 %define         _prefix                 %{_sysprefix}/%{target}
33 %define         _pkgconfigdir           %{_prefix}/lib/pkgconfig
34 %define         _dlldir                 /usr/share/wine/windows/system
35 %define         __cc                    %{target}-gcc
36 %define         __cxx                   %{target}-g++
37
38 %define         filterout_ld            (-Wl,)?-as-needed.*
39
40 %description
41 GTK+, which stands for the Gimp ToolKit, is a library for creating
42 graphical user interfaces for the X Window System. It is designed to
43 be small, efficient, and flexible. GTK+ is written in C with a very
44 object-oriented approach. GDK (part of GTK+) is a drawing toolkit
45 which provides a thin layer over Xlib to help automate things like
46 dealing with different color depths, and GTK is a widget set for
47 creating user interfaces.
48
49 This package contains the cross version for Win32.
50
51 %description -l pl.UTF-8
52 GTK+, która to biblioteka stała się podstawą programu Gimp, zawiera
53 funkcje do tworzenia graficznego interfejsu użytkownika pod X Window.
54 Była tworzona z założeniem żeby była mała, efektywna i wygodna. GTK+
55 jest napisane w C z podejściem zorientowanym bardzo obiektowo. GDK
56 (część GTK+) jest warstwą pośrednią pomiędzy Xlib i resztą toolkitu
57 zapewniającą pracę niezależnie od głębi koloru (ilości bitów na
58 piksel). GTK (druga część GTK+) jest natomiast już zbiorem różnego
59 rodzaju kontrolek służących do tworzenia interfejsu użytkownika.
60
61 Ten pakiet zawiera wersję skrośną dla Win32.
62
63 %package dll
64 Summary:        DLL GTK+ libraries for Windows
65 Summary(pl.UTF-8):      Biblioteki DLL GTK+ dla Windows
66 Group:          Applications/Emulators
67 Requires:       crossmingw32-atk-dll >= 1.20.0
68 Requires:       crossmingw32-glib2-dll >= 2.14.2
69 Requires:       crossmingw32-pango-dll >= 1.18.3
70 Requires:       wine
71
72 %description dll
73 DLL GTK+ libraries for Windows.
74
75 %description dll -l pl.UTF-8
76 Biblioteki DLL GTK+ dla Windows.
77
78 %prep
79 %setup -q -n gtk+-%{version}
80
81 %build
82 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
83 %{__libtoolize}
84 %{__aclocal}
85 %{__autoheader}
86 %{__autoconf}
87 %{__automake}
88 %configure \
89         ac_cv_path_CUPS_CONFIG=no \
90         --target=%{target} \
91         --host=%{target} \
92         --disable-gtk-doc \
93         --disable-man \
94         --disable-xkb \
95         --with-gdk-target=win32 \
96         --without-x \
97         --without-xinput
98
99 %{__make}
100
101 %install
102 rm -rf $RPM_BUILD_ROOT
103
104 %{__make} install \
105         DESTDIR=$RPM_BUILD_ROOT
106
107 install -d $RPM_BUILD_ROOT%{_dlldir}
108 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
109
110 %if 0%{!?debug:1}
111 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
112 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
113 %endif
114
115 # remove unsupported locale scheme
116 rm -rf $RPM_BUILD_ROOT%{_datadir}/{aclocal,gtk-2.0,gtk-doc,locale,man,themes}
117 # shut up check-files (static modules and *.la for modules)
118 rm -rf $RPM_BUILD_ROOT%{_libdir}/gtk-*/2.*/*/*.{a,la}
119
120 %clean
121 rm -rf $RPM_BUILD_ROOT
122
123 %files
124 %defattr(644,root,root,755)
125 %{_libdir}/libg[dt]k*.dll.a
126 %{_libdir}/libg[dt]k*.la
127 %{_libdir}/g[dt]k*.def
128 %dir %{_libdir}/gtk-2.0
129 %{_libdir}/gtk-2.0/include
130 %{_includedir}/gtk-2.0
131 %{_includedir}/gtk-unix-print-2.0
132 %{_pkgconfigdir}/*.pc
133
134 %files dll
135 %defattr(644,root,root,755)
136 %{_dlldir}/libg[dt]k*.dll
This page took 0.042746 seconds and 4 git commands to generate.