3 %bcond_without static_libs # don't build static library
4 %bcond_without verbose # verbose build (V=1)
6 %define subver 20130302
8 Summary: 2D graphic library
11 Release: 0.%{rel}.%{subver}
13 Group: Development/Libraries
14 Source0: %{name}-%{subver}.tar.xz
15 # Source0-md5: d3338ba25a4130d8a5e0678cb416cf02
16 Source1: get-source.sh
18 URL: https://sites.google.com/site/skiadocs/
19 #BuildRequires: cityhash-devel
20 BuildRequires: libstdc++-devel
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Skia is a complete 2D graphic library for drawing Text, Geometries,
28 Summary: The development files for skia
29 Summary(pl.UTF-8): Pliki programistyczne skia
30 Group: Development/Libraries
31 Requires: %{name} = %{version}-%{release}
34 Header files for development with skia.
36 %description devel -l pl.UTF-8
37 Pliki nagłówkowe do tworzenia programów z użyciem skia.
40 Summary: Static skia library
41 Summary(pl.UTF-8): Statyczna biblioteka skia
42 Group: Development/Libraries
43 Requires: %{name}-devel = %{version}-%{release}
48 %description static -l pl.UTF-8
49 Statyczna biblioteka skia.
52 %setup -qn %{name}-%{subver}
54 mv skia/{README,LICENSE} .
58 %{__python} gyp_skia \
64 BUILDTYPE=%{!?debug:Release}%{?debug:Debug} \
65 %{?with_verbose:V=1} \
68 LDFLAGS="%{rpmldflags} -fuse-ld=gold" \
71 LDFLAGS.host="%{rpmldflags}" \
72 CFLAGS="%{rpmcflags} %{rpmcppflags}" \
73 CXXFLAGS="%{rpmcxxflags} %{rpmcppflags}" \
77 rm -rf $RPM_BUILD_ROOT
78 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/%{name}}
81 cp -a include/* $RPM_BUILD_ROOT%{_includedir}/%{name}
83 cd out/%{!?debug:Release}%{?debug:Debug}
85 cp -p lib*.a $RPM_BUILD_ROOT%{_libdir}
88 rm -rf $RPM_BUILD_ROOT
91 %defattr(644,root,root,755)
95 %defattr(644,root,root,755)
96 %{_includedir}/%{name}
98 %if %{with static_libs}
100 %defattr(644,root,root,755)
101 %{_libdir}/libskia_core.a
102 %{_libdir}/libskia_gr.a
103 %{_libdir}/libskia_opts.a
104 %{_libdir}/libskia_opts_ssse3.a
105 %{_libdir}/libskia_ports.a
106 %{_libdir}/libskia_skgr.a
107 %{_libdir}/libskia_utils.a