hi
you dont need the "opengl check" like in e.g compiz?

test -f /usr/X11/include/GL/glx.h || {
  echo "Missing OpenGL headers. Stopping."
  false
  }
test -f /usr/X11/lib/modules/extensions/libglx.so  || {
  echo "Missing OpenGL libraries. Stopping."
  false
  }


On Wed, Jul 2, 2008 at 11:01 AM, C Wang <Chris.Wang at sun.com> wrote:
> Hi All:
> We are planing to ship clutter -- a library using OpenGL to create
> visual rich user interface to our next build of Indiana. Beside its main
> library, we still plan to ship three add-on library: clutter-cairo - a
> cairo canvas can be transformed to 3D, clutter-gtk - Enable clutter to
> be embedded to gtk apps and clutter-gst -- Interface for audio/video
> playback with gstreamer backend.
>
> Attached are the spec files I write for these packages. Please help to
> review to see if there is any incorrect.
>
> Thanks,
> Chris
>
>
> #
> #
> # spec file for package SUNWclutter
> #
> # includes module(s): clutter
> #
> # Copyright 2008 Sun Microsystems, Inc.
> # This file and all modifications and additions to the pristine
> # package are under the same license as the package itself.
> #
> # Owner: bewitche
>
> %include Solaris.inc
>
> %use clutter = clutter.spec
>
> Name:                    SUNWclutter
> Summary:                 clutter - a library for creating fast, visually rich 
> and animated graphical user interfaces.
> Version:                 %{clutter.version}
> URL:                     http://www.clutter-project.org/
> Source:                  
> http://www.clutter-project.org/sources/clutter/0.6/clutter-0.6.4.tar.bz2
> SUNW_BaseDir:            %{_basedir}
> SUNW_Copyright:          SUNWclutter.copyright
> BuildRoot:               %{_tmppath}/%{name}-%{version}-build
> %include default-depend.inc
> Requires: SUNWgnome-base-libs
> BuildRequires: SUNWgnome-base-libs-devel
>
> %package devel
> Summary:                 %{summary} - developer files
> SUNW_BaseDir:            %{_basedir}
> %include default-depend.inc
> Requires: %name
> Requires: SUNWgnome-base-libs-devel
>
> %prep
> rm -rf %name-%version
> mkdir %name-%version
> %clutter.prep -d %name-%version
>
> %build
> export CFLAGS="%optflags -I/usr/X11/include"
> export LDFLAGS="%_ldflags -L/usr/X11/lib -R/usr/X11/lib"
> %clutter.build -d %name-%version
>
> %install
> %clutter.install -d %name-%version
> rm $RPM_BUILD_ROOT%{_libdir}/lib*.la
>
> %clean
> rm -rf $RPM_BUILD_ROOT
>
> %files
> %defattr (-, root, bin)
> %dir %attr (0755, root, bin) %{_libdir}
> %{_libdir}/lib*.so*
>
> %files devel
> %defattr (-, root, bin)
> %dir %attr (0755, root, bin) %{_libdir}
> %dir %attr (0755, root, other) %{_libdir}/pkgconfig
> %{_libdir}/pkgconfig/*
> %dir %attr (0755, root, sys) %{_datadir}
> %{_datadir}/gtk-doc
> %dir %attr (0755, root, bin) %{_includedir}
> %{_includedir}/*
>
> %changelog
> * Tue Jul  1 2008  chris.wang at sun.com
> - Initial build.
>
>
> #
> #
> # spec file for package SUNWclutter-cairo
> #
> # includes module(s): clutter-cairo
> #
> # Copyright 2008 Sun Microsystems, Inc.
> # This file and all modifications and additions to the pristine
> # package are under the same license as the package itself.
> #
> # Owner: bewitche
>
> %include Solaris.inc
> %use cluttercairo = clutter-cairo.spec
>
> Name:                    SUNWclutter-cairo
> Summary:                 clutter-cairo - An experimental clutter cairo 
> 'drawable' actor.
> Version:                 %{cluttercairo.version}
> URL:                     http://www.clutter-project.org/
> Source:                  
> http://www.clutter-project.org/sources/clutter-cairo/0.6/clutter-cairo-%{version}.tar.bz2
> SUNW_BaseDir:            %{_basedir}
> SUNW_Copyright:          SUNWclutter-cairo.copyright
> BuildRoot:               %{_tmppath}/%{name}-%{version}-build
> %include default-depend.inc
> Requires: SUNWgnome-base-libs
> Requires: SUNWclutter
> BuildRequires: SUNWgnome-base-libs-devel
>
> %package devel
> Summary:                 %{summary} - developer files
> SUNW_BaseDir:            %{_basedir}
> %include default-depend.inc
> Requires: %name
> Requires: SUNWgnome-base-libs-devel
> Requires: SUNWclutter-devel
>
>
> %prep
> rm -rf %name-%version
> mkdir %name-%version
> %cluttercairo.prep -d %name-%version
>
> %build
> 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"
> export LDFLAGS="%_ldflags -lglib-2.0 -lgobject-2.0 -lm"
> %cluttercairo.build -d %name-%version
>
> %install
> %cluttercairo.install -d %name-%version
> rm $RPM_BUILD_ROOT%{_libdir}/lib*.la
>
> %clean
> rm -rf $RPM_BUILD_ROOT
>
> %files
> %defattr (-, root, bin)
> %dir %attr (0755, root, bin) %{_libdir}
> %{_libdir}/lib*.so*
>
> %files devel
> %defattr (-, root, bin)
> %dir %attr (0755, root, bin) %{_libdir}
> %dir %attr (0755, root, other) %{_libdir}/pkgconfig
> %{_libdir}/pkgconfig/*
>
> %dir %attr (0755, root, bin) %{_includedir}
> %{_includedir}/*
>
> %changelog
> * Tue Jul  1 2008  chris.wang at sun.com
> - Initial build.
>
> #
> #
> # spec file for package SUNWclutter-gst
> #
> # includes module(s): clutter-gst
> #
> # Copyright 2008 Sun Microsystems, Inc.
> # This file and all modifications and additions to the pristine
> # package are under the same license as the package itself.
> #
> # Owner: bewitche
>
> %include Solaris.inc
> %use cluttergst = clutter-gst.spec
>
> Name:                    SUNWclutter-gst
> Summary:                 clutter-gst - gstreamer integration library for 
> clutter
> Version:                 %{cluttergst.version}
> URL:                     http://www.clutter-project.org/
> Source:                  
> http://www.clutter-project.org/sources/clutter-gst/0.6/clutter-gst-%{version}.tar.bz2
> SUNW_BaseDir:            %{_basedir}
> SUNW_Copyright:          SUNWclutter-gst.copyright
> BuildRoot:               %{_tmppath}/%{name}-%{version}-build
> %include default-depend.inc
> Requires: SUNWgnome-base-libs
> Requires: SUNWclutter
> BuildRequires: SUNWgnome-base-libs-devel
>
> %package devel
> Summary:                 %{summary} - developer files
> SUNW_BaseDir:            %{_basedir}
> %include default-depend.inc
> Requires: %name
> Requires: SUNWgnome-base-libs-devel
> Requires: SUNWclutter-devel
>
>
> %prep
> rm -rf %name-%version
> mkdir %name-%version
> %cluttergst.prep -d %name-%version
>
> %build
> export CFLAGS="%optflags -I/usr/include/gtk-2.0 -I/usr/include/pango-1.0"
> export LDFLAGS="%_ldflags -lgdk_pixbuf-2.0"
> %cluttergst.build -d %name-%version
>
> %install
> %cluttergst.install -d %name-%version
> rm $RPM_BUILD_ROOT%{_libdir}/lib*.la
>
> %clean
> rm -rf $RPM_BUILD_ROOT
>
> %files
> %defattr (-, root, bin)
> %dir %attr (0755, root, bin) %{_libdir}
> %{_libdir}/lib*.so*
>
> %files devel
> %defattr (-, root, bin)
> %dir %attr (0755, root, bin) %{_libdir}
> %dir %attr (0755, root, other) %{_libdir}/pkgconfig
> %{_libdir}/pkgconfig/*
> %dir %attr (0755, root, sys) %{_datadir}
> %{_datadir}/gtk-doc
> %dir %attr (0755, root, bin) %{_includedir}
> %{_includedir}/*
>
> %changelog
> * Tue Jul  1 2008  chris.wang at sun.com
> - Initial build.
>
> #
> #
> # spec file for package SUNWclutter-gtk
> #
> # includes module(s): clutter-gtk
> #
> # Copyright 2008 Sun Microsystems, Inc.
> # This file and all modifications and additions to the pristine
> # package are under the same license as the package itself.
> #
> # Owner: bewitche
>
> %include Solaris.inc
> %use cluttergtk = clutter-gtk.spec
>
> Name:                    SUNWclutter-gtk
> Summary:                 clutter-gtk - GTK+ integration library for clutter
> Version:                 %{cluttergtk.version}
> URL:                     http://www.clutter-project.org/
> Source:                  
> http://www.clutter-project.org/sources/clutter-gtk/0.6/clutter-gtk-%{version}.tar.bz2
> SUNW_BaseDir:            %{_basedir}
> SUNW_Copyright:          SUNWclutter-gtk.copyright
> BuildRoot:               %{_tmppath}/%{name}-%{version}-build
> %include default-depend.inc
> Requires: SUNWgnome-base-libs
> Requires: SUNWclutter
> BuildRequires: SUNWgnome-base-libs-devel
>
> %package devel
> Summary:                 %{summary} - developer files
> SUNW_BaseDir:            %{_basedir}
> %include default-depend.inc
> Requires: %name
> Requires: SUNWgnome-base-libs-devel
> Requires: SUNWclutter-devel
>
>
> %prep
> rm -rf %name-%version
> mkdir %name-%version
> %cluttergtk.prep -d %name-%version
>
> %build
> export CFLAGS="%optflags"
> export LDFLAGS="%_ldflags"
> %cluttergtk.build -d %name-%version
>
> %install
> %cluttergtk.install -d %name-%version
> rm $RPM_BUILD_ROOT%{_libdir}/lib*.la
>
> %clean
> rm -rf $RPM_BUILD_ROOT
>
> %files
> %defattr (-, root, bin)
> %dir %attr (0755, root, bin) %{_libdir}
> %{_libdir}/lib*.so*
>
> %files devel
> %defattr (-, root, bin)
> %dir %attr (0755, root, bin) %{_libdir}
> %dir %attr (0755, root, other) %{_libdir}/pkgconfig
> %{_libdir}/pkgconfig/*
> %dir %attr (0755, root, sys) %{_datadir}
> %{_datadir}/gtk-doc
> %dir %attr (0755, root, bin) %{_includedir}
> %{_includedir}/*
>
> %changelog
> * Tue Jul  1 2008  chris.wang at sun.com
> - Initial build.
>
> #
> # spec file for package clutter
> #
> # Copyright 2008 Sun Microsystems, Inc.
> # This file and all modifications and additions to the pristine
> # package are under the same license as the package itself.
> #
> # Owner: bewitche
> #
>
> Name:         clutter
> License:      LGPL
> Group:        System/Libraries
> Version:      0.6.4
> Release:      1
> Distribution: Java Desktop System
> Vendor:       Sun Microsystems, Inc.
> Summary:      clutter - a library for creating fast, visually rich and 
> animated graphical user interfaces.
> Source:   
> http://www.clutter-project.org/sources/clutter/0.6/clutter-%{version}.tar.bz2
> URL:          http://www.clutter-project.org/
> BuildRoot:               %{_tmppath}/%{name}-%{version}-build
> %description
>
> %prep
> %setup -q -n clutter-%version
>
> %build
> CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
> if test "x$CPUS" = "x" -o $CPUS = 0; then
>    CPUS=1
> fi
>
> ./configure --prefix=%{_prefix}              \
>            --libexecdir=%{_libexecdir}      \
>            --sysconfdir=%{_sysconfdir}      \
>            --disable-static                 \
>            --enable-gtk-doc
> make -j$CPUS
>
> %install
> rm -rf $RPM_BUILD_ROOT
> make install DESTDIR=$RPM_BUILD_ROOT
>
>
>
> %clean
> rm -rf $RPM_BUILD_ROOT
>
> %files
> %defattr (-, root, bin)
> %dir %attr (0755, root, bin) %{_libdir}
> %{_libdir}/lib*.so*
>
>
> %changelog
> * Tue Jul  1 2008  chris.wang at sun.com
> - Initial build.
>
>
>
> #
> # spec file for package clutter-cairo
> #
> # Copyright 2008 Sun Microsystems, Inc.
> # This file and all modifications and additions to the pristine
> # package are under the same license as the package itself.
> #
> # Owner: bewitche
> #
>
> Summary:      clutter-cairo - An experimental clutter cairo 'drawable' actor.
> Name:         clutter-cairo
> Version:      0.6.2
> Release:      1
> License:      LGPL
> Group:        System/Libraries
> Distribution: Java Desktop System
> Vendor:       Sun Microsystems, Inc.
> Source:       
> http://www.clutter-project.org/sources/clutter-cairo/0.6/clutter-cairo-%{version}.tar.bz2
> URL:          http://www.clutter-project.org/
> BuildRoot:               %{_tmppath}/%{name}-%{version}-build
>
>
> %prep
> %setup -q -n clutter-cairo-%version
>
>
> %build
> PUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
> if test "x$CPUS" = "x" -o $CPUS = 0; then
>    CPUS=1
> fi
> ./configure --prefix=%{_prefix}              \
>            --libexecdir=%{_libexecdir}      \
>            --sysconfdir=%{_sysconfdir}      \
>            --disable-static                 \
>
> make -j$CPUS
> %install
> rm -rf $RPM_BUILD_ROOT
> make install DESTDIR=$RPM_BUILD_ROOT
>
> %clean
> rm -rf $RPM_BUILD_ROOT
>
> %files
> %defattr (-, root, bin)
> %dir %attr (0755, root, bin) %{_libdir}
> %{_libdir}/lib*.so*
>
>
> %changelog
> * Tue Jul  1 2008  chris.wang at sun.com
> - Initial build.
>
>
>
> #
> # spec file for package clutter-gst
> #
> # Copyright 2008 Sun Microsystems, Inc.
> # This file and all modifications and additions to the pristine
> # package are under the same license as the package itself.
> #
> # Owner: bewitche
> #
>
> Summary:      clutter-gst - clutter-gst - gstreamer integration library for 
> clutter
> Name:         clutter-gst
> Version:      0.6.1
> Release:      1
> License:      LGPL
> Group:        System/Libraries
> Distribution: Java Desktop System
> Vendor:       Sun Microsystems, Inc.
> Source:   
> http://www.clutter-project.org/sources/clutter-gst/0.6/clutter-gst-%{version}.tar.bz2
> URL:          http://www.clutter-project.org/
> BuildRoot:               %{_tmppath}/%{name}-%{version}-build
>
>
> %prep
> %setup -q -n clutter-gst-%version
>
> %build
> CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
> if test "x$CPUS" = "x" -o $CPUS = 0; then
>    CPUS=1
> fi
> ./configure --prefix=%{_prefix}              \
>            --libexecdir=%{_libexecdir}      \
>            --sysconfdir=%{_sysconfdir}      \
>            --disable-static
> make -j$CPUS
>
> %install
> rm -rf $RPM_BUILD_ROOT
> make install DESTDIR=$RPM_BUILD_ROOT
>
> %clean
> rm -rf $RPM_BUILD_ROOT
>
> %files
> %defattr (-, root, bin)
> %dir %attr (0755, root, bin) %{_libdir}
> %{_libdir}/lib*.so*
>
>
> %changelog
> * Tue Jul  1 2008  chris.wang at sun.com
> - Initial build.
>
>
>
> #
> # spec file for package clutter-gtk
> #
> # Copyright 2008 Sun Microsystems, Inc.
> # This file and all modifications and additions to the pristine
> # package are under the same license as the package itself.
> #
> # Owner: bewitche
> #
>
> Summary:      clutter-gtk - GTK+ integration library for clutter
> Name:         clutter-gtk
> Version:      0.6.1
> Release:      1
> License:      LGPL
> Group:        System/Libraries
> Distribution: Java Desktop System
> Vendor:       Sun Microsystems, Inc.
> Source:   
> http://www.clutter-project.org/sources/clutter-gtk/0.6/clutter-gtk-%{version}.tar.bz2
> URL:          http://www.clutter-project.org/
> BuildRoot:               %{_tmppath}/%{name}-%{version}-build
>
>
> %prep
> %setup -q -n clutter-gtk-%version
>
> %build
> CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
> if test "x$CPUS" = "x" -o $CPUS = 0; then
>    CPUS=1
> fi
> ./configure --prefix=%{_prefix}              \
>            --libexecdir=%{_libexecdir}      \
>            --sysconfdir=%{_sysconfdir}      \
>            --disable-static
> make -j$CPUS
>
> %install
> rm -rf $RPM_BUILD_ROOT
> make install DESTDIR=$RPM_BUILD_ROOT
>
> %clean
> rm -rf $RPM_BUILD_ROOT
>
> %files
> %defattr (-, root, bin)
> %dir %attr (0755, root, bin) %{_libdir}
> %{_libdir}/lib*.so*
>
>
> %changelog
> * Tue Jul  1 2008  chris.wang at sun.com
> - Initial build.
>
>
>
>



-- 
Andy
http://blog.sartek.net

Reply via email to