SUNWgqview.spec
author davelam
Sat, 18 Apr 2009 12:26:03 +0000
changeset 15650 dbcf7e3715dd
parent 13619 d1eccd3364d8
child 15833 7f9243acbaba
permissions -rw-r--r--
2009-04-18 Dave Lin <[email protected]> Update dependencies for the following spec files: o move the dependencies to the split gnome-base-libs o add other missed dependencies
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12845
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     1
#
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     2
#
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     3
# spec file for package SUNWgqview
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     4
#
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     5
# includes module(s): gqview
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     6
#
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     7
# Copyright 2008 Sun Microsystems, Inc.
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     8
# This file and all modifications and additions to the pristine
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     9
# package are under the same license as the package itself.
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    10
#
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    11
# Owner: bewitche
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    12
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    13
%include Solaris.inc
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    14
%use gqview = gqview.spec
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    15
Name:                    SUNWgqview
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    16
Summary:                 GQview - Image browser
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    17
URL:                     http://gqview.sourceforge.net/
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    18
Version:                 %{gqview.version}
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    19
Source:                  http://prdownloads.sourceforge.net/gqview/gqview-%{version}.tar.gz
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    20
SUNW_BaseDir:            %{_basedir}
12851
c60e8a81e784 2008-07-18 Chris Wang <[email protected]>
bewitche
parents: 12845
diff changeset
    21
SUNW_Copyright:		 SUNWgqview.copyright
12845
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    22
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    23
%include default-depend.inc
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    24
%if %option_with_gnu_iconv
15650
dbcf7e3715dd 2009-04-18 Dave Lin <[email protected]>
davelam
parents: 13619
diff changeset
    25
Requires: SUNWgtk2
12845
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    26
Requires: SUNWgnu-libiconv
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    27
Requires: SUNWgnu-gettext
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    28
%else
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    29
Requires: SUNWuiu8
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    30
%endif
15650
dbcf7e3715dd 2009-04-18 Dave Lin <[email protected]>
davelam
parents: 13619
diff changeset
    31
BuildRequires: SUNWgtk2-devel
12890
00c2a9392de0 2008-07-23 Damien Carbery <[email protected]>
dcarbery
parents: 12851
diff changeset
    32
BuildRequires: SUNWgnome-common-devel
12845
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    33
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    34
%if %build_l10n
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    35
%package l10n
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    36
Summary:                 %{summary} - l10n files
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    37
SUNW_BaseDir:            %{_basedir}
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    38
%include default-depend.inc
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    39
Requires:                %{name}
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    40
%endif
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    41
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    42
%prep
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    43
rm -rf %name-%version
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    44
mkdir %name-%version
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    45
%gqview.prep -d %name-%version
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    46
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    47
%build
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    48
export CFLAGS="%optflags -DEDITOR_GIMP"
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    49
%if %option_with_gnu_iconv
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    50
export CFLAGS="$CFLAGS -I/usr/gnu/include -L/usr/gnu/lib -R/usr/gnu/lib -lintl -lsocket"
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    51
%endif
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    52
export LDFLAGS="-lX11 -lsocket"
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    53
%gqview.build -d %name-%version
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    54
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    55
%install
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    56
%gqview.install -d %name-%version
12909
04c4949f545b 2008-07-23 Damien Carbery <[email protected]>
dcarbery
parents: 12890
diff changeset
    57
if [ -d $RPM_BUILD_ROOT/%{_libdir}/locale ]; then
04c4949f545b 2008-07-23 Damien Carbery <[email protected]>
dcarbery
parents: 12890
diff changeset
    58
  mv $RPM_BUILD_ROOT/%{_libdir}/locale $RPM_BUILD_ROOT/%{_datadir}/
04c4949f545b 2008-07-23 Damien Carbery <[email protected]>
dcarbery
parents: 12890
diff changeset
    59
  rm -r  $RPM_BUILD_ROOT/%{_libdir}
04c4949f545b 2008-07-23 Damien Carbery <[email protected]>
dcarbery
parents: 12890
diff changeset
    60
fi
12845
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    61
%if %{build_l10n}
13214
c3cfbc5a70de 2008-08-21 Chris Wang <[email protected]>
bewitche
parents: 12909
diff changeset
    62
