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