1 %define _realname libglade2
2 Summary: libglade library - cross Mingw32 version
3 Summary(pl.UTF-8): Biblioteka do ładowania definicji interfejsu generowanego programem glade - wersja skrośna dla Mingw32
4 Name: crossmingw32-%{_realname}
8 Group: Development/Libraries
9 Source0: http://ftp.gnome.org/pub/GNOME/sources/libglade/2.6/libglade-%{version}.tar.bz2
10 # Source0-md5: 489be887b26b9973f77e2c6111ab7d5a
11 URL: http://www.gnome.org/
12 BuildRequires: autoconf >= 2.52
13 BuildRequires: automake
15 BuildRequires: crossmingw32-atk >= 1.18.0
16 BuildRequires: crossmingw32-gettext
17 BuildRequires: crossmingw32-gtk+2 >= 2.10.13
18 BuildRequires: crossmingw32-libxml2 >= 2.6.29
19 BuildRequires: libtool
20 BuildRequires: pkgconfig
21 BuildRequires: python >= 2.0
22 BuildRequires: python-modules >= 2.0
23 BuildRequires: rpmbuild(macros) >= 1.197
24 Requires: crossmingw32-atk >= 1.18.0
25 Requires: crossmingw32-gtk+2 >= 2.10.13
26 Requires: crossmingw32-libxml2 >= 2.6.29
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %define no_install_post_strip 1
31 %define target i386-mingw32
32 %define target_platform i386-pc-mingw32
33 %define arch %{_prefix}/%{target}
35 %define _sysprefix /usr
36 %define _prefix %{_sysprefix}/%{target}
37 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
38 %define _dlldir /usr/share/wine/windows/system
39 %define __cc %{target}-gcc
40 %define __cxx %{target}-g++
43 This library allows you to load user interfaces in your program, which
44 are stored externally. This allows alteration of the interface without
45 recompilation of the program. The interfaces can also be edited with
48 This package contains the cross version for Win32.
50 %description -l pl.UTF-8
51 Biblioteka libglade umożliwia dynamiczne ładowanie definicji
52 interfejsu użytkownika generowanego za pomocą programu glade. Taka
53 separacja definicji interfejsu umożliwia pracę nad nim bez
54 konieczności rekompilacji programu.
56 Ten pakiet zawiera wersję skrośną dla Win32.
59 Summary: Static libglade library (cross mingw32 version)
60 Summary(pl.UTF-8): Statyczna biblioteka libglade (wersja skrośna mingw32)
61 Group: Development/Libraries
62 Requires: %{name} = %{version}-%{release}
65 Static libglade library (cross mingw32 version).
67 %description static -l pl.UTF-8
68 Statyczna biblioteka libglade (wersja skrośna mingw32).
71 Summary: DLL libglade library for Windows
72 Summary(pl.UTF-8): Biblioteka DLL libglade dla Windows
73 Group: Applications/Emulators
74 Requires: crossmingw32-atk-dll >= 1.18.0
75 Requires: crossmingw32-gtk+2-dll >= 2.10.13
76 Requires: crossmingw32-libxml2-dll >= 2.6.29
80 DLL libglade library for Windows.
82 %description dll -l pl.UTF-8
83 Biblioteka DLL libglade dla Windows.
86 %setup -q -n libglade-%{version}
88 # ensure to remove workaround below when obsolete
89 grep -q glade_xml_construct_from_buffer glade/glade.def && exit 1
91 echo -e '\tglade_xml_construct_from_buffer' >> glade/glade.def
94 export PKG_CONFIG_PATH=%{_prefix}/lib/pkgconfig
101 lt_cv_deplibs_check_method=pass_all \
109 rm -rf $RPM_BUILD_ROOT
110 install -d $RPM_BUILD_ROOT%{_libdir}/libglade/2.0
113 DESTDIR=$RPM_BUILD_ROOT
115 install -d $RPM_BUILD_ROOT%{_dlldir}
116 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
119 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
120 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
123 rm -rf $RPM_BUILD_ROOT%{_datadir}/{gtk-doc,xml}
126 rm -rf $RPM_BUILD_ROOT
129 %defattr(644,root,root,755)
130 %doc AUTHORS NEWS README
131 %{_libdir}/libglade-2.0.dll.a
132 %{_libdir}/libglade-2.0.la
133 %{_pkgconfigdir}/libglade-2.0.pc
134 %{_includedir}/libglade-2.0
137 %defattr(644,root,root,755)
138 %{_libdir}/libglade-2.0.a
141 %defattr(644,root,root,755)
142 %{_dlldir}/libglade-2.0-*.dll