base-specs/w3m.spec
author laca
Thu, 21 Feb 2008 04:49:12 +0000
changeset 11684 4a101e69cad9
parent 11683 a0bb918324a2
child 12109 b84e142ba214
permissions -rw-r--r--
change of tactics.... 2008-02-21 Laszlo (Laca) Peter <[email protected]> * base-specs/w3m.spec: delete all autotoolization, particularly intltoolize, since intltool is not used at all in this module properly autotoolize to avoid infinite loop in intltool Makefile rules
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
#
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
     8
# Owner:halton
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
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    20
URL:			http://w3m.sourceforge.net/
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    21
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    22
Docdir:			%{_defaultdocdir}/doc
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    23
Autoreqprov:		on
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    24
Prereq:                 /sbin/ldconfig
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    25
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    26
BuildPreReq: openssl-devel >= 0.9.8a, ncurses-devel
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    27
BuildPreReq: gdk-pixbuf-devel >= 0.16.0
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    28
BuildPreReq: libpng-devel >= 1.2.2, gc-devel
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    29
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    30
%description
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    31
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
    32
browser as well as a pager.
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    33
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    34
%prep
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    35
%setup -q
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    36
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    37
%build
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    38
%ifos linux
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    39
if [ -x /usr/bin/getconf ]; then
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    40
  CPUS=`getconf _NPROCESSORS_ONLN`
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    41
fi
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    42
%else
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    43
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    44
%endif
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    45
if test "x$CPUS" = "x" -o $CPUS = 0; then
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    46
  CPUS=1
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    47
fi
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
CFLAGS="$RPM_OPT_FLAGS"			\
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    50
./configure --prefix=%{_prefix}         \
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    51
            --mandir=%{_mandir}         \
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    52
            --libdir=%{_libdir}         \
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    53
            --libexecdir=%{_libexecdir} \
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    54
            --sysconfdir=%{_sysconfdir} \
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    55
            --with-browser=/usr/bin/firefox \
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    56
            %gtk_doc_option
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    57
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    58
make -j $CPUS
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    59
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    60
%install
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    61
make install DESTDIR=$RPM_BUILD_ROOT
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    62
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    63
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    64
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    65
%clean
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    66
rm -rf $RPM_BUILD_ROOT
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    67
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    68
%post   -p /sbin/ldconfig
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    69
%postun -p /sbin/ldconfig
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    70
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    71
%files
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    72
%files
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    73
%defattr(-, root, root)
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    74
%doc Bonus ChangeLog NEWS README TODO doc doc-jp
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    75
%{_sysconfdir}/w3m
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    76
%{_bindir}/w3m
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    77
%dir %{_libexecdir}/w3m
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    78
%{_libexecdir}/w3m/inflate
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    79
%dir %{_libexecdir}/w3m/cgi-bin
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    80
%{_libexecdir}/w3m/cgi-bin/w3mbookmark
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    81
%{_libexecdir}/w3m/cgi-bin/w3mhelperpanel
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    82
%{_mandir}/man1/w3m.1*
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    83
%{_mandir}/ja/man1/w3m.1*
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    84
%{_datadir}/locale/*/*/*
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    85
%{_datadir}/w3m/w3mhelp-funcdesc.en.pl
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    86
%{_datadir}/w3m/w3mhelp-funcdesc.ja.pl
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    87
%{_datadir}/w3m/w3mhelp-funcname.pl
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    88
%{_datadir}/w3m/w3mhelp.html
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    89
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    90
%changelog
11683
a0bb918324a2 2008-02-21 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11670
diff changeset
    91
* Thu Feb 21 2008 - [email protected]
11684
4a101e69cad9 change of tactics....
laca
parents: 11683
diff changeset
    92
- delete all autotoolization, particularly intltoolize,
4a101e69cad9 change of tactics....
laca
parents: 11683
diff changeset
    93
  since intltool is not used at all in this module
11670
4cf1794354ef 2008-02-20 Halton Huo <[email protected]>
halton
parents: 11516
diff changeset
    94
* Wed Feb 20 2008 - [email protected]
4cf1794354ef 2008-02-20 Halton Huo <[email protected]>
halton
parents: 11516
diff changeset
    95
- Remove commented lines.
11516
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    96
* Wed Jan 02 2008 - [email protected]
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    97
- spilit from SFEw3m.spec