Fix build of DLLs.
[fedora-mingw.git] / fontconfig / mingw-fontconfig.spec
1 %include /usr/lib/rpm/mingw-defs
2
3 Name:           mingw-fontconfig
4 Version:        2.6.0
5 Release:        2%{?dist}
6 Summary:        MinGW Windows Fontconfig library
7
8 License:        MIT
9 URL:            http://fontconfig.org
10 Source0:        http://fontconfig.org/release/fontconfig-%{version}.tar.gz
11 Group:          Development/Libraries
12 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13
14 BuildArch:      noarch
15
16 BuildRequires:  mingw-filesystem >= 19
17 BuildRequires:  mingw-gcc
18 BuildRequires:  mingw-binutils
19 BuildRequires:  mingw-freetype
20
21 %description
22 MinGW Windows Fontconfig library.
23
24
25 %prep
26 %setup -q -n fontconfig-%{version}
27
28 %build
29 %{_mingw_configure} --with-arch=i686
30 make
31
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35
36 make DESTDIR=$RPM_BUILD_ROOT install
37
38 rm -f $RPM_BUILD_ROOT/%{_mingw_libdir}/charset.alias
39
40 # Remove static library.
41 rm $RPM_BUILD_ROOT%{_mingw_libdir}/libfontconfig.a
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46
47 %files
48 %defattr(-,root,root)
49 %{_mingw_bindir}/fc-cache.exe
50 %{_mingw_bindir}/fc-cat.exe
51 %{_mingw_bindir}/fc-list.exe
52 %{_mingw_bindir}/fc-match.exe
53 %{_mingw_bindir}/libfontconfig-1.dll
54 %{_mingw_libdir}/fontconfig.def
55 %{_mingw_libdir}/libfontconfig.dll.a
56 %{_mingw_libdir}/libfontconfig.la
57 %{_mingw_libdir}/pkgconfig/fontconfig.pc
58 %{_mingw_includedir}/fontconfig/
59 %{_mingw_sysconfdir}/fonts/
60 %{_mingw_mandir}/man1/fc-cache.1*
61 %{_mingw_mandir}/man1/fc-cat.1*
62 %{_mingw_mandir}/man1/fc-list.1*
63 %{_mingw_mandir}/man1/fc-match.1*
64 %{_mingw_mandir}/man3/Fc*.3*
65 %{_mingw_mandir}/man5/fonts-conf.5*
66 %{_mingw_datadir}/doc/fontconfig
67
68 %changelog
69 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 2.6.0-2
70 - Remove static library.
71
72 * Tue Sep  9 2008 Daniel P. Berrange <berrange@redhat.com> - 2.6.0-1
73 - Initial RPM release