Accidentally removed mingw32-gettext - readded.
[fedora-mingw.git] / fontconfig / mingw32-fontconfig.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-fontconfig
8 Version:        2.6.0
9 Release:        6%{?dist}
10 Summary:        MinGW Windows Fontconfig library
11
12 License:        MIT
13 URL:            http://fontconfig.org
14 Source0:        http://fontconfig.org/release/fontconfig-%{version}.tar.gz
15 Group:          Development/Libraries
16 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
17
18 Patch0:         mingw32-fontconfig-2.6.0-remove-logfile.patch
19
20 BuildArch:      noarch
21
22 BuildRequires:  mingw32-filesystem >= 23
23 BuildRequires:  mingw32-gcc
24 BuildRequires:  mingw32-binutils
25 BuildRequires:  mingw32-freetype
26 BuildRequires:  mingw32-libxml2
27 BuildRequires:  pkgconfig
28 BuildRequires:  docbook-utils
29 BuildRequires:  autoconf automake libtool
30
31
32 %description
33 MinGW Windows Fontconfig library.
34
35
36 %prep
37 %setup -q -n fontconfig-%{version}
38 %patch0 -p1
39 autoreconf
40
41
42 %build
43 PATH="%{_mingw32_bindir}:$PATH" \
44 %{_mingw32_configure} --with-arch=i686
45 make %{?_smp_mflags}
46
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 make DESTDIR=$RPM_BUILD_ROOT install
52
53 rm -f $RPM_BUILD_ROOT/%{_mingw32_libdir}/charset.alias
54
55 # Remove static library.
56 rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libfontconfig.a
57
58 # Remove duplicate manpages.
59 rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir}
60
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65
66 %files
67 %defattr(-,root,root)
68 %{_mingw32_bindir}/fc-cache.exe
69 %{_mingw32_bindir}/fc-cat.exe
70 %{_mingw32_bindir}/fc-list.exe
71 %{_mingw32_bindir}/fc-match.exe
72 %{_mingw32_bindir}/libfontconfig-1.dll
73 %{_mingw32_libdir}/fontconfig.def
74 %{_mingw32_libdir}/libfontconfig.dll.a
75 %{_mingw32_libdir}/libfontconfig.la
76 %{_mingw32_libdir}/pkgconfig/fontconfig.pc
77 %{_mingw32_includedir}/fontconfig/
78 %{_mingw32_sysconfdir}/fonts/
79 %{_mingw32_datadir}/doc/fontconfig
80
81 %changelog
82 * Fri Jan 23 2009 Richard W.M. Jones <rjones@redhat.com> - 2.6.0-6
83 - Use _smp_mflags.
84
85 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 2.6.0-5
86 - Rename mingw -> mingw32.
87
88 * Sun Sep 21 2008 Richard W.M. Jones <rjones@redhat.com> - 2.6.0-4
89 - Remove duplicate manpages.
90 - Patch to delete logfile left when building (unused) manpages.
91
92 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 2.6.0-3
93 - Add mingw_bindir to $PATH for freetype-config script
94
95 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 2.6.0-2
96 - Remove static library.
97 - +BR mingw-libxml2.
98
99 * Tue Sep  9 2008 Daniel P. Berrange <berrange@redhat.com> - 2.6.0-1
100 - Initial RPM release