gtkimageview.spec revision 18373
20779N/A#
20779N/A# spec file for package gtkimageview
20779N/A#
20779N/A# Copyright (c) 2010 Sun Microsystems, Inc.
20779N/A# This file and all modifications and additions to the pristine
20779N/A# package are under the same license as the package itself.
20779N/A#
20779N/A%define owner jedy
20779N/A# bugdb: http://trac.bjourne.webfactional.com/
20779N/A#
20779N/A
20779N/A%define OSR 13397:0.x
20779N/A
20779N/AName: gtkimageview
20779N/AVersion: 1.6.4
20779N/ARelease: 1
20824N/ASummary: A simple image viewer widget for GTK+.
20779N/A
20779N/AGroup: System/Libraries
20779N/ALicense: LGPL
20779N/AURL: http://trac.bjourne.webfactional.com
20779N/ASource: http://trac.bjourne.webfactional.com/chrome/common/releases//%{name}-%{version}.tar.gz
20779N/A# date:2010-02-10 owner:jedy type:bug bugid:39
20779N/APatch1: gtkimageview-01-cflags.diff
20779N/A# date:2010-02-10 owner:jedy type:bug bugid:38
20779N/APatch2: gtkimageview-02-void.diff
20779N/A
20779N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
20779N/A
20779N/A%description
20779N/AGtkImageView is a simple image viewer widget for GTK+.
20779N/A
20779N/A%prep
20779N/A%setup -q
20779N/A%patch1 -p1
20779N/A%patch2 -p1
20779N/A
20779N/A%build
20779N/A%ifos linux
20779N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
20779N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
20779N/A CPUS=1
20779N/Afi
20779N/A%else
20779N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
20779N/A%endif
20805N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
20805N/A CPUS=1
20805N/Afi
20805N/A
20805N/Aaclocal $ACLOCAL_FLAGS
20779N/Aglib-gettextize --force --copy
20779N/Aintltoolize --force --automake
20779N/Agtkdocize
20779N/A
20779N/Aautomake -a -f -c --gnu
20779N/Aautoconf
20779N/A./configure --prefix=%{_prefix} \
20779N/A --bindir=%{_bindir} \
20779N/A --libdir=%{_libdir} \
20779N/A --mandir=%{_mandir} \
20779N/A --enable-compile-warnings=no \
20779N/A %gtk_doc_option \
20799N/A --disable-static
20779N/A
20799N/Amake -j $CPUS
20824N/A
20799N/A%install
20779N/Amake DESTDIR=$RPM_BUILD_ROOT install
20779N/A
20779N/A%clean
20779N/Arm -rf $RPM_BUILD_ROOT
20779N/A
20779N/A
20779N/A%changelog
20779N/A* Tue Mar 02 2010 - jedy.wang@sun.com
20779N/A- Update summary and description.
20779N/A* Fri Jan 22 2010 - jedy.wang@sun.com
20779N/A- Initial spec
20779N/A