1 | # |
---|
2 | # Pixman 0.x.x Version 1. |
---|
3 | # |
---|
4 | # This configuration file configure's, make's and install's Pixman. |
---|
5 | # |
---|
6 | |
---|
7 | %if %{release} == %{nil} |
---|
8 | %define release 1 |
---|
9 | %endif |
---|
10 | |
---|
11 | Name: pixman-%{pixman_version}-%{_host}-%{release} |
---|
12 | Summary: Pixman is a low-level software library for pixel manipulation, |
---|
13 | providing features such as image compositing and trapezoid |
---|
14 | rasterization. |
---|
15 | Version: %{pixman_version} |
---|
16 | Release: %{release} |
---|
17 | URL: http://www.pixman.org/ |
---|
18 | BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n) |
---|
19 | |
---|
20 | # |
---|
21 | # Source |
---|
22 | # |
---|
23 | Source0: http://cairographics.org/releases/pixman-%{pixman_version}.tar.gz |
---|
24 | |
---|
25 | # |
---|
26 | # Prepare the source code. |
---|
27 | # |
---|
28 | %prep |
---|
29 | build_top=$(pwd) |
---|
30 | |
---|
31 | source_dir_0="pixman-%{pixman_version}" |
---|
32 | %setup -q -n pixman-%{pixman_version} |
---|
33 | %{?patch0:%patch0 %{?patch0_opts:%{patch0_opts}}%{!?patch0_opts:-p1}} |
---|
34 | %{?patch1:%patch1 %{?patch1_opts:%{patch1_opts}}%{!?patch1_opts:-p1}} |
---|
35 | %{?patch2:%patch2 %{?patch2_opts:%{patch2_opts}}%{!?patch2_opts:-p1}} |
---|
36 | %{?patch3:%patch3 %{?patch3_opts:%{patch3_opts}}%{!?patch3_opts:-p1}} |
---|
37 | %{?patch4:%patch4 %{?patch4_opts:%{patch4_opts}}%{!?patch4_opts:-p1}} |
---|
38 | %{?patch5:%patch5 %{?patch5_opts:%{patch5_opts}}%{!?patch5_opts:-p1}} |
---|
39 | %{?patch6:%patch6 %{?patch6_opts:%{patch6_opts}}%{!?patch6_opts:-p1}} |
---|
40 | %{?patch7:%patch7 %{?patch7_opts:%{patch7_opts}}%{!?patch7_opts:-p1}} |
---|
41 | %{?patch8:%patch8 %{?patch8_opts:%{patch8_opts}}%{!?patch8_opts:-p1}} |
---|
42 | %{?patch9:%patch9 %{?patch9_opts:%{patch9_opts}}%{!?patch9_opts:-p1}} |
---|
43 | |
---|
44 | cd ${build_top} |
---|
45 | |
---|
46 | %build |
---|
47 | build_top=$(pwd) |
---|
48 | |
---|
49 | %{build_directory} |
---|
50 | |
---|
51 | mkdir -p ${build_dir} |
---|
52 | cd ${build_dir} |
---|
53 | |
---|
54 | %{host_build_flags} |
---|
55 | |
---|
56 | ../${source_dir_0}/configure \ |
---|
57 | --prefix=%{_prefix} \ |
---|
58 | --bindir=%{_bindir} \ |
---|
59 | --exec_prefix=%{_exec_prefix} \ |
---|
60 | --includedir=%{_includedir} \ |
---|
61 | --libdir=%{_libdir} \ |
---|
62 | --libexecdir=%{_libexecdir} \ |
---|
63 | --mandir=%{_mandir} \ |
---|
64 | --infodir=%{_infodir} \ |
---|
65 | --datadir=%{_datadir} \ |
---|
66 | --build=%{_build} --host=%{_host} \ |
---|
67 | --disable-gtk \ |
---|
68 | --disable-libpng |
---|
69 | |
---|
70 | %{__make} %{?_smp_mflags} all |
---|
71 | |
---|
72 | cd ${build_top} |
---|
73 | |
---|
74 | %install |
---|
75 | build_top=$(pwd) |
---|
76 | |
---|
77 | %{__rmdir} $SB_BUILD_ROOT |
---|
78 | |
---|
79 | cd ${build_dir} |
---|
80 | %{__make} DESTDIR=$SB_BUILD_ROOT install |
---|
81 | cd ${build_top} |
---|