Switch to tar.bz2 file to match native & rename configure source
[fedora-mingw.git] / cairo / mingw-cairo.spec
1 %define __strip %{_mingw_strip}
2 %define __objdump %{_mingw_objdump}
3 %define _use_internal_dependency_generator 0
4 %define __find_requires %{_mingw_findrequires}
5 %define __find_provides %{_mingw_findprovides}
6
7 Name:           mingw-cairo
8 Version:        1.7.4
9 Release:        3%{?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:  mingw-filesystem >= 23
21 BuildRequires:  mingw-gcc
22 BuildRequires:  mingw-binutils
23 BuildRequires:  mingw-libxml2
24 BuildRequires:  mingw-pixman
25 BuildRequires:  mingw-freetype
26 BuildRequires:  mingw-libpng
27 BuildRequires:  mingw-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 %{_mingw_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%{_mingw_libdir}/charset.alias
48
49 rm -f $RPM_BUILD_ROOT%{_mingw_libdir}/libcairo.a
50
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55
56 %files
57 %defattr(-,root,root)
58 %{_mingw_bindir}/libcairo-2.dll
59 %{_mingw_includedir}/cairo/
60 %{_mingw_libdir}/libcairo.dll.a
61 %{_mingw_libdir}/libcairo.la
62 %{_mingw_libdir}/pkgconfig/cairo-ft.pc
63 %{_mingw_libdir}/pkgconfig/cairo-pdf.pc
64 %{_mingw_libdir}/pkgconfig/cairo-png.pc
65 %{_mingw_libdir}/pkgconfig/cairo-ps.pc
66 %{_mingw_libdir}/pkgconfig/cairo-svg.pc
67 %{_mingw_libdir}/pkgconfig/cairo-win32-font.pc
68 %{_mingw_libdir}/pkgconfig/cairo-win32.pc
69 %{_mingw_libdir}/pkgconfig/cairo.pc
70 %{_mingw_datadir}/gtk-doc/html/cairo/
71
72
73 %changelog
74 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 1.7.4-3
75 - Added dep on pkgconfig
76
77 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 1.7.4-2
78 - Remove static libraries.
79 - Fix source URL.
80
81 * Tue Sep  9 2008 Daniel P. Berrange <berrange@redhat.com> - 1.7.4-1
82 - Initial RPM release