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