Remove +x permissions on COPYING file.
[fedora-mingw.git] / pango / mingw32-pango.spec
1 %define __strip %{_mingw32_strip}
2 %define __objdump %{_mingw32_objdump}
3 %define _use_internal_dependency_generator 0
4 %define __find_requires %{_mingw32_findrequires}
5 %define __find_provides %{_mingw32_findprovides}
6
7 Name:           mingw32-pango
8 Version:        1.22.1
9 Release:        6%{?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
17 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
18
19 # Native pango uses a %post script to generate this, but the
20 # pango-querymodules.exe binary is not something we can easily run on
21 # a Linux host. We could use wine but wine isn't happy in a mock
22 # environment. So we just include a pre-generated copy on basis that
23 # it won't ever change much.
24 #
25 # If you want to rebuild this, do:
26 # wine %{_mingw32_bindir}/pango-querymodules.exe > pango.modules
27 Source1:        pango.modules
28
29 Patch1000:      pango_enable_static_build.patch
30
31 BuildArch:      noarch
32
33 BuildRequires:  mingw32-filesystem >= 23
34 BuildRequires:  mingw32-gcc
35 BuildRequires:  mingw32-binutils
36
37 BuildRequires:  mingw32-cairo >= 1.8.0
38 BuildRequires:  mingw32-expat
39 BuildRequires:  mingw32-fontconfig
40 BuildRequires:  mingw32-freetype
41 BuildRequires:  mingw32-gettext
42 BuildRequires:  mingw32-glib2
43 BuildRequires:  mingw32-iconv
44 BuildRequires:  mingw32-libpng
45 BuildRequires:  mingw32-pixman
46 BuildRequires:  pkgconfig
47
48 # Required in order to rebuild the configure script.
49 BuildRequires:  gtk-doc
50
51 # These are required for the patch
52 BuildRequires:  autoconf, automake, libtool
53
54 Requires:       pkgconfig
55
56
57 %description
58 MinGW Windows Pango library.
59
60
61 %package static
62 Summary:        Static version of the MinGW Windows Pango library
63 Requires:       %{name} = %{version}-%{release}
64 Group:          Development/Libraries
65
66 %description static
67 Static version of the MinGW Windows Pango library.
68
69
70 %prep
71 %setup -q -n pango-%{version}
72 %patch1000
73
74 # Regenerate the configure script
75 aclocal
76 autoreconf
77 libtoolize
78
79
80 %build
81 # Need to run the correct version of glib-mkenums.
82 PATH=%{_mingw32_bindir}:$PATH \
83 %{_mingw32_configure} --enable-static --enable-shared
84 make %{?_smp_mflags}
85
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89
90 make DESTDIR=$RPM_BUILD_ROOT install
91
92 mkdir -p $RPM_BUILD_ROOT%{_mingw32_sysconfdir}/pango/
93 cp %{SOURCE1} $RPM_BUILD_ROOT%{_mingw32_sysconfdir}/pango/
94
95 rm -f $RPM_BUILD_ROOT/%{_mingw32_libdir}/charset.alias
96
97
98 %clean
99 rm -rf $RPM_BUILD_ROOT
100
101
102 %files
103 %defattr(-,root,root,-)
104 %doc COPYING
105 %{_mingw32_bindir}/libpango-1.0-0.dll
106 %{_mingw32_bindir}/libpangocairo-1.0-0.dll
107 %{_mingw32_bindir}/libpangoft2-1.0-0.dll
108 %{_mingw32_bindir}/libpangowin32-1.0-0.dll
109 %{_mingw32_bindir}/pango-querymodules.exe
110 %{_mingw32_includedir}/pango-1.0/
111 %{_mingw32_libdir}/libpango-1.0.dll.a
112 %{_mingw32_libdir}/libpango-1.0.la
113 %{_mingw32_libdir}/libpangocairo-1.0.dll.a
114 %{_mingw32_libdir}/libpangocairo-1.0.la
115 %{_mingw32_libdir}/libpangoft2-1.0.dll.a
116 %{_mingw32_libdir}/libpangoft2-1.0.la
117 %{_mingw32_libdir}/libpangowin32-1.0.dll.a
118 %{_mingw32_libdir}/libpangowin32-1.0.la
119 %{_mingw32_libdir}/pango-1.0.def
120 %{_mingw32_libdir}/pangocairo-1.0.def
121 %{_mingw32_libdir}/pangoft2-1.0.def
122 %{_mingw32_libdir}/pangowin32-1.0.def
123 %dir %{_mingw32_libdir}/pango
124 %dir %{_mingw32_libdir}/pango/1.6.0
125 %dir %{_mingw32_libdir}/pango/1.6.0/modules
126 %{_mingw32_libdir}/pango/1.6.0/modules/pango-basic-win32.dll
127 %{_mingw32_libdir}/pango/1.6.0/modules/pango-basic-win32.dll.a
128 %{_mingw32_libdir}/pango/1.6.0/modules/pango-basic-win32.la
129 %{_mingw32_libdir}/pango/1.6.0/modules/pango-arabic-lang.dll
130 %{_mingw32_libdir}/pango/1.6.0/modules/pango-arabic-lang.dll.a
131 %{_mingw32_libdir}/pango/1.6.0/modules/pango-arabic-lang.la
132 %{_mingw32_libdir}/pango/1.6.0/modules/pango-indic-lang.dll
133 %{_mingw32_libdir}/pango/1.6.0/modules/pango-indic-lang.dll.a
134 %{_mingw32_libdir}/pango/1.6.0/modules/pango-indic-lang.la
135 %{_mingw32_libdir}/pango/1.6.0/modules/pango-arabic-fc.dll
136 %{_mingw32_libdir}/pango/1.6.0/modules/pango-arabic-fc.dll.a
137 %{_mingw32_libdir}/pango/1.6.0/modules/pango-arabic-fc.la
138 %{_mingw32_libdir}/pango/1.6.0/modules/pango-basic-fc.dll
139 %{_mingw32_libdir}/pango/1.6.0/modules/pango-basic-fc.dll.a
140 %{_mingw32_libdir}/pango/1.6.0/modules/pango-basic-fc.la
141 %{_mingw32_libdir}/pango/1.6.0/modules/pango-hangul-fc.dll
142 %{_mingw32_libdir}/pango/1.6.0/modules/pango-hangul-fc.dll.a
143 %{_mingw32_libdir}/pango/1.6.0/modules/pango-hangul-fc.la
144 %{_mingw32_libdir}/pango/1.6.0/modules/pango-hebrew-fc.dll
145 %{_mingw32_libdir}/pango/1.6.0/modules/pango-hebrew-fc.dll.a
146 %{_mingw32_libdir}/pango/1.6.0/modules/pango-hebrew-fc.la
147 %{_mingw32_libdir}/pango/1.6.0/modules/pango-indic-fc.dll
148 %{_mingw32_libdir}/pango/1.6.0/modules/pango-indic-fc.dll.a
149 %{_mingw32_libdir}/pango/1.6.0/modules/pango-indic-fc.la
150 %{_mingw32_libdir}/pango/1.6.0/modules/pango-khmer-fc.dll
151 %{_mingw32_libdir}/pango/1.6.0/modules/pango-khmer-fc.dll.a
152 %{_mingw32_libdir}/pango/1.6.0/modules/pango-khmer-fc.la
153 %{_mingw32_libdir}/pango/1.6.0/modules/pango-syriac-fc.dll
154 %{_mingw32_libdir}/pango/1.6.0/modules/pango-syriac-fc.dll.a
155 %{_mingw32_libdir}/pango/1.6.0/modules/pango-syriac-fc.la
156 %{_mingw32_libdir}/pango/1.6.0/modules/pango-thai-fc.dll
157 %{_mingw32_libdir}/pango/1.6.0/modules/pango-thai-fc.dll.a
158 %{_mingw32_libdir}/pango/1.6.0/modules/pango-thai-fc.la
159 %{_mingw32_libdir}/pango/1.6.0/modules/pango-tibetan-fc.dll
160 %{_mingw32_libdir}/pango/1.6.0/modules/pango-tibetan-fc.dll.a
161 %{_mingw32_libdir}/pango/1.6.0/modules/pango-tibetan-fc.la
162 %{_mingw32_libdir}/pkgconfig/pango.pc
163 %{_mingw32_libdir}/pkgconfig/pangocairo.pc
164 %{_mingw32_libdir}/pkgconfig/pangoft2.pc
165 %{_mingw32_libdir}/pkgconfig/pangowin32.pc
166 %{_mingw32_datadir}/gtk-doc/html/pango/
167 %{_mingw32_mandir}/man1/pango-querymodules.1*
168 %{_mingw32_sysconfdir}/pango/
169
170
171 %files static
172 %defattr(-,root,root,-)
173 %{_mingw32_libdir}/libpango-1.0.a
174 %{_mingw32_libdir}/libpangocairo-1.0.a
175 %{_mingw32_libdir}/libpangoft2-1.0.a
176 %{_mingw32_libdir}/libpangowin32-1.0.a
177 %{_mingw32_libdir}/pango/1.6.0/modules/pango-basic-win32.a
178 %{_mingw32_libdir}/pango/1.6.0/modules/pango-arabic-lang.a
179 %{_mingw32_libdir}/pango/1.6.0/modules/pango-indic-lang.a
180 %{_mingw32_libdir}/pango/1.6.0/modules/pango-arabic-fc.a
181 %{_mingw32_libdir}/pango/1.6.0/modules/pango-basic-fc.a
182 %{_mingw32_libdir}/pango/1.6.0/modules/pango-hangul-fc.a
183 %{_mingw32_libdir}/pango/1.6.0/modules/pango-hebrew-fc.a
184 %{_mingw32_libdir}/pango/1.6.0/modules/pango-indic-fc.a
185 %{_mingw32_libdir}/pango/1.6.0/modules/pango-khmer-fc.a
186 %{_mingw32_libdir}/pango/1.6.0/modules/pango-syriac-fc.a
187 %{_mingw32_libdir}/pango/1.6.0/modules/pango-thai-fc.a
188 %{_mingw32_libdir}/pango/1.6.0/modules/pango-tibetan-fc.a
189   
190
191 %changelog
192 * Fri Feb 20 2009 Erik van Pienbroek <info@nntpgrab.nl> - 1.22.1-6
193 - Added -static subpackage
194
195 * Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 1.22.1-5
196 - Rebuild for mingw32-gcc 4.4
197
198 * Fri Jan 30 2009 Richard W.M. Jones <rjones@redhat.com> - 1.22.1-4
199 - Requires pkgconfig.
200
201 * Tue Jan 27 2009 Levente Farkas <lfarkas@lfarkas.org> - 1.22.1-3
202 - Include license file in documentation section.
203
204 * Fri Jan 23 2009 Richard W.M. Jones <rjones@redhat.com> - 1.22.1-2
205 - Disable static libraries.
206 - Use _smp_mflags.
207
208 * Fri Oct 24 2008 Richard W.M. Jones <rjones@redhat.com> - 1.22.1-1
209 - New upstream version 1.22.1.
210 - BR cairo >= 1.8.0 because of important fixes.
211
212 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 1.21.6-6
213 - Rename mingw -> mingw32.
214
215 * Tue Sep 23 2008 Daniel P. Berrange <berrange@redhat.com> - 1.21.6-5
216 - Remove use of wine in %-post.
217
218 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 1.21.6-4
219 - Add dep on pkgconfig
220
221 * Thu Sep 11 2008 Richard W.M. Jones <rjones@redhat.com> - 1.21.6-3
222 - post/preun scripts to update the pango.modules list.
223
224 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 1.21.6-2
225 - Run the correct glib-mkenums.
226
227 * Tue Sep  9 2008 Daniel P. Berrange <berrange@redhat.com> - 1.21.6-1
228 - Initial RPM release