]> git.pld-linux.org Git - packages/crossmingw32-pango.git/blame - crossmingw32-pango.spec
- BR: cross gcc
[packages/crossmingw32-pango.git] / crossmingw32-pango.spec
CommitLineData
3f65fa11 1Summary: System for layout and rendering of internationalized text - cross Mingw32 version
7f666847 2Summary(pl.UTF-8): System renderowania międzynarodowego tekstu - wersja skrośna dla Mingw32
d58b03b4 3%define _realname pango
3f65fa11 4Name: crossmingw32-%{_realname}
7f666847 5Version: 1.16.0
3f65fa11 6Release: 1
7License: LGPL
7f666847
JB
8Group: Development/Libraries
9Source0: http://ftp.gnome.org/pub/gnome/sources/pango/1.16/%{_realname}-%{version}.tar.bz2
10# Source0-md5: 3ff23998479e98c5dd9a7eaf08f6249d
11Patch0: %{_realname}-xfonts.patch
3f65fa11 12URL: http://www.pango.org/
13BuildRequires: autoconf >= 2.59-9
14BuildRequires: automake >= 1:1.7
15BuildRequires: crossmingw32-cairo >= 1.2.4
16BuildRequires: crossmingw32-fontconfig >= 2.4.0
17BuildRequires: crossmingw32-freetype >= 2.1.7
cbb22f57 18BuildRequires: crossmingw32-gcc
3f65fa11 19BuildRequires: crossmingw32-glib2 >= 2.12.9
3f65fa11 20BuildRequires: libtool >= 1:1.4.2-9
21BuildRequires: perl-base
7f666847 22BuildRequires: pkgconfig
3f65fa11 23BuildRequires: rpmbuild(macros) >= 1.197
24Requires: crossmingw32-cairo >= 1.2.4
7f666847 25Requires: crossmingw32-fontconfig >= 2.4.0
3f65fa11 26Requires: crossmingw32-freetype >= 2.1.7
27Requires: crossmingw32-glib2 >= 2.12.9
3f65fa11 28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%define no_install_post_strip 1
31
32%define target i386-mingw32
33%define target_platform i386-pc-mingw32
34%define arch %{_prefix}/%{target}
3f65fa11 35
36%define _sysprefix /usr
37%define _prefix %{_sysprefix}/%{target}
38%define _pkgconfigdir %{_prefix}/lib/pkgconfig
7f666847 39%define _dlldir /usr/share/wine/windows/system
3f65fa11 40%define __cc %{target}-gcc
41%define __cxx %{target}-g++
42
43%description
7f666847
JB
44System for layout and rendering of internationalized text (cross
45mingw32 version).
3f65fa11 46
47%description -l pl.UTF-8
7f666847
JB
48System obsługi i renderowania międzynarodowego tekstu (wersja skrośna
49mingw32).
3f65fa11 50
7f666847
JB
51%package dll
52Summary: DLL pango libraries for Windows
53Summary(pl.UTF-8): Biblioteki DLL pango dla Windows
54Group: Applications/Emulators
55Requires: crossmingw32-cairo-dll >= 1.2.4
56Requires: crossmingw32-fontconfig-dll >= 2.4.0
57Requires: crossmingw32-freetype-dll >= 2.1.7
58Requires: crossmingw32-glib2-dll >= 2.12.9
59Requires: wine
60
61%description dll
62DLL pango libraries for Windows.
63
64%description dll -l pl.UTF-8
65Biblioteki DLL pango dla Windows.
3f65fa11 66
67%prep
68%setup -q -n %{_realname}-%{version}
7f666847 69%patch0 -p1
3f65fa11 70
71%build
d58b03b4 72export PKG_CONFIG_PATH=%{_pkgconfigdir}
3f65fa11 73%{__libtoolize}
74%{__aclocal}
75%{__autoheader}
76%{__autoconf}
77%{__automake}
78%configure \
3f65fa11 79 --target=%{target} \
d58b03b4 80 --host=%{target} \
81 --with-fribidi \
82 --enable-static
83
3f65fa11 84%{__make}
85
86%install
87rm -rf $RPM_BUILD_ROOT
88
89%{__make} install \
7f666847 90 DESTDIR=$RPM_BUILD_ROOT
3f65fa11 91
7f666847
JB
92install -d $RPM_BUILD_ROOT%{_dlldir}
93mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
3f65fa11 94
7f666847
JB
95%if 0%{!?debug:1}
96%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
97%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
98%endif
99
100rm -rf $RPM_BUILD_ROOT%{_datadir}/{gtk-doc,man}
3f65fa11 101# useless (modules loaded through libgmodule)
d58b03b4 102rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/1.6.0/modules/*.{la,a}
3f65fa11 103
104%clean
105rm -rf $RPM_BUILD_ROOT
106
107%files
108%defattr(644,root,root,755)
d58b03b4 109%doc AUTHORS NEWS README
7f666847
JB
110%{_libdir}/libpango*-1.0.dll.a
111%{_libdir}/libpango*-1.0.la
112%{_libdir}/pango*-1.0.def
113%{_includedir}/pango-1.0
114%{_pkgconfigdir}/pango*.pc
115
116%files dll
117%defattr(644,root,root,755)
118%{_dlldir}/libpango*-1.0-*.dll
This page took 0.112381 seconds and 4 git commands to generate.