base-specs/gtkimageview.spec
author Jon Tibble <meths@btinternet.com>
Sat, 06 Oct 2012 16:11:50 +0100
branchs11express-2010-11
changeset 22109 db10202d5f6d
parent 17881 1eaaaad29d9a
child 18271 67cc34303081
permissions -rw-r--r--
Added tag oi_151a_prestable7 for changeset 25dee50cecca

#
# spec file for package gtkimageview
#
# Copyright (c) 2010 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
%define owner jedy
# bugdb: http://trac.bjourne.webfactional.com/
#

%define OSR 13397:0.x

Name:         gtkimageview
Vendor:       trac.bjourne.webfactional.com
Version:      1.6.4
Release:      1
Summary:      A simple image viewer widget for GTK+.

Group:        System/Libraries
License:      LGPL
URL:          http://trac.bjourne.webfactional.com
Source:       http://trac.bjourne.webfactional.com/chrome/common/releases//%{name}-%{version}.tar.gz
# date:2010-02-10 owner:jedy type:bug bugid:39
Patch1:       gtkimageview-01-cflags.diff 
# date:2010-02-10 owner:jedy type:bug bugid:38
Patch2:       gtkimageview-02-void.diff 

BuildRoot:    %{_tmppath}/%{name}-%{version}-build

%description
GtkImageView is a simple image viewer widget for GTK+.

%prep
%setup -q
%patch1 -p1
%patch2 -p1

%build
%ifos linux
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
if test "x$CPUS" = "x" -o $CPUS = 0; then
  CPUS=1
fi
%else
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
%endif
if test "x$CPUS" = "x" -o $CPUS = 0; then
  CPUS=1
fi

aclocal $ACLOCAL_FLAGS
glib-gettextize --force --copy
intltoolize --force --automake
gtkdocize

automake -a -f -c --gnu
autoconf
./configure --prefix=%{_prefix} \
            --bindir=%{_bindir} \
            --libdir=%{_libdir} \
            --mandir=%{_mandir} \
            --enable-compile-warnings=no \
            %gtk_doc_option \
            --disable-static

make -j $CPUS

%install
make DESTDIR=$RPM_BUILD_ROOT install

%clean 
rm -rf $RPM_BUILD_ROOT


%changelog
* Tue Mar 02 2010 - [email protected]
- Update summary and description.
* Fri Jan 22 2010 - [email protected]
- Initial spec