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