]>
Commit | Line | Data |
---|---|---|
d12a0496 JB |
1 | Summary: A C++ interface for pango library - cross MinGW32 version |
2 | Summary(pl.UTF-8): Interfejs C++ dla biblioteki pango - wersja skrośna MinGW32 | |
7ef93766 | 3 | Name: crossmingw32-pangomm |
b684277f | 4 | Version: 2.28.0 |
7ef93766 JB |
5 | Release: 1 |
6 | License: LGPL v2+ | |
7 | Group: Development/Libraries | |
b684277f JB |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/pangomm/2.28/pangomm-%{version}.tar.bz2 |
9 | # Source0-md5: 524c3c7da1c0b728970592880af36def | |
7ef93766 JB |
10 | URL: http://www.gtkmm.org/ |
11 | BuildRequires: autoconf >= 2.59 | |
b684277f | 12 | BuildRequires: automake >= 1:1.11 |
7ef93766 JB |
13 | BuildRequires: crossmingw32-cairomm >= 1.6.3 |
14 | BuildRequires: crossmingw32-gcc-c++ | |
d12a0496 | 15 | BuildRequires: crossmingw32-glibmm >= 2.22.0 |
b5bb7627 | 16 | BuildRequires: crossmingw32-pango >= 1.24.0 |
7ef93766 | 17 | BuildRequires: libtool >= 2:1.5 |
b684277f | 18 | BuildRequires: mm-common >= 0.9.4 |
7ef93766 | 19 | BuildRequires: pkgconfig >= 1:0.15 |
b684277f | 20 | BuildRequires: rpmbuild(macros) >= 1.446 |
7ef93766 JB |
21 | Requires: crossmingw32-cairomm >= 1.6.3 |
22 | Requires: crossmingw32-glibmm >= 2.16.0 | |
b5bb7627 | 23 | Requires: crossmingw32-pango >= 1.24.0 |
7ef93766 JB |
24 | Provides: crossmingw32-gtkmm-pango |
25 | Obsoletes: crossmingw32-gtkmm-pango | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %define no_install_post_strip 1 | |
29 | ||
30 | %define target i386-mingw32 | |
31 | %define target_platform i386-pc-mingw32 | |
32 | ||
33 | %define _sysprefix /usr | |
34 | %define _prefix %{_sysprefix}/%{target} | |
35 | %define _libdir %{_prefix}/lib | |
36 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig | |
37 | %define _dlldir /usr/share/wine/windows/system | |
38 | %define __cc %{target}-gcc | |
39 | %define __cxx %{target}-g++ | |
40 | ||
41 | %ifnarch %{ix86} | |
42 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
43 | %define optflags -O2 | |
44 | %endif | |
45 | # -z options are invalid for mingw linker | |
46 | %define filterout_ld -Wl,-z,.* | |
47 | ||
48 | %description | |
d12a0496 | 49 | A C++ interface for pango library - cross MinGW32 version. |
7ef93766 JB |
50 | |
51 | %description -l pl.UTF-8 | |
d12a0496 | 52 | Interfejs C++ dla biblioteki pango - wersja skrośna MinGW32. |
7ef93766 JB |
53 | |
54 | %package static | |
d12a0496 JB |
55 | Summary: Static pangomm library (cross MinGW32 version) |
56 | Summary(pl.UTF-8): Statyczna biblioteka pangomm (wersja skrośna MinGW32) | |
7ef93766 JB |
57 | Group: Development/Libraries |
58 | Requires: %{name} = %{version}-%{release} | |
59 | Provides: crossmingw32-gtkmm-pango-static | |
60 | Obsoletes: crossmingw32-gtkmm-pango-static | |
61 | ||
62 | %description static | |
d12a0496 | 63 | Static pangomm library (cross MinGW32 version). |
7ef93766 JB |
64 | |
65 | %description static -l pl.UTF-8 | |
d12a0496 | 66 | Statyczna biblioteka pangomm (wersja skrośna MinGW32). |
7ef93766 JB |
67 | |
68 | %package dll | |
69 | Summary: DLL pangomm library for Windows | |
70 | Summary(pl.UTF-8): Biblioteka DLL pangomm dla Windows | |
71 | Group: Applications/Emulators | |
72 | Requires: crossmingw32-cairomm-dll >= 1.6.3 | |
73 | Requires: crossmingw32-glibmm-dll >= 2.16.0 | |
b5bb7627 | 74 | Requires: crossmingw32-pango-dll >= 1.24.0 |
7ef93766 JB |
75 | Requires: wine |
76 | Provides: crossmingw32-gtkmm-pango-dll | |
77 | Obsoletes: crossmingw32-gtkmm-pango-dll | |
78 | ||
79 | %description dll | |
80 | DLL pangomm library for Windows. | |
81 | ||
82 | %description dll -l pl.UTF-8 | |
83 | Biblioteka DLL pangomm dla Windows. | |
84 | ||
85 | %prep | |
86 | %setup -q -n pangomm-%{version} | |
87 | ||
88 | %build | |
b684277f | 89 | export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig:%{_npkgconfigdir} |
7ef93766 | 90 | %{__libtoolize} |
aa1fb165 | 91 | %{__aclocal} -I build |
7ef93766 JB |
92 | %{__autoconf} |
93 | %{__autoheader} | |
94 | %{__automake} | |
95 | %configure \ | |
96 | --target=%{target} \ | |
97 | --host=%{target} \ | |
aa1fb165 | 98 | --disable-documentation \ |
7ef93766 JB |
99 | --enable-static |
100 | ||
101 | %{__make} | |
102 | ||
103 | %install | |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %{__make} install \ | |
107 | DESTDIR=$RPM_BUILD_ROOT | |
108 | ||
109 | install -d $RPM_BUILD_ROOT%{_dlldir} | |
110 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
111 | ||
112 | %if 0%{!?debug:1} | |
113 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
114 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
115 | %endif | |
116 | ||
117 | %clean | |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
120 | %files | |
121 | %defattr(644,root,root,755) | |
122 | %doc AUTHORS ChangeLog NEWS README | |
123 | %{_libdir}/libpangomm-1.4.dll.a | |
124 | %{_libdir}/libpangomm-1.4.la | |
125 | %{_libdir}/pangomm-1.4 | |
126 | %{_includedir}/pangomm-1.4 | |
127 | %{_pkgconfigdir}/pangomm-1.4.pc | |
128 | ||
129 | %files static | |
130 | %defattr(644,root,root,755) | |
131 | %{_libdir}/libpangomm-1.4.a | |
132 | ||
133 | %files dll | |
134 | %defattr(644,root,root,755) | |
135 | %{_dlldir}/libpangomm-1.4-*.dll |