973a7f83e78ae26c31404732972e1c7043523399
[fedora-mingw.git] / pango / mingw-pango.spec
1 %define __strip %{_mingw_strip}
2 %define __objdump %{_mingw_objdump}
3 %define _use_internal_dependency_generator 0
4 %define __find_requires %{_mingw_findrequires}
5 %define __find_provides %{_mingw_findprovides}
6
7 Name:           mingw-pango
8 Version:        1.21.6
9 Release:        5%{?dist}
10 Summary:        MinGW Windows Pango library
11
12 License:        LGPLv2+
13 Group:          Development/Libraries
14 URL:            http://www.pango.org
15 Source0:        http://download.gnome.org/sources/pango/1.21/pango-%{version}.tar.bz2
16 # Native pango uses a %post script to generate this, but the pango-querymodules.exe
17 # binary is not something we can easily run on a Linux host. We could use wine by
18 # wine isn't happy in a mock environment. So we just include a pre-generated copy
19 # on basis that it won't ever change much
20 Source1:        pango.modules
21 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
22
23 BuildArch:      noarch
24
25 BuildRequires:  mingw-filesystem >= 23
26 BuildRequires:  mingw-gcc
27 BuildRequires:  mingw-binutils
28 BuildRequires:  mingw-iconv
29 BuildRequires:  mingw-gettext
30 BuildRequires:  mingw-cairo
31 BuildRequires:  mingw-freetype
32 BuildRequires:  mingw-fontconfig
33 BuildRequires:  mingw-glib2
34 BuildRequires:  pkgconfig
35
36 %description
37 MinGW Windows Pango library.
38
39
40 %prep
41 %setup -q -n pango-%{version}
42
43 %build
44 # Need to run the correct version of glib-mkenums.
45 PATH=%{_mingw_bindir}:$PATH \
46 %{_mingw_configure}
47 make
48
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 make DESTDIR=$RPM_BUILD_ROOT install
54
55 mkdir -p $RPM_BUILD_ROOT%{_mingw_sysconfdir}/pango/
56 cp %{SOURCE1} $RPM_BUILD_ROOT%{_mingw_sysconfdir}/pango/
57
58 rm -f $RPM_BUILD_ROOT/%{_mingw_libdir}/charset.alias
59
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
65 %defattr(-,root,root)
66 %{_mingw_bindir}/libpango-1.0-0.dll
67 %{_mingw_bindir}/libpangocairo-1.0-0.dll
68 %{_mingw_bindir}/libpangoft2-1.0-0.dll
69 %{_mingw_bindir}/libpangowin32-1.0-0.dll
70 %{_mingw_bindir}/pango-querymodules.exe
71 %{_mingw_includedir}/pango-1.0/
72 %{_mingw_libdir}/libpango-1.0.dll.a
73 %{_mingw_libdir}/libpango-1.0.la
74 %{_mingw_libdir}/libpangocairo-1.0.dll.a
75 %{_mingw_libdir}/libpangocairo-1.0.la
76 %{_mingw_libdir}/libpangoft2-1.0.dll.a
77 %{_mingw_libdir}/libpangoft2-1.0.la
78 %{_mingw_libdir}/libpangowin32-1.0.dll.a
79 %{_mingw_libdir}/libpangowin32-1.0.la
80 %{_mingw_libdir}/pango-1.0.def
81 %{_mingw_libdir}/pangocairo-1.0.def
82 %{_mingw_libdir}/pangoft2-1.0.def
83 %{_mingw_libdir}/pangowin32-1.0.def
84 %{_mingw_libdir}/pango/
85 %{_mingw_libdir}/pkgconfig/pango.pc
86 %{_mingw_libdir}/pkgconfig/pangocairo.pc
87 %{_mingw_libdir}/pkgconfig/pangoft2.pc
88 %{_mingw_libdir}/pkgconfig/pangowin32.pc
89 %{_mingw_datadir}/gtk-doc/html/pango/
90 %{_mingw_mandir}/man1/pango-querymodules.1*
91 %{_mingw_sysconfdir}/pango/
92
93
94 %changelog
95 * Tue Sep 23 2008 Daniel P. Berrange <berrange@redhat.com> - 1.21.6-5
96 - Remove use of wine in %post
97
98 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 1.21.6-4
99 - Add dep on pkgconfig
100
101 * Thu Sep 11 2008 Richard W.M. Jones <rjones@redhat.com> - 1.21.6-3
102 - post/preun scripts to update the pango.modules list.
103
104 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 1.21.6-2
105 - Run the correct glib-mkenums.
106
107 * Tue Sep  9 2008 Daniel P. Berrange <berrange@redhat.com> - 1.21.6-1
108 - Initial RPM release