SUNWclutter.spec revision 19163
338N/A#
338N/A#
338N/A# spec file for package SUNWclutter
338N/A#
338N/A# includes module(s): clutter
338N/A#
338N/A# Copyright 2010 Sun Microsystems, Inc.
338N/A# This file and all modifications and additions to the pristine
338N/A# package are under the same license as the package itself.
338N/A#
338N/A%define owner lin
338N/A%include Solaris.inc
338N/A%use clutter = clutter.spec
338N/A
338N/AName: SUNWclutter
338N/ALicense: %{clutter.license}
338N/AIPS_package_name: library/desktop/clutter
338N/AMeta(info.classification): %{classification_prefix}:System/Multimedia Libraries
873N/ASummary: clutter - a library for creating fast, visually rich and animated graphical user interfaces.
338N/AVersion: %{clutter.version}
338N/AURL: http://www.clutter-project.org/
338N/ASource: %{name}-manpages-0.1.tar.gz
338N/ASUNW_BaseDir: %{_basedir}
338N/ASUNW_Copyright: SUNWclutter.copyright
868N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
338N/A
338N/A%include default-depend.inc
338N/A%include gnome-consolidation.inc
338N/ARequires: SUNWgtk2
338N/ARequires: SUNWxorg-mesa
338N/ARequires: SUNWgobject-introspection
338N/ABuildRequires: SUNWgobject-introspection-devel
338N/ABuildRequires: SUNWuiu8
338N/ABuildRequires: SUNWxwinc
338N/ABuildRequires: SUNWxorg-headers
1177N/ABuildRequires: SUNWxorg-mesa
338N/A
338N/A%package devel
338N/ASummary: %{summary} - developer files
338N/ASUNW_BaseDir: %{_basedir}
338N/A%include default-depend.inc
338N/A%include gnome-consolidation.inc
338N/ARequires: %name
338N/ARequires: SUNWgtk2-devel
338N/A
338N/A%prep
338N/Arm -rf %name-%version
2095N/Amkdir %name-%version
2095N/A%clutter.prep -d %name-%version
2095N/Acd %{_builddir}/%name-%version
2095N/Agzcat %SOURCE0 | tar -xf -
2095N/A
338N/A# Force building with mesa headers & libraries to make sure we build the
338N/A# same on all systems, whether or not proprietary GL from Sun or nVidia is
338N/A# also installed and don't end up accidentally depending on those.
338N/A# Unfortunately, xscreensaver is hardcoded to use <GL/gl.h> style paths,
338N/A# so we create local install path to work around that.
338N/Amkdir -p mesa/GL
338N/Aln -s /usr/include/mesa/*.h mesa/GL
338N/A%define mesa_includes -I%{_builddir}/%name-%version/mesa
338N/A%define mesa_libpath -L/usr/lib/mesa
338N/A
338N/A%build
338N/Aexport CFLAGS="%{optflags} %mesa_includes -I/usr/X11/include"
338N/Aexport CXXFLAGS="%{?cxx_optflags} %mesa_includes"
338N/Aexport LDFLAGS="%mesa_libpath %{?_ldflags} -L/usr/X11/lib -R/usr/X11/lib -lX11"
338N/A%clutter.build -d %name-%version
338N/A
338N/A%install
338N/A%clutter.install -d %name-%version
338N/Afind $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
338N/Afind $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
338N/A
338N/Acd %{_builddir}/%name-%version/sun-manpages
338N/Amake install DESTDIR=$RPM_BUILD_ROOT
338N/A
338N/A%clean
338N/Arm -rf $RPM_BUILD_ROOT
338N/A
338N/A%files
338N/A%defattr (-, root, bin)
338N/A%dir %attr (0755, root, bin) %{_libdir}
338N/A%{_libdir}/lib*.so*
338N/A%{_libdir}/girepository-1.0/*
338N/A%dir %attr (0755, root, sys) %{_datadir}
338N/A%{_datadir}/gir-1.0/*
338N/A%dir %attr (0755, root, bin) %{_mandir}
338N/A%{_mandir}/*/*
338N/A%doc -d clutter-%{clutter.version} AUTHORS README
338N/A%doc(bzip2) -d clutter-%{clutter.version} ChangeLog COPYING NEWS
338N/A%dir %attr (0755, root, other) %{_datadir}/doc
338N/A
338N/A%files devel
338N/A%defattr (-, root, bin)
338N/A%dir %attr (0755, root, bin) %{_libdir}
338N/A%dir %attr (0755, root, other) %{_libdir}/pkgconfig
338N/A%{_libdir}/pkgconfig/*
338N/A%dir %attr (0755, root, sys) %{_datadir}
338N/A%{_datadir}/gtk-doc
338N/A%dir %attr (0755, root, bin) %{_includedir}
338N/A%{_includedir}/*
338N/A
338N/A
338N/A%changelog
338N/A* Fri Oct 22 2010 - brian.cameron@oracle.com
338N/A- Remove gir-repository dependency.
338N/A* Tue Jun 08 2010 - Michal.Pryc@Oracle.Com
338N/A- Updated BuildRequires to fit SourceJuicer.
338N/A* Fri Mar 05 2010 lin.ma@sun.com
338N/A- Copy from xscreensaver, enable SPARC build
338N/A* Mon Jan 04 2009 - halton.huo@sun.com
338N/A- Move CFLAGS and LDFLAGS from base-specs/clutter.spec
338N/A* Tue Aug 25 2009 - lin.ma@sun.com
338N/A- Add SUNWgir-repository dependency
338N/A* Tue Aug 25 2009 - halton.huo@sun.com
338N/A- Update files when version bump to 1.0.2
338N/A- Add dependency to SUNWgobject-introspection
338N/A* Fri Jun 26 2009 Chris.wang@sun.com
338N/A- Change owner to lin
338N/A* Thu Mar 26 2009 Chris.wang@sun.com
338N/A- Correct copyright file in file section
338N/A* Tue Mar 24 2009 chris.wang@sun.com
338N/A- Add SUNWxorg-mesa to Require
338N/A* Fri Feb 20 2009 chris.wang@sun.com
338N/A- Add manpage
338N/A* Tue Jul 1 2008 chris.wang@sun.com
338N/A- Initial build.
338N/A
338N/A