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