]>
Commit | Line | Data |
---|---|---|
660f0804 JB |
1 | Summary: System for layout and rendering of internationalized text - cross MinGW32 version |
2 | Summary(pl.UTF-8): System renderowania międzynarodowego tekstu - wersja skrośna dla MinGW32 | |
651dec7a JB |
3 | %define realname pango |
4 | Name: crossmingw32-%{realname} | |
dbe645ce | 5 | Version: 1.34.0 |
1456f3e1 | 6 | Release: 2 |
651dec7a | 7 | License: LGPL v2+ |
7f666847 | 8 | Group: Development/Libraries |
dbe645ce JB |
9 | Source0: http://ftp.gnome.org/pub/GNOME/sources/pango/1.34/%{realname}-%{version}.tar.xz |
10 | # Source0-md5: eb440fc26b383c0be363e1b952ddc71c | |
3f65fa11 | 11 | URL: http://www.pango.org/ |
12 | BuildRequires: autoconf >= 2.59-9 | |
e95b5099 | 13 | BuildRequires: automake >= 1:1.9 |
68a79632 | 14 | BuildRequires: crossmingw32-cairo >= 1.8.0 |
dbe645ce | 15 | BuildRequires: crossmingw32-fontconfig >= 2.10.91 |
3f65fa11 | 16 | BuildRequires: crossmingw32-freetype >= 2.1.7 |
cbb22f57 | 17 | BuildRequires: crossmingw32-gcc |
8eca557b | 18 | BuildRequires: crossmingw32-glib2 >= 2.34.0 |
c6b80997 | 19 | BuildRequires: crossmingw32-harfbuzz >= 0.9.9 |
3f65fa11 | 20 | BuildRequires: libtool >= 1:1.4.2-9 |
21 | BuildRequires: perl-base | |
d933a474 | 22 | BuildRequires: pkgconfig >= 1:0.15 |
3f65fa11 | 23 | BuildRequires: rpmbuild(macros) >= 1.197 |
b9a52437 JB |
24 | BuildRequires: tar >= 1:1.22 |
25 | BuildRequires: xz | |
68a79632 | 26 | Requires: crossmingw32-cairo >= 1.8.0 |
dbe645ce | 27 | Requires: crossmingw32-fontconfig >= 2.10.91 |
3f65fa11 | 28 | Requires: crossmingw32-freetype >= 2.1.7 |
8eca557b | 29 | Requires: crossmingw32-glib2 >= 2.34.0 |
c6b80997 | 30 | Requires: crossmingw32-harfbuzz >= 0.9.9 |
3f65fa11 | 31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %define no_install_post_strip 1 | |
34 | ||
35 | %define target i386-mingw32 | |
36 | %define target_platform i386-pc-mingw32 | |
3f65fa11 | 37 | |
38 | %define _sysprefix /usr | |
39 | %define _prefix %{_sysprefix}/%{target} | |
6ae3ec0b | 40 | %define _libdir %{_prefix}/lib |
3f65fa11 | 41 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig |
7f666847 | 42 | %define _dlldir /usr/share/wine/windows/system |
3f65fa11 | 43 | %define __cc %{target}-gcc |
44 | %define __cxx %{target}-g++ | |
1456f3e1 | 45 | %define __pkgconfig_provides %{nil} |
3f65fa11 | 46 | |
68a79632 JB |
47 | %ifnarch %{ix86} |
48 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
49 | %define optflags -O2 | |
50 | %endif | |
8eca557b | 51 | # -z options are invalid for mingw linker, most of -f options are Linux-specific |
68a79632 | 52 | %define filterout_ld -Wl,-z,.* |
8eca557b | 53 | %define filterout_c -f[-a-z0-9=]* |
68a79632 | 54 | |
3f65fa11 | 55 | %description |
7f666847 | 56 | System for layout and rendering of internationalized text (cross |
660f0804 | 57 | MinGW32 version). |
3f65fa11 | 58 | |
59 | %description -l pl.UTF-8 | |
7f666847 | 60 | System obsługi i renderowania międzynarodowego tekstu (wersja skrośna |
660f0804 | 61 | MinGW32). |
3f65fa11 | 62 | |
7f666847 JB |
63 | %package dll |
64 | Summary: DLL pango libraries for Windows | |
65 | Summary(pl.UTF-8): Biblioteki DLL pango dla Windows | |
66 | Group: Applications/Emulators | |
68a79632 | 67 | Requires: crossmingw32-cairo-dll >= 1.8.0 |
dbe645ce | 68 | Requires: crossmingw32-fontconfig-dll >= 2.10.91 |
7f666847 | 69 | Requires: crossmingw32-freetype-dll >= 2.1.7 |
8eca557b | 70 | Requires: crossmingw32-glib2-dll >= 2.34.0 |
c6b80997 | 71 | Requires: crossmingw32-harfbuzz-dll >= 0.9.9 |
7f666847 JB |
72 | Requires: wine |
73 | ||
74 | %description dll | |
75 | DLL pango libraries for Windows. | |
76 | ||
77 | %description dll -l pl.UTF-8 | |
78 | Biblioteki DLL pango dla Windows. | |
3f65fa11 | 79 | |
80 | %prep | |
651dec7a | 81 | %setup -q -n %{realname}-%{version} |
3f65fa11 | 82 | |
83 | %build | |
23d68763 | 84 | export PKG_CONFIG_LIBDIR=%{_pkgconfigdir} |
3f65fa11 | 85 | %{__libtoolize} |
86 | %{__aclocal} | |
87 | %{__autoheader} | |
88 | %{__autoconf} | |
89 | %{__automake} | |
90 | %configure \ | |
3f65fa11 | 91 | --target=%{target} \ |
a73792eb JB |
92 | --host=%{target} \ |
93 | --disable-silent-rules | |
d58b03b4 | 94 | |
3f65fa11 | 95 | %{__make} |
96 | ||
97 | %install | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
6ae3ec0b JB |
100 | # missing from make install but required by it |
101 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/pango | |
102 | ||
bf8c422a | 103 | %{__make} -j1 install \ |
7f666847 | 104 | DESTDIR=$RPM_BUILD_ROOT |
3f65fa11 | 105 | |
7f666847 JB |
106 | install -d $RPM_BUILD_ROOT%{_dlldir} |
107 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
3f65fa11 | 108 | |
8eca557b JB |
109 | # omitted from make install |
110 | for f in pango pangocairo pangoft2 pangowin32 ; do | |
111 | cp -p pango/${f}.def $RPM_BUILD_ROOT%{_libdir}/${f}-1.0.def | |
112 | done | |
113 | ||
7f666847 JB |
114 | %if 0%{!?debug:1} |
115 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
116 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
117 | %endif | |
118 | ||
8eca557b | 119 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{gtk-doc,man} |
3f65fa11 | 120 | # useless (modules loaded through libgmodule) |
8eca557b | 121 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/pango/1.8.0/modules/*.{la,a} |
3f65fa11 | 122 | |
123 | %clean | |
124 | rm -rf $RPM_BUILD_ROOT | |
125 | ||
126 | %files | |
127 | %defattr(644,root,root,755) | |
d58b03b4 | 128 | %doc AUTHORS NEWS README |
6ae3ec0b JB |
129 | %{_libdir}/libpango-1.0.dll.a |
130 | %{_libdir}/libpangocairo-1.0.dll.a | |
131 | %{_libdir}/libpangoft2-1.0.dll.a | |
132 | %{_libdir}/libpangowin32-1.0.dll.a | |
133 | %{_libdir}/libpango-1.0.la | |
134 | %{_libdir}/libpangocairo-1.0.la | |
135 | %{_libdir}/libpangoft2-1.0.la | |
136 | %{_libdir}/libpangowin32-1.0.la | |
137 | %{_libdir}/pango-1.0.def | |
138 | %{_libdir}/pangocairo-1.0.def | |
139 | %{_libdir}/pangoft2-1.0.def | |
140 | %{_libdir}/pangowin32-1.0.def | |
7f666847 | 141 | %{_includedir}/pango-1.0 |
6ae3ec0b JB |
142 | %{_pkgconfigdir}/pango.pc |
143 | %{_pkgconfigdir}/pangocairo.pc | |
144 | %{_pkgconfigdir}/pangoft2.pc | |
145 | %{_pkgconfigdir}/pangowin32.pc | |
7f666847 JB |
146 | |
147 | %files dll | |
148 | %defattr(644,root,root,755) | |
6ae3ec0b JB |
149 | %{_dlldir}/libpango-1.0-*.dll |
150 | %{_dlldir}/libpangocairo-1.0-*.dll | |
151 | %{_dlldir}/libpangoft2-1.0-*.dll | |
152 | %{_dlldir}/libpangowin32-1.0-*.dll | |
a73792eb | 153 | %dir %{_libdir}/pango |
8eca557b JB |
154 | %dir %{_libdir}/pango/1.8.0 |
155 | %dir %{_libdir}/pango/1.8.0/modules | |
156 | %{_libdir}/pango/1.8.0/modules/*.dll |