mv $RPM_BUILD_ROOT%{_datadir}/locale/zh_CN.GB2312 $RPM_BUILD_ROOT%{_datadir}/locale/zh_CN 
12845
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    63
%else
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    64
rm -r  $RPM_BUILD_ROOT/%{_datadir}/locale
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    65
%endif
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    66
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    67
%clean
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    68
rm -rf $RPM_BUILD_ROOT
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    69
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    70
%files
13619
d1eccd3364d8 2008-09-17 Chris Wang <[email protected]>
bewitche
parents: 13214
diff changeset
    71
%doc -d gqview-%{gqview.version} README AUTHORS
d1eccd3364d8 2008-09-17 Chris Wang <[email protected]>
bewitche
parents: 13214
diff changeset
    72
%doc(bzip2) -d gqview-%{gqview.version} COPYING ChangeLog NEWS
d1eccd3364d8 2008-09-17 Chris Wang <[email protected]>
bewitche
parents: 13214
diff changeset
    73
%dir %attr (0755, root, other) %{_datadir}/doc
12845
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    74
%defattr(-, root, bin)
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    75
%dir %attr (0755, root, bin) %{_bindir}
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    76
%{_bindir}/*
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    77
%dir %attr (0755, root, sys) %{_datadir}
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    78
%dir %attr (0755, root, other) %{_datadir}/applications
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    79
%{_datadir}/applications/*
13619
d1eccd3364d8 2008-09-17 Chris Wang <[email protected]>
bewitche
parents: 13214
diff changeset
    80
%{_datadir}/doc/gqview-%{gqview.version}
12845
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    81
%dir %attr(0755, root, bin) %{_mandir}
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    82
%dir %attr(0755, root, bin) %{_mandir}/man1
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    83
%{_mandir}/man*/*
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    84
%dir %attr (0755, root, other) %{_datadir}/pixmaps
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    85
%{_datadir}/pixmaps/*
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    86
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    87
%if %build_l10n
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    88
%files l10n
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    89
%defattr (-, root, bin)
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    90
%dir %attr (0755, root, sys) %{_datadir}
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    91
%attr (-, root, other) %{_datadir}/locale
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    92
%endif
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    93
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    94
%changelog
13619
d1eccd3364d8 2008-09-17 Chris Wang <[email protected]>
bewitche
parents: 13214
diff changeset
    95
* Mon Sep 16 2008 - [email protected]
d1eccd3364d8 2008-09-17 Chris Wang <[email protected]>
bewitche
parents: 13214
diff changeset
    96
- Revised copyright file
13214
c3cfbc5a70de 2008-08-21 Chris Wang <[email protected]>
bewitche
parents: 12909
diff changeset
    97
* Wed Aug 21 2008 - [email protected]
c3cfbc5a70de 2008-08-21 Chris Wang <[email protected]>
bewitche
parents: 12909
diff changeset
    98
- Move #6734879's fix to Solaris spec from base spec
12890
00c2a9392de0 2008-07-23 Damien Carbery <[email protected]>
dcarbery
parents: 12851
diff changeset
    99
* Wed Jul 23 2008 - [email protected]
12909
04c4949f545b 2008-07-23 Damien Carbery <[email protected]>
dcarbery
parents: 12890
diff changeset
   100
- Check that installed dirs exist before removing or moving them.
04c4949f545b 2008-07-23 Damien Carbery <[email protected]>
dcarbery
parents: 12890
diff changeset
   101
04c4949f545b 2008-07-23 Damien Carbery <[email protected]>
dcarbery
parents: 12890
diff changeset
   102
* Wed Jul 23 2008 - [email protected]
12890
00c2a9392de0 2008-07-23 Damien Carbery <[email protected]>
dcarbery
parents: 12851
diff changeset
   103
- Add Build/Requires SUNWgnome-base-libs/-devel because gtk+ is required. Also
00c2a9392de0 2008-07-23 Damien Carbery <[email protected]>
dcarbery
parents: 12851
diff changeset
   104
  add BuildRequires SUNWgnome-common-devel because pkg-config is used by
00c2a9392de0 2008-07-23 Damien Carbery <[email protected]>
dcarbery
parents: 12851
diff changeset
   105
  configure.
00c2a9392de0 2008-07-23 Damien Carbery <[email protected]>
dcarbery
parents: 12851
diff changeset
   106
00c2a9392de0 2008-07-23 Damien Carbery <[email protected]>
dcarbery
parents: 12851
diff changeset
   107
* Tue Jul  7 2008 - [email protected] 
12845
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   108
- Initial build.
f1d3a2c66ccc 2008-07-18 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   109