Enable inkscape again.
[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 >= 43-6
23 BuildRequires:  mingw32-gcc
24 BuildRequires:  mingw32-binutils
25 BuildRequires:  mingw32-dlfcn
26 BuildRequires:  mingw32-expat
27 BuildRequires:  mingw32-freetype
28 BuildRequires:  mingw32-iconv
29 BuildRequires:  mingw32-libxml2
30 BuildRequires:  pkgconfig
31 BuildRequires:  docbook-utils
32 BuildRequires:  automake, autoconf, libtool
33
34
35 %description
36 MinGW Windows Fontconfig library.
37
38
39 %prep
40 %setup -q -n fontconfig-%{version}
41 %patch0 -p1
42 libtoolize --force --copy
43 autoreconf
44
45
46 %build
47 PATH="%{_mingw32_bindir}:$PATH" \
48 %{_mingw32_configure} --with-arch=i686
49 make %{?_smp_mflags}
50
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 make DESTDIR=$RPM_BUILD_ROOT install
56
57 rm -f $RPM_BUILD_ROOT/%{_mingw32_libdir}/charset.alias
58
59 # Remove static library.
60 rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libfontconfig.a
61
62 # Remove duplicate manpages.
63 rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir}
64
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69
70 %files
71 %defattr(-,root,root)
72 %{_mingw32_bindir}/fc-cache.exe
73 %{_mingw32_bindir}/fc-cat.exe
74 %{_mingw32_bindir}/fc-list.exe
75 %{_mingw32_bindir}/fc-match.exe
76 %{_mingw32_bindir}/libfontconfig-1.dll
77 %{_mingw32_libdir}/fontconfig.def
78 %{_mingw32_libdir}/libfontconfig.dll.a
79 %{_mingw32_libdir}/libfontconfig.la
80 %{_mingw32_libdir}/pkgconfig/fontconfig.pc
81 %{_mingw32_includedir}/fontconfig/
82 %{_mingw32_sysconfdir}/fonts/
83 %{_mingw32_datadir}/doc/fontconfig
84
85 %changelog
86 * Fri Jan 23 2009 Richard W.M. Jones <rjones@redhat.com> - 2.6.0-6
87 - Use _smp_mflags.
88 - Rebuild libtool configuration.
89 - More BRs suggested by auto-buildrequires.
90
91 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 2.6.0-5
92 - Rename mingw -> mingw32.
93
94 * Sun Sep 21 2008 Richard W.M. Jones <rjones@redhat.com> - 2.6.0-4
95 - Remove duplicate manpages.
96 - Patch to delete logfile left when building (unused) manpages.
97
98 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 2.6.0-3
99 - Add mingw_bindir to $PATH for freetype-config script
100
101 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 2.6.0-2
102 - Remove static library.
103 - +BR mingw-libxml2.
104
105 * Tue Sep  9 2008 Daniel P. Berrange <berrange@redhat.com> - 2.6.0-1
106 - Initial RPM release