]> git.pld-linux.org Git - packages/crossmingw32-gtk+2.git/blob - crossmingw32-gtk+2.spec
- 2.12.1
[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.1
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:  c46f34addc2fe3ea6756055d59fb8856
10 Patch0:         %{name}-libtool.patch
11 URL:            http://www.gtk.org/
12 BuildRequires:  crossmingw32-atk >= 1.20.0
13 BuildRequires:  crossmingw32-gcc
14 BuildRequires:  crossmingw32-glib2 >= 2.14.0
15 BuildRequires:  crossmingw32-libjpeg
16 BuildRequires:  crossmingw32-libpng
17 BuildRequires:  crossmingw32-libtiff
18 BuildRequires:  crossmingw32-pango >= 1.18.1
19 BuildRequires:  pkgconfig >= 1:0.15
20 Requires:       crossmingw32-atk >= 1.20.0
21 Requires:       crossmingw32-glib2 >= 2.14.0
22 Requires:       crossmingw32-pango >= 1.18.1
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         _pkgconfigdir           %{_prefix}/lib/pkgconfig
35 %define         _dlldir                 /usr/share/wine/windows/system
36 %define         __cc                    %{target}-gcc
37 %define         __cxx                   %{target}-g++
38
39 %define         filterout_ld            (-Wl,)?-as-needed.*
40
41 %description
42 GTK+, which stands for the Gimp ToolKit, is a library for creating
43 graphical user interfaces for the X Window System. It is designed to
44 be small, efficient, and flexible. GTK+ is written in C with a very
45 object-oriented approach. GDK (part of GTK+) is a drawing toolkit
46 which provides a thin layer over Xlib to help automate things like
47 dealing with different color depths, and GTK is a widget set for
48 creating user interfaces.
49
50 This package contains the cross version for Win32.
51
52 %description -l pl.UTF-8
53 GTK+, która to biblioteka stała się podstawą programu Gimp, zawiera
54 funkcje do tworzenia graficznego interfejsu użytkownika pod X Window.
55 Była tworzona z założeniem żeby była mała, efektywna i wygodna. GTK+
56 jest napisane w C z podejściem zorientowanym bardzo obiektowo. GDK
57 (część GTK+) jest warstwą pośrednią pomiędzy Xlib i resztą toolkitu
58 zapewniającą pracę niezależnie od głębi koloru (ilości bitów na
59 piksel). GTK (druga część GTK+) jest natomiast już zbiorem różnego
60 rodzaju kontrolek służących do tworzenia interfejsu użytkownika.
61
62 Ten pakiet zawiera wersję skrośną dla Win32.
63
64 %package dll
65 Summary:        DLL GTK+ libraries for Windows
66 Summary(pl.UTF-8):      Biblioteki DLL GTK+ dla Windows
67 Group:          Applications/Emulators
68 Requires:       crossmingw32-atk-dll >= 1.20.0
69 Requires:       crossmingw32-glib2-dll >= 2.14.0
70 Requires:       crossmingw32-pango-dll >= 1.18.1
71 Requires:       wine
72
73 %description dll
74 DLL GTK+ libraries for Windows.
75
76 %description dll -l pl.UTF-8
77 Biblioteki DLL GTK+ dla Windows.
78
79 %prep
80 %setup -q -n gtk+-%{version}
81 %patch0 -p1
82
83 %build
84 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
85 %{__libtoolize}
86 %{__aclocal}
87 %{__autoheader}
88 %{__autoconf}
89 %{__automake}
90 %configure \
91         ac_cv_path_CUPS_CONFIG=no \
92         --target=%{target} \
93         --host=%{target} \
94         --disable-gtk-doc \
95         --disable-man \
96         --disable-modules \
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.*/*/*.{a,la}
122
123 %clean
124 rm -rf $RPM_BUILD_ROOT
125
126 %files
127 %defattr(644,root,root,755)
128 %{_libdir}/libg[dt]k*.dll.a
129 %{_libdir}/libg[dt]k*.la
130 %{_libdir}/g[dt]k*.def
131 %dir %{_libdir}/gtk-2.0
132 %{_libdir}/gtk-2.0/include
133 %{_includedir}/gtk-2.0
134 %{_includedir}/gtk-unix-print-2.0
135 %{_pkgconfigdir}/*.pc
136
137 %files dll
138 %defattr(644,root,root,755)
139 %{_dlldir}/libg[dt]k*.dll
This page took 0.07652 seconds and 4 git commands to generate.