]> git.pld-linux.org Git - packages/crossmingw32-pango.git/blob - crossmingw32-pango.spec
- updated to 1.18.4
[packages/crossmingw32-pango.git] / crossmingw32-pango.spec
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
3 %define         realname   pango
4 Name:           crossmingw32-%{realname}
5 Version:        1.18.4
6 Release:        1
7 License:        LGPL v2+
8 Group:          Development/Libraries
9 Source0:        http://ftp.gnome.org/pub/GNOME/sources/pango/1.18/%{realname}-%{version}.tar.bz2
10 # Source0-md5:  5f4a24eb03789746a13e41beb7044776
11 Patch0:         %{realname}-xfonts.patch
12 URL:            http://www.pango.org/
13 BuildRequires:  autoconf >= 2.59-9
14 BuildRequires:  automake >= 1:1.9
15 BuildRequires:  crossmingw32-cairo >= 1.4.10
16 BuildRequires:  crossmingw32-fontconfig >= 2.4.0
17 BuildRequires:  crossmingw32-freetype >= 2.1.7
18 BuildRequires:  crossmingw32-gcc
19 BuildRequires:  crossmingw32-glib2 >= 2.14.1
20 BuildRequires:  libtool >= 1:1.4.2-9
21 BuildRequires:  perl-base
22 BuildRequires:  pkgconfig >= 1:0.15
23 BuildRequires:  rpmbuild(macros) >= 1.197
24 Requires:       crossmingw32-cairo >= 1.4.10
25 Requires:       crossmingw32-fontconfig >= 2.4.0
26 Requires:       crossmingw32-freetype >= 2.1.7
27 Requires:       crossmingw32-glib2 >= 2.14.1
28 BuildRoot:      %{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
35 %define         _sysprefix              /usr
36 %define         _prefix                 %{_sysprefix}/%{target}
37 %define         _libdir                 %{_prefix}/lib
38 %define         _pkgconfigdir           %{_prefix}/lib/pkgconfig
39 %define         _dlldir                 /usr/share/wine/windows/system
40 %define         __cc                    %{target}-gcc
41 %define         __cxx                   %{target}-g++
42
43 %description
44 System for layout and rendering of internationalized text (cross
45 mingw32 version).
46
47 %description -l pl.UTF-8
48 System obsługi i renderowania międzynarodowego tekstu (wersja skrośna
49 mingw32).
50
51 %package dll
52 Summary:        DLL pango libraries for Windows
53 Summary(pl.UTF-8):      Biblioteki DLL pango dla Windows
54 Group:          Applications/Emulators
55 Requires:       crossmingw32-cairo-dll >= 1.4.10
56 Requires:       crossmingw32-fontconfig-dll >= 2.4.0
57 Requires:       crossmingw32-freetype-dll >= 2.1.7
58 Requires:       crossmingw32-glib2-dll >= 2.14.1
59 Requires:       wine
60
61 %description dll
62 DLL pango libraries for Windows.
63
64 %description dll -l pl.UTF-8
65 Biblioteki DLL pango dla Windows.
66
67 %prep
68 %setup -q -n %{realname}-%{version}
69 %patch0 -p1
70
71 %build
72 export PKG_CONFIG_LIBDIR=%{_pkgconfigdir}
73 %{__libtoolize}
74 %{__aclocal}
75 %{__autoheader}
76 %{__autoconf}
77 %{__automake}
78 %configure \
79         --target=%{target} \
80         --host=%{target} \
81         --with-fribidi \
82         --enable-static
83
84 %{__make}
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88
89 # missing from make install but required by it
90 install -d $RPM_BUILD_ROOT%{_sysconfdir}/pango
91
92 %{__make} -j1 install \
93         DESTDIR=$RPM_BUILD_ROOT
94
95 install -d $RPM_BUILD_ROOT%{_dlldir}
96 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
97
98 %if 0%{!?debug:1}
99 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
100 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
101 %endif
102
103 rm -rf $RPM_BUILD_ROOT%{_datadir}/{gtk-doc,man}
104 # useless (modules loaded through libgmodule)
105 rm -f $RPM_BUILD_ROOT%{_libdir}/pango/1.6.0/modules/*.{la,a}
106
107 %clean
108 rm -rf $RPM_BUILD_ROOT
109
110 %files
111 %defattr(644,root,root,755)
112 %doc AUTHORS NEWS README
113 %{_libdir}/libpango-1.0.dll.a
114 %{_libdir}/libpangocairo-1.0.dll.a
115 %{_libdir}/libpangoft2-1.0.dll.a
116 %{_libdir}/libpangowin32-1.0.dll.a
117 %{_libdir}/libpango-1.0.la
118 %{_libdir}/libpangocairo-1.0.la
119 %{_libdir}/libpangoft2-1.0.la
120 %{_libdir}/libpangowin32-1.0.la
121 %{_libdir}/pango-1.0.def
122 %{_libdir}/pangocairo-1.0.def
123 %{_libdir}/pangoft2-1.0.def
124 %{_libdir}/pangowin32-1.0.def
125 %{_includedir}/pango-1.0
126 %{_pkgconfigdir}/pango.pc
127 %{_pkgconfigdir}/pangocairo.pc
128 %{_pkgconfigdir}/pangoft2.pc
129 %{_pkgconfigdir}/pangowin32.pc
130
131 %files dll
132 %defattr(644,root,root,755)
133 %{_dlldir}/libpango-1.0-*.dll
134 %{_dlldir}/libpangocairo-1.0-*.dll
135 %{_dlldir}/libpangoft2-1.0-*.dll
136 %{_dlldir}/libpangowin32-1.0-*.dll
This page took 0.071043 seconds and 4 git commands to generate.