13582N/A#
13582N/A# spec file for package babl
18817N/A# Copyright 2010 Sun Microsystems, Inc.
16131N/A# This file and all modifications and additions to the pristine
16131N/A# package are under the same license as the package itself.
13582N/A#
17185N/A%define owner leon.sha
13582N/A#
17176N/A
17176N/A%define OSR 9548:0.0.22
17176N/A
15438N/AName: babl
18817N/ALicense: LGPLv3
15438N/AGroup: Applications/Multimedia
18851N/AVersion: 0.1.2
15438N/ARelease: 1
15438N/ADistribution: Java Desktop System
18644N/AVendor: www.gegl.org
15438N/ASummary: Babl is a dynamic, any to any, pixel format conversion library.
17191N/ASource: ftp://ftp.gtk.org/pub/babl/0.1/%{name}-%{version}.tar.bz2
18851N/A# date:2010-06-02 owner:yippi type:bug
18851N/APatch1: babl-01-no-pthread.diff
15438N/AURL: http://www.gegl.org/babl/
15438N/A%package devel
15438N/ASummary: %{summary} - development files
15438N/AGroup: System/GUI/GNOME
15438N/ARequires: %name
13582N/A
13582N/A%prep
13582N/A%setup -q
13582N/A%patch1 -p1
18817N/A
13582N/A%build
13582N/A%ifos linux
13582N/Aif [ -x /usr/bin/getconf ]; then
13582N/A CPUS=`getconf _NPROCESSORS_ONLN`
13582N/Afi
13582N/A%else
13582N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
13582N/A%endif
13582N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
13582N/A CPUS=1
13582N/Afi
15438N/Aexport CFLAGS="%{optflags}"
15438N/Aexport CXXFLAGS="%{?cxx_optflags}"
15438N/Aexport LDFLAGS="%{?_ldflags}"
15438N/Aaclocal
15438N/Alibtoolize --force
15438N/Aglib-gettextize --force
15438N/Aautomake -a -c -f
15438N/Aautoconf
15438N/A./configure --prefix=%{_prefix} \
15438N/A --libdir=%{_libdir} \
15438N/A --sysconfdir=%{_sysconfdir} \
15438N/A --mandir=%{_mandir} \
15438N/A --datadir=%{_datadir} \
15438N/A --infodir=%{_datadir}/info
15438N/A
13582N/Amake -j$CPUS
13582N/A
13582N/A%install
15438N/A#rm -rf $RPM_BUILD_ROOT
15438N/A#rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
15438N/Amake DESTDIR=$RPM_BUILD_ROOT install
13582N/A
13582N/A%clean
13582N/Arm -rf $RPM_BUILD_ROOT
13582N/A
13582N/A%files
15438N/A%defattr (-, root, root)
15438N/A%{_libdir}/lib*.so*
15438N/A%{_libdir}/babl-0.0/*.so*
15438N/A%{_libdir}/pkgconfig/*
15438N/A
15438N/A%files devel
15438N/A%defattr (-, root, root)
15438N/A%{_includedir}/babl-0.0/babl/*
13582N/A
13582N/A%changelog
18851N/A* Tue Jun 08 2010 - brian.cameron@oracle.com
18851N/A- Update again to 0.1.2 after addressing the compiler issue.
18835N/A* Fri Jun 04 2010 - brian.cameron@oracle.com
18835N/A- Backout to 0.1.0 since the compiler has problems building 0.1.2.
18817N/A* Wed Jun 02 2010 - brian.cameron@oracle.com
18817N/A- Bump to 0.1.2.
18817N/A* Tue Sep 01 2009 - leon.sha@sun.com
18817N/A- Bump to 0.1.0.
16714N/A* Fri Jun 26 2009 - chris.wang@sun.com
18817N/A- Change owner of spec and patch to leon.sha.
15438N/A* Wed Nov 26 2008 - chris.wang@sun.com
15438N/A- Initial create.