]> git.pld-linux.org Git - packages/crossmingw32-libglade2.git/blame - crossmingw32-libglade2.spec
- updated from libglade2.spec, drop .la file, release 2
[packages/crossmingw32-libglade2.git] / crossmingw32-libglade2.spec
CommitLineData
e5d51911 1%define realname libglade2
8ac50745 2Summary: libglade library - cross Mingw32 version
1b691058 3Summary(pl.UTF-8): Biblioteka do ładowania definicji interfejsu generowanego programem glade - wersja skrośna dla Mingw32
434c9cf7 4Name: crossmingw32-%{realname}
24ccb17a 5Version: 2.6.4
e5d51911 6Release: 2
434c9cf7 7License: LGPL v2+
1b691058 8Group: Development/Libraries
8ac50745 9Source0: http://ftp.gnome.org/pub/GNOME/sources/libglade/2.6/libglade-%{version}.tar.bz2
24ccb17a 10# Source0-md5: d1776b40f4e166b5e9c107f1c8fe4139
e5d51911
JB
11Patch0: %{realname}-gmodule-link.patch
12Patch1: %{realname}-no-gnome-common.patch
13URL: https://developer.gnome.org/libglade/
8ac50745 14BuildRequires: autoconf >= 2.52
434c9cf7 15BuildRequires: automake >= 1:1.9
8ac50745 16BuildRequires: bison
54aab150 17BuildRequires: crossmingw32-atk >= 1.18.0
8ac50745 18BuildRequires: crossmingw32-gettext
54aab150
JB
19BuildRequires: crossmingw32-gtk+2 >= 2.10.13
20BuildRequires: crossmingw32-libxml2 >= 2.6.29
8ac50745 21BuildRequires: libtool
9a963b5c 22BuildRequires: pkgconfig >= 1:0.15
8ac50745 23BuildRequires: python >= 2.0
24BuildRequires: python-modules >= 2.0
25BuildRequires: rpmbuild(macros) >= 1.197
54aab150
JB
26Requires: crossmingw32-atk >= 1.18.0
27Requires: crossmingw32-gtk+2 >= 2.10.13
28Requires: crossmingw32-libxml2 >= 2.6.29
8ac50745 29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%define no_install_post_strip 1
32
33%define target i386-mingw32
34%define target_platform i386-pc-mingw32
8ac50745 35
36%define _sysprefix /usr
37%define _prefix %{_sysprefix}/%{target}
14a3831f 38%define _libdir %{_prefix}/lib
8ac50745 39%define _pkgconfigdir %{_prefix}/lib/pkgconfig
1b691058 40%define _dlldir /usr/share/wine/windows/system
8ac50745 41%define __cc %{target}-gcc
42%define __cxx %{target}-g++
e5d51911
JB
43%define __pkgconfig_provides %{nil}
44%define __pkgconfig_requires %{nil}
8ac50745 45
e5d51911 46%define _ssp_cflags %{nil}
24ccb17a
JB
47%ifnarch %{ix86}
48# arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
49%define optflags -O2
50%endif
e5d51911 51# -z options are invalid for mingw linker, most of -f options are Linux-specific
24ccb17a 52%define filterout_ld -Wl,-z,.*
e5d51911 53%define filterout_c -f[-a-z0-9=]*
24ccb17a 54
8ac50745 55%description
56This library allows you to load user interfaces in your program, which
57are stored externally. This allows alteration of the interface without
58recompilation of the program. The interfaces can also be edited with
59GLADE.
60
1b691058 61This package contains the cross version for Win32.
8ac50745 62
63%description -l pl.UTF-8
64Biblioteka libglade umożliwia dynamiczne ładowanie definicji
65interfejsu użytkownika generowanego za pomocą programu glade. Taka
66separacja definicji interfejsu umożliwia pracę nad nim bez
67konieczności rekompilacji programu.
68
1b691058
JB
69Ten pakiet zawiera wersję skrośną dla Win32.
70
71%package static
72Summary: Static libglade library (cross mingw32 version)
73Summary(pl.UTF-8): Statyczna biblioteka libglade (wersja skrośna mingw32)
74Group: Development/Libraries
75Requires: %{name} = %{version}-%{release}
76
77%description static
78Static libglade library (cross mingw32 version).
79
80%description static -l pl.UTF-8
81Statyczna biblioteka libglade (wersja skrośna mingw32).
82
83%package dll
84Summary: DLL libglade library for Windows
85Summary(pl.UTF-8): Biblioteka DLL libglade dla Windows
86Group: Applications/Emulators
54aab150
JB
87Requires: crossmingw32-atk-dll >= 1.18.0
88Requires: crossmingw32-gtk+2-dll >= 2.10.13
89Requires: crossmingw32-libxml2-dll >= 2.6.29
1b691058
JB
90Requires: wine
91
92%description dll
93DLL libglade library for Windows.
94
95%description dll -l pl.UTF-8
96Biblioteka DLL libglade dla Windows.
8ac50745 97
98%prep
99%setup -q -n libglade-%{version}
e5d51911
JB
100%patch0 -p1
101%patch1 -p1
8ac50745 102
103%build
9a963b5c 104export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
8ac50745 105%{__libtoolize}
106%{__glib_gettextize}
107%{__aclocal} -I m4
108%{__autoconf}
109%{__automake}
110%configure \
1b691058 111 lt_cv_deplibs_check_method=pass_all \
8ac50745 112 --target=%{target} \
113 --host=%{target} \
114 --disable-gtk-doc
115
8ac50745 116%{__make}
117
118%install
119rm -rf $RPM_BUILD_ROOT
8ac50745 120
e5d51911 121%{__make} -j1 install \
1b691058
JB
122 DESTDIR=$RPM_BUILD_ROOT
123
124install -d $RPM_BUILD_ROOT%{_dlldir}
e5d51911
JB
125%{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
126
127%{__rm} $RPM_BUILD_ROOT%{_libdir}/libglade-*.la
1b691058
JB
128
129%if 0%{!?debug:1}
130%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
131%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
132%endif
8ac50745 133
e5d51911
JB
134%{__rm} $RPM_BUILD_ROOT%{_bindir}/libglade-convert
135%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{gtk-doc,xml}
1a9ff007 136
8ac50745 137%clean
138rm -rf $RPM_BUILD_ROOT
139
140%files
141%defattr(644,root,root,755)
434c9cf7 142%doc AUTHORS ChangeLog NEWS README
1b691058 143%{_libdir}/libglade-2.0.dll.a
1b691058
JB
144%{_pkgconfigdir}/libglade-2.0.pc
145%{_includedir}/libglade-2.0
146
147%files static
148%defattr(644,root,root,755)
149%{_libdir}/libglade-2.0.a
150
151%files dll
152%defattr(644,root,root,755)
e5d51911 153%{_dlldir}/libglade-2.0-0.dll
This page took 0.086205 seconds and 4 git commands to generate.