5577d47ee9e757aa7fb0e91092a73228278053e0
[fedora-mingw.git] / cairo / mingw32-cairo.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-cairo
8 Version:        1.7.4
9 Release:        4%{?dist}
10 Summary:        MinGW Windows Cairo library
11
12 License:        LGPLv2 or MPLv1.1
13 URL:            http://cairographics.org
14 Source0:        http://cairographics.org/snapshots/cairo-%{version}.tar.gz
15 Group:          Development/Libraries
16 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
17
18 BuildArch:      noarch
19
20 BuildRequires:  mingw32-filesystem >= 23
21 BuildRequires:  mingw32-gcc
22 BuildRequires:  mingw32-binutils
23 BuildRequires:  mingw32-libxml2
24 BuildRequires:  mingw32-pixman
25 BuildRequires:  mingw32-freetype
26 BuildRequires:  mingw32-libpng
27 BuildRequires:  mingw32-fontconfig
28 BuildRequires:  pkgconfig
29
30 %description
31 MinGW Windows Cairo library.
32
33
34 %prep
35 %setup -q -n cairo-%{version}
36
37 %build
38 %{_mingw32_configure} --disable-xlib --disable-xcb --enable-win32 --enable-png --enable-freetype
39 make
40
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44
45 make DESTDIR=$RPM_BUILD_ROOT install
46
47 rm -f $RPM_BUILD_ROOT%{_mingw32_libdir}/charset.alias
48
49 rm -f $RPM_BUILD_ROOT%{_mingw32_libdir}/libcairo.a
50
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55
56 %files
57 %defattr(-,root,root)
58 %{_mingw32_bindir}/libcairo-2.dll
59 %{_mingw32_includedir}/cairo/
60 %{_mingw32_libdir}/libcairo.dll.a
61 %{_mingw32_libdir}/libcairo.la
62 %{_mingw32_libdir}/pkgconfig/cairo-ft.pc
63 %{_mingw32_libdir}/pkgconfig/cairo-pdf.pc
64 %{_mingw32_libdir}/pkgconfig/cairo-png.pc
65 %{_mingw32_libdir}/pkgconfig/cairo-ps.pc
66 %{_mingw32_libdir}/pkgconfig/cairo-svg.pc
67 %{_mingw32_libdir}/pkgconfig/cairo-win32-font.pc
68 %{_mingw32_libdir}/pkgconfig/cairo-win32.pc
69 %{_mingw32_libdir}/pkgconfig/cairo.pc
70 %{_mingw32_datadir}/gtk-doc/html/cairo/
71
72
73 %changelog
74 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 1.7.4-4
75 - Rename mingw -> mingw32.
76
77 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 1.7.4-3
78 - Added dep on pkgconfig
79
80 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 1.7.4-2
81 - Remove static libraries.
82 - Fix source URL.
83
84 * Tue Sep  9 2008 Daniel P. Berrange <berrange@redhat.com> - 1.7.4-1
85 - Initial RPM release