base-specs/gtkimageview.spec
author convert-repo
Tue, 28 Sep 2010 11:41:29 +0000
changeset 20122 34a34bffcb68
parent 18271 67cc34303081
child 20154 21bfc321b6da
permissions -rw-r--r--
update tags
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
17526
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
     1
#
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
     2
# spec file for package gtkimageview
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
     3
#
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
     4
# Copyright (c) 2010 Sun Microsystems, Inc.
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
     6
# package are under the same license as the package itself.
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
     7
#
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
     8
%define owner jedy
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
     9
# bugdb: http://trac.bjourne.webfactional.com/
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    10
#
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    11
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    12
%define OSR 13397:0.x
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    13
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    14
Name:         gtkimageview
17881
1eaaaad29d9a 2010-04-20 Christian Kelly <[email protected]>
chrisk
parents: 17864
diff changeset
    15
Vendor:       trac.bjourne.webfactional.com
17526
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    16
Version:      1.6.4
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    17
Release:      1
17622
5c86787cfb66 2010-03-02 Wang Xin <[email protected]>
jedy
parents: 17530
diff changeset
    18
Summary:      A simple image viewer widget for GTK+.
17526
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    19
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    20
Group:        System/Libraries
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    21
License:      LGPL
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    22
URL:          http://trac.bjourne.webfactional.com
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    23
Source:       http://trac.bjourne.webfactional.com/chrome/common/releases//%{name}-%{version}.tar.gz
17530
22f019fa1767 2010-02-10 Wang Xin <[email protected]>
jedy
parents: 17526
diff changeset
    24
# date:2010-02-10 owner:jedy type:bug bugid:39
17526
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    25
Patch1:       gtkimageview-01-cflags.diff 
17530
22f019fa1767 2010-02-10 Wang Xin <[email protected]>
jedy
parents: 17526
diff changeset
    26
# date:2010-02-10 owner:jedy type:bug bugid:38
17526
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    27
Patch2:       gtkimageview-02-void.diff 
18271
67cc34303081 2010-07-22 Jeff Cai <[email protected]>
qc161282
parents: 17881
diff changeset
    28
# date:2010-07-22 owner:jefftsai2050 type:bug doo:16597
67cc34303081 2010-07-22 Jeff Cai <[email protected]>
qc161282
parents: 17881
diff changeset
    29
Patch3:       gtkimageview-03-build-gtk-widget.diff 
17526
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    30
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    31
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    32
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    33
%description
17622
5c86787cfb66 2010-03-02 Wang Xin <[email protected]>
jedy
parents: 17530
diff changeset
    34
GtkImageView is a simple image viewer widget for GTK+.
17526
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    35
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    36
%prep
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    37
%setup -q
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    38
%patch1 -p1
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    39
%patch2 -p1
18271
67cc34303081 2010-07-22 Jeff Cai <[email protected]>
qc161282
parents: 17881
diff changeset
    40
%patch3 -p1
17526
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    41
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    42
%build
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    43
%ifos linux
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    44
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    45
if test "x$CPUS" = "x" -o $CPUS = 0; then
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    46
  CPUS=1
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    47
fi
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    48
%else
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    49
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    50
%endif
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    51
if test "x$CPUS" = "x" -o $CPUS = 0; then
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    52
  CPUS=1
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    53
fi
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    54
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    55
aclocal $ACLOCAL_FLAGS
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    56
glib-gettextize --force --copy
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    57
intltoolize --force --automake
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    58
gtkdocize
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    59
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    60
automake -a -f -c --gnu
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    61
autoconf
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    62
./configure --prefix=%{_prefix} \
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    63
            --bindir=%{_bindir} \
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    64
            --libdir=%{_libdir} \
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    65
            --mandir=%{_mandir} \
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    66
            --enable-compile-warnings=no \
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    67
            %gtk_doc_option \
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    68
            --disable-static
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    69
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    70
make -j $CPUS
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    71
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    72
%install
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    73
make DESTDIR=$RPM_BUILD_ROOT install
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    74
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    75
%clean 
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    76
rm -rf $RPM_BUILD_ROOT
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    77
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    78
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    79
%changelog
18271
67cc34303081 2010-07-22 Jeff Cai <[email protected]>
qc161282
parents: 17881
diff changeset
    80
* Thu Jul 22 2010 - [email protected]
67cc34303081 2010-07-22 Jeff Cai <[email protected]>
qc161282
parents: 17881
diff changeset
    81
- Add a tempoary patch -03-build-gtk-widget to fix build issue #16597
67cc34303081 2010-07-22 Jeff Cai <[email protected]>
qc161282
parents: 17881
diff changeset
    82
  This patch needs to rework later.
17622
5c86787cfb66 2010-03-02 Wang Xin <[email protected]>
jedy
parents: 17530
diff changeset
    83
* Tue Mar 02 2010 - [email protected]
5c86787cfb66 2010-03-02 Wang Xin <[email protected]>
jedy
parents: 17530
diff changeset
    84
- Update summary and description.
17526
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    85
* Fri Jan 22 2010 - [email protected]
53f0ca561419 2010-02-10 Jedy Wang <[email protected]>
jedy
parents:
diff changeset
    86
- Initial spec