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