base-specs/w3m.spec
author Jon Tibble <meths@btinternet.com>
Sat, 06 Oct 2012 16:11:50 +0100
branchs11express-2010-11
changeset 22109 db10202d5f6d
parent 17865 b7ff02e93f66
child 18266 113621622ba8
child 21415 84370d521ed4
child 21987 596716054b17
permissions -rw-r--r--
Added tag oi_151a_prestable7 for changeset 25dee50cecca
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11516
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
     1
#
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
     2
# spec file for package w3m
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
     3
#
11670
4cf1794354ef 2008-02-20 Halton Huo <[email protected]>
halton
parents: 11516
diff changeset
     4
# Copyright 2008 Sun Microsystems, Inc.
11516
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
     6
# package are under the same license as the package itself.
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
     7
#
16434
f21f22550fe9 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16432
diff changeset
     8
%define owner jerrytan
11516
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
     9
#
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    10
16432
b461d1440d14 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 15297
diff changeset
    11
%define OSR 6973:0.5
b461d1440d14 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 15297
diff changeset
    12
11516
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    13
Name:			w3m
16603
f691dc6010ef update for license
jerrytan
parents: 16434
diff changeset
    14
License:		MIT
11516
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    15
Group:			Applications/Internet
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    16
Version:		0.5.2
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    17
Release:	 	4
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    18
Distribution:		Java Desktop System
17865
b7ff02e93f66 2010-04-19 Christian Kelly <[email protected]>
chrisk
parents: 16603
diff changeset
    19
Vendor:			Sourceforge
11516
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    20
Summary:		A text-based web browser
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    21
Source:			http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
12589
392f358f1197 2008-06-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 12514
diff changeset
    22
%if %build_l10n
392f358f1197 2008-06-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 12514
diff changeset
    23
Source1:		l10n-configure.sh
392f358f1197 2008-06-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 12514
diff changeset
    24
%endif
392f358f1197 2008-06-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 12514
diff changeset
    25
# date:2008-06-04 owner:fujiwara type:bug bugster:6710470
392f358f1197 2008-06-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 12514
diff changeset
    26
Patch1:			w3m-01-build.diff
15297
b3e56452f826 rename libgc.so to libbgc.so
jerrytan
parents: 15150
diff changeset
    27
# date:2009-02-16 owner:jerrytan type:branding
b3e56452f826 rename libgc.so to libbgc.so
jerrytan
parents: 15150
diff changeset
    28
Patch2:			w3m-02-checkgc.diff
11516
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    29
URL:			http://w3m.sourceforge.net/
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    30
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    31
Docdir:			%{_defaultdocdir}/doc
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    32
Autoreqprov:		on
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    33
Prereq:                 /sbin/ldconfig
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    34
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    35
BuildPreReq: openssl-devel >= 0.9.8a, ncurses-devel
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    36
BuildPreReq: gdk-pixbuf-devel >= 0.16.0
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    37
BuildPreReq: libpng-devel >= 1.2.2, gc-devel
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    38
12514
26b3af71424e 2008-05-28 Rick Ju <[email protected]>
rickju
parents: 12109
diff changeset
    39
%define openssl_version 0.9.8a
26b3af71424e 2008-05-28 Rick Ju <[email protected]>
rickju
parents: 12109
diff changeset
    40
BuildRequires: openssl-devel >= %{openssl_version}
26b3af71424e 2008-05-28 Rick Ju <[email protected]>
rickju
parents: 12109
diff changeset
    41
11516
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    42
%description
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    43
W3m is a pager adapted to World Wide Web. W3m is a text-based WWW
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    44
browser as well as a pager.
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    45
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    46
%prep
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    47
%setup -q
12589
392f358f1197 2008-06-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 12514
diff changeset
    48
%patch1 -p1
15297
b3e56452f826 rename libgc.so to libbgc.so
jerrytan
parents: 15150
diff changeset
    49
%patch2 -p1
11516
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    50
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    51
%build
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    52
%ifos linux
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    53
if [ -x /usr/bin/getconf ]; then
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    54
  CPUS=`getconf _NPROCESSORS_ONLN`
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    55
fi
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    56
%else
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    57
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    58
%endif
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    59
if test "x$CPUS" = "x" -o $CPUS = 0; then
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    60
  CPUS=1
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    61
fi
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    62
12589
392f358f1197 2008-06-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 12514
diff changeset
    63
intltoolize -c -f --automake
392f358f1197 2008-06-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 12514
diff changeset
    64
392f358f1197 2008-06-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 12514
diff changeset
    65
%if %build_l10n
392f358f1197 2008-06-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 12514
diff changeset
    66
bash -x %SOURCE1 --enable-copyright
392f358f1197 2008-06-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 12514
diff changeset
    67
%endif
392f358f1197 2008-06-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 12514
diff changeset
    68
392f358f1197 2008-06-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 12514
diff changeset
    69
# the orignal aclocal.m4 defines AC_W3M_SSL_DIGEST_AUTH
392f358f1197 2008-06-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 12514
diff changeset
    70
