1 # 2 # 3 # spec file for package SUNWclutter-cairo 4 # 5 # includes module(s): clutter-cairo 6 # 7 # Copyright 2008 Sun Microsystems, Inc. 8 # This file and all modifications and additions to the pristine 9 # package are under the same license as the package itself. 10 # 11 # Owner: bewitche 12 13 %include Solaris.inc 14 %use cluttercairo = clutter-cairo.spec 15 16 Name: SUNWclutter-cairo 17 Summary: clutter-cairo - An experimental clutter cairo 'drawable' actor. 18 Version: %{cluttercairo.version} 19 URL: http://www.clutter-project.org/ 20 Source: http://www.clutter-project.org/sources/clutter-cairo/0.8/clutter-cairo-%{version}.tar.bz2 21 SUNW_BaseDir: %{_basedir} 22 SUNW_Copyright: SUNWclutter-cairo.copyright 23 24 %ifnarch sparc 25 #packages are only for x86 26 27 BuildRoot: %{_tmppath}/%{name}-%{version}-build 28 %include default-depend.inc 29 Requires: SUNWgnome-base-libs 30 Requires: SUNWclutter 31 BuildRequires: SUNWgnome-base-libs-devel 32 33 %package devel 34 Summary: %{summary} - developer files 35 SUNW_BaseDir: %{_basedir} 36 %include default-depend.inc 37 Requires: %name 38 Requires: SUNWgnome-base-libs-devel 39 Requires: SUNWclutter-devel 40 41 42 %prep 43 rm -rf %name-%version 44 mkdir %name-%version 45 %cluttercairo.prep -d %name-%version/ 46 47 %build 48 export CFLAGS="%optflags -I/usr/include/pango-1.0 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include" 49 export LDFLAGS="%_ldflags -lglib-2.0 -lgobject-2.0 -lm" 50 %cluttercairo.build -d %name-%version/ 51 52 %install 53 54 %cluttercairo.install -d %name-%version/ 55 find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' 56 find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';' 57 58 %clean 59 rm -rf $RPM_BUILD_ROOT 60 61 %files 62 %defattr (-, root, bin) 63 %dir %attr (0755, root, bin) %{_libdir} 64 %{_libdir}/lib*.so* 65 66 %files devel 67 %defattr (-, root, bin) 68 %dir %attr (0755, root, bin) %{_libdir} 69 %dir %attr (0755, root, other) %{_libdir}/pkgconfig 70 %{_libdir}/pkgconfig/* 71 72 %dir %attr (0755, root, bin) %{_includedir} 73 %{_includedir}/* 74 75 %endif 76 %changelog 77 * Tue Jul 1 2008 chris.wang@sun.com 78 - Initial build. 79