clutter-gst.spec revision 18396
10139N/A#
10139N/A# spec file for package clutter-gst
10139N/A#
10139N/A# Copyright 2010 Sun Microsystems, Inc.
10139N/A# This file and all modifications and additions to the pristine
10139N/A# package are under the same license as the package itself.
10139N/A#
10139N/A%define owner lin
10139N/A#
10139N/A
10139N/A%define OSR 12686:0.8.0
10139N/A
10139N/ASummary: clutter-gst - gstreamer integration library for clutter
10139N/AName: clutter-gst
10139N/AVersion: 0.10.0
10261N/ARelease: 1
10139N/ALicense: LGPL
10261N/AGroup: System/Libraries
10261N/ADistribution: Java Desktop System
10139N/AVendor: Sun Microsystems, Inc.
10139N/ASource: http://www.clutter-project.org/sources/clutter-gst/0.10/clutter-gst-%{version}.tar.bz2
10139N/A# date:2010-02-23 owner:chrisk type:bug
10139N/APatch1: clutter-gst-01-build.diff
10139N/AURL: http://www.clutter-project.org/
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/A
10139N/A%prep
10139N/A%setup -q -n clutter-gst-%version
10139N/A%patch1 -p1
10139N/A
10139N/A#FIXME: remove uncompatible m4 files
10139N/Arm -f build/autotools/lt~obsolete.m4
10139N/Arm -f build/autotools/ltoptions.m4
10139N/Arm -f build/autotools/libtool.m4
10139N/Arm -f build/autotools/ltsugar.m4
10139N/Arm -f build/autotools/ltversion.m4
10139N/A
10139N/A%build
10139N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10139N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10139N/A CPUS=1
10139N/Afi
10139N/A
10139N/Aaclocal $ACLOCAL_FLAGS -I build/autotools
10139N/Alibtoolize --force
10139N/Aautoheader
10139N/Aautomake -a -f -c --gnu
10139N/Aautoconf
10139N/A
10139N/A./configure --prefix=%{_prefix} \
10139N/A --libexecdir=%{_libexecdir} \
10139N/A --sysconfdir=%{_sysconfdir} \
10139N/A --disable-gtk-doc \
10139N/A%if %debug_build
10139N/A --enable-debug=yes \
10139N/A%else
10139N/A --enable-debug=no \
10139N/A%endif
10139N/A
10261N/A
10261N/Amake -j $CPUS
10139N/A
10257N/A%install
10263N/Arm -rf $RPM_BUILD_ROOT
10257N/Amake install DESTDIR=$RPM_BUILD_ROOT
10139N/A#Clean up unpackaged files
10139N/Afind $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
10139N/Afind $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
10139N/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A%files
10139N/A%defattr (-, root, bin)
10139N/A%dir %attr (0755, root, bin) %{_libdir}
10139N/A%{_libdir}/lib*.so*
10139N/A
10139N/A%changelog
10139N/A* Mon Mar 08 2010 halton.huo@sun.com
10139N/A- Revert to 0.10.0, hold bumping until new OSR filed.
10139N/A* Wed Mar 03 2010 halton.huo@sun.com
10139N/A- Bump to 1.0.0
10139N/A- Remove clutter-gst-01-build.diff, not needed.
10139N/A- Remove uncompatible m4 files
10139N/A* Tue Feb 23 2010 christian.kelly@sun.com
10139N/A- Add clutter-gst-01-build.diff, fix build issue.
10139N/A* Tue Aug 25 2009 lin.ma@sun.com
10139N/A- Bump to 0.10.0
10139N/A* Fri Jun 26 2009 chris.wang@sun.com
10139N/A- Change owner to lin
10139N/A* Tue Jul 1 2008 chris.wang@sun.com
10139N/A- Initial build.
10139N/A