From: Graydon, Tracy Date: Fri, 31 Aug 2012 19:33:51 +0000 (-0700) Subject: TIVI-153: add as dependency for iputils X-Git-Tag: accepted/trunk/20120904.191359^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=0102c9867a375867f4e18b9a5f982df1005619a5;p=profile%2Fivi%2Fw3m.git TIVI-153: add as dependency for iputils --- 0102c9867a375867f4e18b9a5f982df1005619a5 diff --git a/packaging/filter-requires-w3m.sh b/packaging/filter-requires-w3m.sh new file mode 100644 index 0000000..17da15f --- /dev/null +++ b/packaging/filter-requires-w3m.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +/usr/lib/rpm/find-requires $* | grep -v 'perl(w3mhelp-' diff --git a/packaging/w3m-0.4.1-helpcharset.patch b/packaging/w3m-0.4.1-helpcharset.patch new file mode 100644 index 0000000..be787e1 --- /dev/null +++ b/packaging/w3m-0.4.1-helpcharset.patch @@ -0,0 +1,24 @@ +diff -ruN w3m-0.4.1.orig/scripts/w3mhelp.cgi.in w3m-0.4.1/scripts/w3mhelp.cgi.in +--- w3m-0.4.1.orig/scripts/w3mhelp.cgi.in 2003-06-12 21:03:09.000000000 +0900 ++++ w3m-0.4.1/scripts/w3mhelp.cgi.in 2003-06-12 21:25:44.000000000 +0900 +@@ -51,6 +51,12 @@ + } + } + ++if ($lang eq 'ja') { ++ $help_charset='EUC-JP'; ++} else { ++ $help_charset='UTF-8'; ++} ++ + %f = %keyfunc; + %keyfunc = (); + while (($key, $fname) = each %f) { +@@ -88,6 +94,7 @@ + + + ++ + w3m help page + + diff --git a/packaging/w3m-0.5.1-gcc4.patch b/packaging/w3m-0.5.1-gcc4.patch new file mode 100644 index 0000000..39e232c --- /dev/null +++ b/packaging/w3m-0.5.1-gcc4.patch @@ -0,0 +1,23 @@ +Patch by Robert Scheck for w3m >= 0.5.1, which makes +w3m rebuildable using gcc 4. + +--- w3m-0.5.1/istream.c 2003-10-20 18:41:56.000000000 +0200 ++++ w3m-0.5.1/istream.c.gcc4 2005-03-15 12:18:36.000000000 +0100 +@@ -37,7 +37,7 @@ + { + int len; + base->stream.cur = base->stream.next = 0; +- len = base->read(base->handle, base->stream.buf, base->stream.size); ++ len = (base->read) (base->handle, base->stream.buf, base->stream.size); + if (len <= 0) + base->iseos = TRUE; + else +@@ -320,7 +320,7 @@ + len = buffer_read(&base->stream, buf->ptr, count); + rest = count - len; + if (MUST_BE_UPDATED(base)) { +- len = base->read(base->handle, &buf->ptr[len], rest); ++ len = (base->read) (base->handle, &buf->ptr[len], rest); + if (len <= 0) { + base->iseos = TRUE; + len = 0; diff --git a/packaging/w3m-0.5.2-multilib.patch b/packaging/w3m-0.5.2-multilib.patch new file mode 100644 index 0000000..e0853f6 --- /dev/null +++ b/packaging/w3m-0.5.2-multilib.patch @@ -0,0 +1,12 @@ +diff -ruN w3m-0.5.1.orig/acinclude.m4 w3m-0.5.1/acinclude.m4 +--- w3m-0.5.1.orig/acinclude.m4 2006-03-06 18:24:38.000000000 +0900 ++++ w3m-0.5.1/acinclude.m4 2006-03-06 18:27:55.000000000 +0900 +@@ -394,7 +394,7 @@ + [lib=$1 + AC_MSG_CHECKING(for -l$lib) + extlib="not found" +- for dir in /lib /usr/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib ++ for dir in /lib64 /lib /usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib + do + if test -f $dir/lib$lib.a -o -f $dir/lib$lib.so ; then + LIBS="$LIBS -l$lib" diff --git a/packaging/w3m-0.5.2-nulcn.patch b/packaging/w3m-0.5.2-nulcn.patch new file mode 100644 index 0000000..7d7229d --- /dev/null +++ b/packaging/w3m-0.5.2-nulcn.patch @@ -0,0 +1,74 @@ +http://www.openwall.com/lists/oss-security/2010/06/14/4 +From: Ludwig Nussel [mailto:ludwig.nussel@suse.de] +Sent: 2010年6月14日 19:25 +To: oss-security@lists.openwall.com +Subject: [oss-security] CVE Request: w3m does not check null bytes +CN/subjAltName + +Hi, + +Yet another occurrence of CVE-2009-2408, this time in w3m. I tried +contacting the w3m developers listed on sourceforge but got no +response. In the default configuration the missing null checks don't +make the situation worse though as w3m doesn't verify certificates +by default ('ssl_verify_server' is off by default). Attached two +patches turn on 'ssl_verify_server' and fix the null handling. + +cu +Ludwig + + +Index: w3m-0.5.2/istream.c +=================================================================== +--- w3m-0.5.2.orig/istream.c ++++ w3m-0.5.2/istream.c +@@ -447,8 +447,17 @@ ssl_check_cert_ident(X509 * x, char *hos + + if (!seen_dnsname) + seen_dnsname = Strnew(); ++ /* replace \0 to make full string visible to user */ ++ if (sl != strlen(sn)) { ++ int i; ++ for (i = 0; i < sl; ++i) { ++ if (!sn[i]) ++ sn[i] = '!'; ++ } ++ } + Strcat_m_charp(seen_dnsname, sn, " ", NULL); +- if (ssl_match_cert_ident(sn, sl, hostname)) ++ if (sl == strlen(sn) /* catch \0 in SAN */ ++ && ssl_match_cert_ident(sn, sl, hostname)) + break; + } + } +@@ -466,16 +475,27 @@ ssl_check_cert_ident(X509 * x, char *hos + if (match_ident == FALSE && ret == NULL) { + X509_NAME *xn; + char buf[2048]; ++ int slen; + + xn = X509_get_subject_name(x); + +- if (X509_NAME_get_text_by_NID(xn, NID_commonName, +- buf, sizeof(buf)) == -1) ++ slen = X509_NAME_get_text_by_NID(xn, NID_commonName, buf, sizeof(buf)); ++ if ( slen == -1) + /* FIXME: gettextize? */ + ret = Strnew_charp("Unable to get common name from peer cert"); +- else if (!ssl_match_cert_ident(buf, strlen(buf), hostname)) ++ else if (slen != strlen(buf) ++ || !ssl_match_cert_ident(buf, strlen(buf), hostname)) { ++ /* replace \0 to make full string visible to user */ ++ if (slen != strlen(buf)) { ++ int i; ++ for (i = 0; i < slen; ++i) { ++ if (!buf[i]) ++ buf[i] = '!'; ++ } ++ } + /* FIXME: gettextize? */ + ret = Sprintf("Bad cert ident %s from %s", buf, hostname); ++ } + else + match_ident = TRUE; + } diff --git a/packaging/w3m-0.5.2-ssl_verify_server_on.patch b/packaging/w3m-0.5.2-ssl_verify_server_on.patch new file mode 100644 index 0000000..d6c2ca6 --- /dev/null +++ b/packaging/w3m-0.5.2-ssl_verify_server_on.patch @@ -0,0 +1,44 @@ +http://www.openwall.com/lists/oss-security/2010/06/14/4 +From: Ludwig Nussel [mailto:ludwig.nussel@suse.de] +Sent: 2010年6月14日 19:25 +To: oss-security@lists.openwall.com +Subject: [oss-security] CVE Request: w3m does not check null bytes +CN/subjAltName + +Hi, + +Yet another occurrence of CVE-2009-2408, this time in w3m. I tried +contacting the w3m developers listed on sourceforge but got no +response. In the default configuration the missing null checks don't +make the situation worse though as w3m doesn't verify certificates +by default ('ssl_verify_server' is off by default). Attached two +patches turn on 'ssl_verify_server' and fix the null handling. + +cu +Ludwig + + +verify SSL certificates by default. SSL support really is pointless without doing that. +Also disable use of SSLv2 by default as it's insecure, deprecated, dead since last century. +Index: w3m-0.5.2/fm.h +=================================================================== +--- w3m-0.5.2.orig/fm.h ++++ w3m-0.5.2/fm.h +@@ -1120,7 +1120,7 @@ global int view_unseenobject init(TRUE); + #endif + + #if defined(USE_SSL) && defined(USE_SSL_VERIFY) +-global int ssl_verify_server init(FALSE); ++global int ssl_verify_server init(TRUE); + global char *ssl_cert_file init(NULL); + global char *ssl_key_file init(NULL); + global char *ssl_ca_path init(NULL); +@@ -1129,7 +1129,7 @@ global int ssl_path_modified init(FALSE) + #endif /* defined(USE_SSL) && + * defined(USE_SSL_VERIFY) */ + #ifdef USE_SSL +-global char *ssl_forbid_method init(NULL); ++global char *ssl_forbid_method init("2"); + #endif + + global int is_redisplay init(FALSE); diff --git a/packaging/w3m.changes b/packaging/w3m.changes new file mode 100644 index 0000000..f3a6804 --- /dev/null +++ b/packaging/w3m.changes @@ -0,0 +1,418 @@ +* Fri Aug 31 19:33:01 UTC 2012 - tracy.graydon@intel.com +- TIVI: add as dependency for iputils. Imported from MeeGo trunk + +* Wed Jul 2010 Yin Kangkai - 0.5.2 +- Integrate two patch to fix CVE 2010-2074, BMC #3350 + +* Thu May 7 2009 Arjan van de Ven 0.5.2 +- not ready for LD_AS_NEEDED yet + +* Wed Apr 23 2008 Parag - 0.5.2-10 +- Rebuilt for new rpm package +- Resolves:rh#443115: needs rebuild + +* Fri Apr 18 2008 Parag - 0.5.2-9 +- Re-enable BR:gtk2-devel +- Resolves:rh#442950: Images aren't displayed in any type of terminal + +* Mon Feb 11 2008 Parag - 0.5.2-8 +- Rebuild for gcc 4.3 + +* Tue Dec 04 2007 Jesse Keating - 0.5.2-7 +- Temporarily disable gtk to bootstrap build for openssl + +* Tue Dec 04 2007 Parag Nemade - 0.5.2-6 +- build against new openssl + +* Fri Oct 12 2007 Parag Nemade - 0.5.2-5 +- Added Provides: text-www-browser as part of rh#174566 + +* Wed Aug 22 2007 Parag Nemade - 0.5.2-4 +- rebuild against new rpm package + +* Wed Jul 25 2007 Jeremy Katz - 0.5.2-3 +- rebuild for toolchain bug + +* Tue Jul 24 2007 Parag Nemade - 0.5.2-2 +- Build against new gc-7.0 release. + +* Tue Jun 26 2007 Parag Nemade - 0.5.2-1 +- Update to 0.5.2 and remove merged patches. +- Build against system gc library. +- Add BR: nkf for multipart.cgi. +- Don't call unneeded autotool + +* Tue Mar 27 2007 Parag Nemade - 0.5.1-19 +- and more cleanup. + +* Tue Mar 27 2007 Parag Nemade - 0.5.1-18.2 +- more cleanup. + +* Mon Mar 26 2007 Parag Nemade - 0.5.1-18 +- spec file cleanup. + +* Mon Feb 26 2007 Parag Nemade - 0.5.1-17 +- Resolves #229799 + +* Wed Feb 21 2007 Parag Nemade - 0.5.1-16 +- Modified SPEC file to add new patchfile to resolve rh#222914. + +* Fri Feb 02 2007 Parag Nemade - 0.5.1-15.1 +- Resolves: rh#226535 Review Merge +- Modified SPEC file. + +* Mon Jan 15 2007 Parag Nemade - 0.5.1-15 +- Resolves: rh#221484 + +* Wed Jul 12 2006 Jesse Keating - 0.5.1-14.1 +- rebuild + +* Sat Jun 24 2006 Jesse Keating - 0.5.1-14 +- Fix missing br gettext-devel, automake + +* Mon Mar 6 2006 Akira TAGOH - 0.5.1-13 +- w3m-multilib.patch: fixed to link 64bit version of libnsl.so. (#182408) + +* Fri Feb 10 2006 Jesse Keating - 0.5.1-12.2.1 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating - 0.5.1-12.2 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Wed Nov 9 2005 Akira TAGOH 0.5.1-12 +- rebuilt against the latest openssl. +- gc6.2-fix-prelink.patch: removed. +- w3m-fix-vi-prec-num.patch: applied to get the vi-like prefix working. + +* Tue May 10 2005 Joe Orton 0.5.1-11 +- point at certs directory in /etc/pki + +* Mon Apr 18 2005 Akira TAGOH - 0.5.1-10 +- fixed the unnecessary owned directory. (#154600) + +* Thu Apr 7 2005 Akira TAGOH - 0.5.1-9 +- removed imlib-devel build-dependency. (#153773) + +* Mon Mar 28 2005 Akira TAGOH - 0.5.1-8 +- w3m-cvs-20050328.patch: updated to CVS snapshot to support gtk2. + +* Thu Mar 17 2005 Akira TAGOH - 0.5.1-7 +- rebuilt +- w3m-0.5.1-gcc4.patch: applied to fix the build fails with gcc4. + (#151136: Robert Scheck) + +* Thu Jan 13 2005 Akira TAGOH - 0.5.1-6 +- fixed a duplicated w3mimgdisplay. + +* Mon Dec 20 2004 Akira TAGOH - 0.5.1-5 +- updates to gc6.3. (#143361) + - w3m-0.3.1-fixptr_t.patch: removed. it's no longer needed. +- fixed the permission to get working of the helper scripts. + +* Thu Aug 05 2004 Akira TAGOH 0.5.1-4 +- rebuilt + +* Wed Aug 04 2004 Akira TAGOH 0.5.1-3 +- converted Japanese man page to UTF-8. (#129028) + +* Tue Jun 15 2004 Elliot Lee +- rebuilt + +* Thu May 06 2004 Akira TAGOH 0.5.1-1 +- New upstream release. + +* Tue Apr 20 2004 Akira TAGOH 0.5-3 +- build with --with-termlib=ncurses to fix segfault. (#120240) + +* Mon Apr 12 2004 Akira TAGOH 0.5-2 +- separated w3mimgdisplay to w3m-img package. (#120600) +- removed indexhtml, which is no longer refered. + +* Tue Mar 23 2004 Akira TAGOH 0.5-1 +- New upstream release. +- w3m-0.2.3.1-ipv6.patch: removed. +- w3m-0.4.1-stable-m17n-20030308.patch.gz: removed, because it has been marged to the upstream. +- w3mconfig: updated. +- w3mbookmark: removed, use one, which the upstream disbributed. +- w3mhelperpanel: likewise. +- libwc-latest.tar.gz: likewise. +- w3m-wrapper: removed. +- w3m-0.5-guess_display_locale.patch: updated. +- w3m-0.5-staic-libgc.patch: applied to build static library of libgc. +- w3m-0.3.2-lib64path.patch: removed. + +* Tue Mar 09 2004 Akira TAGOH 0.4.1-12 +- rebuilt + +* Tue Mar 02 2004 Elliot Lee +- rebuilt + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Tue Feb 10 2004 Akira TAGOH 0.4.1-10 +- gc6.2alpha5-ppc64.patch: removed because no need to apply. +- gc6.2.tar.gz: update to the stable version. +- gc6.2-fix-prelink.patch: applied to fix prelink issue. (#115201: Jakub Jelinek) + +* Mon Dec 15 2003 Akira TAGOH 0.4.1-9 +- w3m-0.4.1-guess_display_locale.patch: applied to guess the display encoding + from the current locale. (#111217) + +* Wed Oct 01 2003 Akira TAGOH 0.4.1-8 +- converted Japanese manpage to UTF-8. + +* Tue Jun 17 2003 Akira TAGOH 0.4.1-7 +- rebuild. + +* Thu Jun 12 2003 Akira TAGOH 0.4.1-6 +- applied m17n patch to allow UTF-8 encoding. +- specify the charset for w3m-help.cgi. + +* Wed Jun 04 2003 Elliot Lee +- rebuilt + +* Wed May 21 2003 Akira TAGOH 0.4.1-4 +- rebuild +- use gc6.2alpha5. +- gc6.2alpha5-ppc64.patch: applied to fix the build issue on ppc64. + +* Wed May 21 2003 Akira TAGOH 0.4.1-3 +- rebuild. + +* Thu May 1 2003 Elliot Lee 0.4.1-2 +- Genericize multilib +- _smp_mflags + +* Mon Mar 17 2003 Akira TAGOH 0.4.1-1 +- New upstream release. +- w3m-0.3.2.2-fixhttpssegv.patch: removed. +- w3m-0.3.2-fix64arch.patch: removed. + +* Mon Feb 3 2003 Akira TAGOH 0.3.2.2-5 +- w3m-0.3.2.2-fixhttpssegv.patch: applied to fix a segfault with https. (#83263) +- gc6.2alpha3.tar.gz: use it to be built on s390x. + +* Wed Jan 22 2003 Tim Powers +- rebuilt + +* Tue Jan 7 2003 Nalin Dahyabhai 0.3.2.2-3 +- rebuild + +* Fri Jan 3 2003 Nalin Dahyabhai +- buildreq openssl-devel instead of openssl +- use openssl's pkg-config configuration if it exists +- pass cflags and ldflags in to configure instead of letting them get pulled + in from the environment + +* Tue Dec 24 2002 Akira TAGOH 0.3.2.2-2 +- add indexhtml to BuildRequires. +- fix the wrong path to the local CGI. +- don't use rpms internal dep generator. +- w3m-wrapper: go through the options. + +* Fri Dec 6 2002 Akira TAGOH 0.3.2.2-1 +- New upstream release. +- this release contains yet another security fix. + +* Wed Nov 27 2002 Akira TAGOH 0.3.2.1-1 +- New upstream release. + +* Mon Nov 11 2002 Akira TAGOH 0.3.2-1 +- New upstream release. +- removed some packages, because this release contains it. + - w3m-0.3.1-fixanchor.patch + - w3m-0.3.1-multipartimg.patch + - w3m-0.3.1-fixwarning-03276.patch +- w3mimgsize is obsolete. +- gc6.1.tar.gz: update to the latest gc library. +- w3m-0.3.2-fix64arch.patch: applied to fix the build issue for ia64 and x86_64. +- w3m-0.3.2-lib64path.patch: applied to add lib64 path for x86_64. + +* Tue Aug 13 2002 Havoc Pennington +- rebuild for new imlib soname + +* Mon Jul 22 2002 Akira TAGOH 0.3.1-3 +- use 'display' to show the image when nothing is described in mailcap. +- w3m-0.3.1-fixanchor.patch: applied to fix an anchor issue on plain text. +- w3m-0.3.1-multipartimg.patch: applied to fix a rendering issue on multipart. +- w3m-0.3.1-fixwarning-03276.patch: applied to fix a warning message at buld + time. + +* Thu Jul 18 2002 Akira TAGOH 0.3.1-2 +- add the owned directory. + +* Tue Jul 16 2002 Akira TAGOH 0.3.1-1 +- New upstream release. +- w3m-0.3.1-fixprivsym.patch: disabled. it works without this patch. +- w3m-0.3.1-fixptr_t.patch: applied to fix the build issue for alpha. +- gc6.1alpha2.tar.bz2: use an old version to avoid the build issue for IA64. + +* Fri Jun 21 2002 Tim Powers +- automated rebuild + +* Tue Jun 18 2002 Akira TAGOH 0.3-4 +- fix the missing files. (Bug#66865) + +* Thu May 30 2002 Chip Turner +- add dependency filter for bogus perl dependencies + +* Thu May 23 2002 Tim Powers +- automated rebuild + +* Wed Mar 6 2002 Akira TAGOH 0.3-1 +- New upstream release. +- w3m-0.3-config.param-{en,ja}: update. +- w3m-0.3-fixprivsym.patch: Fixed unresolved dependencies. (Bug#60725) + Thanks Jakub. +- fix the missing files. + +* Fri Feb 22 2002 Akira TAGOH 0.2.5.1-2 +- Build against new environment. + +* Tue Feb 5 2002 Akira TAGOH 0.2.5.1-1 +- New upstream release. + +* Fri Feb 1 2002 Akira TAGOH 0.2.5-1 +- New upstream release. +- Update build config files for 0.2.5 +- Update default config. + +* Wed Jan 9 2002 Akira TAGOH 0.2.4-2 +- Fixed use a wrong build config for en. (Bug#58093) +- Update build config files for 0.2.4 +- Added cert path to default config. + +* Tue Jan 8 2002 Akira TAGOH 0.2.4-1 +- New upstream release. +- Remove old GC library from srpm because no longer need it. + +* Thu Dec 27 2001 Akira TAGOH 0.2.3.2-2 +- Fixed the wrong default settings. + +* Tue Dec 25 2001 Akira TAGOH 0.2.3.2-1 +- New upstream release. + +* Fri Dec 21 2001 Akira TAGOH 0.2.3.1-1 +- New upstream release. + +* Wed Dec 5 2001 Akira TAGOH 0.2.2-2 +- Added config file for alpha from James Antill. + +* Mon Nov 19 2001 Akira TAGOH 0.2.2-1 +- New upstream release. + +* Thu Aug 29 2001 SATO Satoru - 0.2.1-11 +- made the relative link to HTML_HOME instead of the absolute one +- fixed the permission of sources (to shut up rpmlint) + +* Wed Aug 29 2001 SATO Satoru - 0.2.1-10 +- fixed the wrapper script (#52759) + +* Fri Aug 9 2001 SATO Satoru - 0.2.1-9 +- corrected the help files' path (#51197) +- removed /etc/profile.d/* +- fixed and update the wrapper +- removed imlib-devel (BuildRequires:) + +* Fri Aug 4 2001 SATO Satoru - 0.2.1-8 +- disabled the inline image rendering patch by default (#50786) + +* Tue Jul 24 2001 SATO Satoru +- s/Copyright/License/ +- %%files: add '/etc/profile.d/w3m.*' +- enable IPv6 support by default (#35649) + +* Fri Jul 20 2001 Florian La Roche +- do not require gpm for s390,s390x + +* Tue Jul 17 2001 SATO Satoru +- apply inline image support patch. +- BuildRequires: imlib-devel +- add %%dir lines + +* Thu Jun 28 2001 Than Ngo +- fix to build on s390x s390 +- fix to use RPM_OPT_FLAGS + +* Mon Jun 25 2001 Florian La Roche +- disable mouse/gpm on s390 s390x + +* Thu Jun 21 2001 Yukihiro Nakai +- Add ia64 support. + +* Wed Jun 20 2001 SATO Satoru +- 0.2.1 +- clean up SPEC +- apply security bug fix +- w3m-el is removed (moved into w3m-el package) + +* Fri Mar 2 2001 Tim Powers +- rebuilt against openssl-0.9.6-1 + +* Fri Feb 9 2001 SATO Satoru +- not to use upstream configure script (it looks corrupted) +- separated w3m-ja/w3m-en (#26443) +- apply many security bug fix patch +- ExludeArch alpha +- use bzip2 instead of gzip for src/patches + +* Thu Feb 8 2001 SATO Satoru +- changed configure option ( --lang=ja -> --lang=en) + +* Thu Jan 18 2001 Tim Powers +- ExludeArch ia64 + +* Sun Jan 14 2001 SATO Satoru +- fix the error while building on IA64 + +* Fri Jan 12 2001 SATO Satoru +- fix the error while building on Sparc +- clean up SPEC + +* Thu Dec 28 2000 SATO Satoru +- new upstream pre release +- added w3m.el +- clean up SPEC + +* Wed Sep 6 2000 Satoru Sato +- ported from vine +- remove w3m.wmconfig +- build with openssl library + +* Sun Jul 09 2000 Lisa Sagami +- w3m-0.1.10-0vl3 +- provide default HTTP_HOME in /etc/profile.d + +* Fri Jul 07 2000 Lisa Sagami +- Provides: webclient, Requires: indexhtml (capability of lynx) +- added w3m.wmconfig +- give them(who?) RPM_OPT_FLAGS(what?) +- dont include duplicated man pages and CVS directory in doc + +* Wed Jun 21 2000 Jun Nishii +- 0.1.10-0vl1 + +* Sat Jan 22 2000 Yoichi Imai +- fix spec file + +* Sat Jan 22 2000 Yoichi Imai +- updated from 0.1.4 to 0.1.6 + +* Thu Jan 13 2000 Yoichi Imai +- updated from 991203 to 0.1.4 + +* Fri Dec 03 1999 Yoichi Imai +- updated from 991028 to 991203 + +* Sat Oct 30 1999 Yoichi Imai +- updated from 990820 to 991028 + +* Tue Aug 26 1999 Ryo Hattori +- updated from 990716 to 990820 + +* Wed Aug 11 1999 Ryo Hattori +- initial Release to VinePlus diff --git a/packaging/w3m.spec b/packaging/w3m.spec new file mode 100644 index 0000000..44ae592 --- /dev/null +++ b/packaging/w3m.spec @@ -0,0 +1,120 @@ +#specfile originally created for Fedora, modified for Moblin Linux +%define _use_internal_dependency_generator 0 +%define build_options --enable-nls --with-editor=/bin/vi --with-termlib=ncurses --disable-nntp --disable-gopher --disable-image + +%define with_utf8 0 + +Name: w3m +Version: 0.5.2 +Release: 10 +License: MIT +URL: http://w3m.sourceforge.net/ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: bzip2 findutils sed ncurses-devel +BuildRequires: openssl-devel gc-devel +BuildRequires: pkgconfig +BuildRequires: gettext-devel +BuildRequires: automake + +## re-compressed bzip2 instead of gzip +Source0: http://downloads.sourceforge.net/w3m/%{name}-%{version}.tar.gz + +Source10: w3mconfig + +Source14: filter-requires-w3m.sh +%define __find_requires %{SOURCE14} + +## fix patch +Patch15: w3m-0.4.1-helpcharset.patch +Patch21: w3m-0.5.1-gcc4.patch +Patch24: w3m-0.5.2-multilib.patch + +# CVE 2010-2074, BMC #3350 +Patch25: w3m-0.5.2-nulcn.patch +Patch26: w3m-0.5.2-ssl_verify_server_on.patch + +Summary: A pager with Web browsing abilities +Group: Applications/Internet +Provides: webclient +Provides: text-www-browser + +%description +The w3m program is a pager (or text file viewer) that can also be used +as a text-mode Web browser. W3m features include the following: when +reading an HTML document, you can follow links and view images using +an external image viewer; its internet message mode determines the +type of document from the header; if the Content-Type field of the +document is text/html, the document is displayed as an HTML document; +you can change a URL description like 'http://hogege.net' in plain +text into a link to that URL. +If you want to display the inline images on w3m, you need to install +w3m-img package as well. + + +%prep +%setup -q +chmod 755 doc +chmod 755 doc-jp + +%patch15 -p1 +%patch21 -p1 +%patch24 -p1 +%patch25 -p1 +%patch26 -p1 + +%if %{with_utf8} +pushd doc-jp +for f in * ; do + case $f in + README.pre_form | README.tab ) + CHARSET=ISO-2022-JP + ;; + keymap.* ) + CHARSET=UTF-8 + ;; + * ) + CHARSET=EUC-JP + ;; + esac + iconv -f $CHARSET -t UTF-8 $f > $f.tmp && \ + ( touch -r $f $f.tmp ; mv $f.tmp $f ) || rm -f $f.tmp +done +popd +%endif + +%build +unset LD_AS_NEEDED +chmod +x %{SOURCE14} +%configure %{build_options} + +%{__make} # %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +%{__mkdir_p} $RPM_BUILD_ROOT%{_sysconfdir}/w3m +install -p -m 644 %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/w3m/config + +rm -f doc*/w3m.1 + +%find_lang w3m +%clean +rm -rf $RPM_BUILD_ROOT + + +%files -f w3m.lang +%defattr(-, root, root, -) +%doc NEWS +%doc doc +%lang(ja) %doc doc-jp +## %doc README.img +%{_datadir}/w3m/* +%config(noreplace) +%{_sysconfdir}/w3m/* +%{_bindir}/w3m* +%lang(ja) %{_mandir}/ja/man1/w3m.1* +%doc %{_mandir}/man1/w3m.1* +%doc %{_mandir}/man1/w3mman.1* +%{_libexecdir}/w3m/* + diff --git a/packaging/w3mconfig b/packaging/w3mconfig new file mode 100644 index 0000000..d20055e --- /dev/null +++ b/packaging/w3mconfig @@ -0,0 +1,60 @@ +cookie_accept_domains +cookie_reject_domains +accept_bad_cookie 0 +accept_cookie 1 +use_cookie 1 +ssl_ca_file +ssl_ca_path /etc/pki/tls/certs/ +ssl_key_file +ssl_cert_file +ssl_verify_server 1 +ssl_forbid_method +no_cache 0 +noproxy_netaddr 0 +no_proxy +meta_refresh 1 +follow_redirection 10 +default_url 1 +retry_http 1 +argv_is_url 1 +no_referer 0 +use_lessopen 0 +bgextviewer 1 +mailer gnome-open mailto:%s +editor /bin/vi +mailcap ~/.w3m/mailcap, /etc/w3m/mailcap, /etc/mailcap +mime_types ~/.w3m/mime.types, /etc/mime.types +urimethodmap ~/.w3m/urimethodmap, /etc/w3m/urimethodmap +use_mouse 1 +migemo_command migemo -t egrep /usr/share/migemo/migemo-dict +use_migemo 0 +ignorecase_search 1 +wrap_search 0 +confirm_qq 1 +save_hist 1 +history 100 +pagerline 10000 +visited_color magenta +visited_anchor 0 +active_color cyan +active_style 0 +bg_color terminal +form_color red +image_color green +anchor_color blue +basic_color terminal +color 1 +show_lnum 0 +view_unseenobject 1 +ignore_null_img_alt 1 +alt_entity 0 +multicol 0 +dirlist_cmd file:///$LIB/dirlist.cgi +ext_dirlist 1 +display_link 0 +target_self 0 +frame 0 +tabstop 8 +ftppasswd_anonymous@ +ftppass_hostnamegen 0 +display_image 1