mv aclocal.m4 ssl.m4
392f358f1197 2008-06-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 12514
diff changeset
    71
aclocal -I .
392f358f1197 2008-06-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 12514
diff changeset
    72
autoconf
11516
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    73
CFLAGS="$RPM_OPT_FLAGS"			\
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    74
./configure --prefix=%{_prefix}         \
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    75
            --mandir=%{_mandir}         \
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    76
            --libdir=%{_libdir}         \
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    77
            --libexecdir=%{_libexecdir} \
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    78
            --sysconfdir=%{_sysconfdir} \
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    79
            --with-browser=/usr/bin/firefox \
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    80
12589
392f358f1197 2008-06-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 12514
diff changeset
    81
touch po/stamp-it
13418
12d0f57ea32e 2008-09-05 Dave Lin <[email protected]>
davelam
parents: 12589
diff changeset
    82
#FIXME: If the simultaneously running job > 2, it builds failed
12d0f57ea32e 2008-09-05 Dave Lin <[email protected]>
davelam
parents: 12589
diff changeset
    83
#make -j $CPUS
12d0f57ea32e 2008-09-05 Dave Lin <[email protected]>
davelam
parents: 12589
diff changeset
    84
make -j 2
11516
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    85
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    86
%install
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    87
make install DESTDIR=$RPM_BUILD_ROOT
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    88
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    89
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    90
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    91
%clean
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    92
rm -rf $RPM_BUILD_ROOT
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    93
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    94
%post   -p /sbin/ldconfig
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    95
%postun -p /sbin/ldconfig
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    96
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    97
%files
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    98
%files
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    99
%defattr(-, root, root)
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   100
%doc Bonus ChangeLog NEWS README TODO doc doc-jp
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   101
%{_sysconfdir}/w3m
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   102
%{_bindir}/w3m
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   103
%dir %{_libexecdir}/w3m
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   104
%{_libexecdir}/w3m/inflate
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   105
%dir %{_libexecdir}/w3m/cgi-bin
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   106
%{_libexecdir}/w3m/cgi-bin/w3mbookmark
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   107
%{_libexecdir}/w3m/cgi-bin/w3mhelperpanel
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   108
%{_mandir}/man1/w3m.1*
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   109
%{_mandir}/ja/man1/w3m.1*
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   110
%{_datadir}/locale/*/*/*
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   111
%{_datadir}/w3m/w3mhelp-funcdesc.en.pl
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   112
%{_datadir}/w3m/w3mhelp-funcdesc.ja.pl
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   113
%{_datadir}/w3m/w3mhelp-funcname.pl
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   114
%{_datadir}/w3m/w3mhelp.html
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   115
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   116
%changelog
13418
12d0f57ea32e 2008-09-05 Dave Lin <[email protected]>
davelam
parents: 12589
diff changeset
   117
* Fri Sep 05 2008 - [email protected]
12d0f57ea32e 2008-09-05 Dave Lin <[email protected]>
davelam
parents: 12589
diff changeset
   118
- commented out the line "make -j $CPU" and specified the simultaneously running job as 2, 
12d0f57ea32e 2008-09-05 Dave Lin <[email protected]>
davelam
parents: 12589
diff changeset
   119
  it built failed when the job is 16
12589
392f358f1197 2008-06-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 12514
diff changeset
   120
* Wed Jun 04 2008 - [email protected]
392f358f1197 2008-06-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 12514
diff changeset
   121
- Add w3m-01-build.diff to enable nls.
12514
26b3af71424e 2008-05-28 Rick Ju <[email protected]>
rickju
parents: 12109
diff changeset
   122
* Mon May 26 2008 - [email protected]
26b3af71424e 2008-05-28 Rick Ju <[email protected]>
rickju
parents: 12109
diff changeset
   123
- Add openssl dependency
12109
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents: 11684
diff changeset
   124
* Mon Apr 14 2008 - [email protected]
b84e142ba214 2008-04-14 Halton Huo <[email protected]>
halton
parents: 11684
diff changeset
   125
- Remove %gtk_doc_option when configure because there is no this option.
11683
a0bb918324a2 2008-02-21 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11670
diff changeset
   126
* Thu Feb 21 2008 - [email protected]
11684
4a101e69cad9 change of tactics....
laca
parents: 11683
diff changeset
   127
- delete all autotoolization, particularly intltoolize,
4a101e69cad9 change of tactics....
laca
parents: 11683
diff changeset
   128
  since intltool is not used at all in this module
11670
4cf1794354ef 2008-02-20 Halton Huo <[email protected]>
halton
parents: 11516
diff changeset
   129
* Wed Feb 20 2008 - [email protected]
4cf1794354ef 2008-02-20 Halton Huo <[email protected]>
halton
parents: 11516
diff changeset
   130
- Remove commented lines.
11516
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   131
* Wed Jan 02 2008 - [email protected]
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   132
- spilit from SFEw3m.spec