Tue, 31 Jul 2012 08:36:21 +0200
Import package vendor original specs for necessary manipulations.
w3m/w3m.patch | file | annotate | diff | comparison | revisions | |
w3m/w3m.spec | file | annotate | diff | comparison | revisions |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/w3m/w3m.patch Tue Jul 31 08:36:21 2012 +0200 1.3 @@ -0,0 +1,43 @@ 1.4 +Index: Makefile.in 1.5 +--- Makefile.in.orig 2007-05-29 14:01:04 +0200 1.6 ++++ Makefile.in 2009-12-24 22:39:59 +0100 1.7 +@@ -119,7 +119,7 @@ 1.8 + 1.9 + DEFUNS=$(top_srcdir)/main.c $(top_srcdir)/menu.c 1.10 + SCRIPTSUBDIRS= scripts 1.11 +-SUBDIRS = $(SCRIPTSUBDIRS) w3mimg libwc po 1.12 ++SUBDIRS = $(SCRIPTSUBDIRS) w3mimg libwc 1.13 + .PHONY: $(SUBDIRS) 1.14 + 1.15 + all: $(TARGETS) all-scripts $(NLSTARGET) 1.16 +@@ -134,7 +134,7 @@ 1.17 + $(OBJS) $(LOBJS): fm.h funcname1.h 1.18 + 1.19 + tagtable.c: tagtable.tab mktable$(EXT) html.h 1.20 +- ./mktable$(EXT) 100 $(srcdir)/tagtable.tab > $@ 1.21 ++ -./mktable$(EXT) 100 $(srcdir)/tagtable.tab > $@ 1.22 + 1.23 + indep.o: indep.c fm.h funcname1.h 1.24 + func.o: funcname.c functable.c funcname1.h 1.25 +@@ -167,7 +167,7 @@ 1.26 + 1.27 + functable.c: funcname.tab mktable$(EXT) 1.28 + sort funcname.tab | $(AWK) -f $(top_srcdir)/functable.awk > functable.tab 1.29 +- ./mktable$(EXT) 100 functable.tab > $@ 1.30 ++ -./mktable$(EXT) 100 functable.tab > $@ 1.31 + -rm -f functable.tab 1.32 + 1.33 + mktable$(EXT): mktable.o dummy.o $(ALIB) 1.34 +Index: main.c 1.35 +--- main.c.orig 2007-05-31 03:19:50 +0200 1.36 ++++ main.c 2009-12-25 10:21:26 +0100 1.37 +@@ -842,7 +842,8 @@ 1.38 + mySignal(SIGPIPE, SigPipe); 1.39 + #endif 1.40 + 1.41 +- orig_GC_warn_proc = GC_set_warn_proc(wrap_GC_warn_proc); 1.42 ++ orig_GC_warn_proc = GC_get_warn_proc(); 1.43 ++ GC_set_warn_proc(wrap_GC_warn_proc); 1.44 + err_msg = Strnew(); 1.45 + if (load_argc == 0) { 1.46 + /* no URL specified */
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/w3m/w3m.spec Tue Jul 31 08:36:21 2012 +0200 2.3 @@ -0,0 +1,126 @@ 2.4 +## 2.5 +## w3m.spec -- OpenPKG RPM Package Specification 2.6 +## Copyright (c) 2000-2011 OpenPKG Foundation e.V. <http://openpkg.net/> 2.7 +## 2.8 +## Permission to use, copy, modify, and distribute this software for 2.9 +## any purpose with or without fee is hereby granted, provided that 2.10 +## the above copyright notice and this permission notice appear in all 2.11 +## copies. 2.12 +## 2.13 +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 2.14 +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 2.15 +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2.16 +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR 2.17 +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2.18 +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2.19 +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 2.20 +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 2.21 +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 2.22 +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 2.23 +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2.24 +## SUCH DAMAGE. 2.25 +## 2.26 + 2.27 +# package information 2.28 +Name: w3m 2.29 +Summary: Interactive Full-Screen Client for HTTP/HTTPS/FTP Protocols 2.30 +URL: http://w3m.sourceforge.net/ 2.31 +Vendor: Akinori Ito 2.32 +Packager: OpenPKG Foundation e.V. 2.33 +Distribution: OpenPKG Community 2.34 +Class: BASE 2.35 +Group: Web 2.36 +License: BSD 2.37 +Version: 0.5.3 2.38 +Release: 20110115 2.39 + 2.40 +# list of sources 2.41 +Source0: http://switch.dl.sourceforge.net/sourceforge/w3m/w3m-%{version}.tar.gz 2.42 +Patch0: w3m.patch 2.43 + 2.44 +# build information 2.45 +BuildPreReq: OpenPKG, openpkg >= 20100101, make 2.46 +PreReq: OpenPKG, openpkg >= 20100101 2.47 +BuildPreReq: ncurses, openssl, zlib, gc >= 7.2 2.48 +PreReq: ncurses, openssl, zlib, gc >= 7.2 2.49 + 2.50 +%description 2.51 + W3M is a text-based web browser as well as a pager like `more' 2.52 + or `less'. With W3M you can browse web pages through a terminal 2.53 + emulator window (xterm, rxvt or something like that). Moreover, W3M 2.54 + can be used as a text formatting tool which typesets HTML into plain 2.55 + text. 2.56 + 2.57 +%track 2.58 + prog w3m = { 2.59 + version = %{version} 2.60 + url = http://sourceforge.net/projects/w3m/files/ 2.61 + regex = w3m-(__VER__)\.tar\.gz 2.62 + } 2.63 + 2.64 +%prep 2.65 + %setup -q 2.66 + %patch -p0 2.67 + 2.68 +%build 2.69 + CC="%{l_cc}" \ 2.70 + CFLAGS="%{l_cflags -O}" \ 2.71 + CPPFLAGS="%{l_cppflags}" \ 2.72 + LDFLAGS="%{l_ldflags}" \ 2.73 + ./configure \ 2.74 + --prefix=%{l_prefix} \ 2.75 + --mandir=%{l_prefix}/man \ 2.76 + --libdir=%{l_prefix}/libexec/w3m \ 2.77 + --sysconfdir=%{l_prefix}/etc \ 2.78 + --with-termlib=ncurses \ 2.79 + --with-editor=%{l_prefix}/bin/vim \ 2.80 + --with-mailer=%{l_prefix}/bin/mutt \ 2.81 + --with-browser=%{l_prefix}/bin/mozilla \ 2.82 + --with-gc=%{l_prefix} \ 2.83 + --with-ssl=%{l_prefix} \ 2.84 + --enable-sslverify \ 2.85 + --enable-w3mmailer \ 2.86 + --disable-external-uri-loader \ 2.87 + --without-migemo \ 2.88 + --disable-gopher \ 2.89 + --disable-ipv6 \ 2.90 + --disable-nntp \ 2.91 + --disable-dict \ 2.92 + --disable-alarm \ 2.93 + --disable-xface \ 2.94 + --enable-history \ 2.95 + --enable-keymap=w3m \ 2.96 + --enable-menu \ 2.97 + --enable-mouse \ 2.98 + --enable-cookie \ 2.99 + --enable-digest-auth \ 2.100 + --enable-image=no \ 2.101 + --enable-color \ 2.102 + --disable-ansi-color \ 2.103 + --disable-bgcolor \ 2.104 + --disable-japanese \ 2.105 + --disable-unicode \ 2.106 + --disable-m17n \ 2.107 + --disable-nls 2.108 + %{l_make} %{l_mflags} 2.109 + 2.110 +%install 2.111 + %{l_make} %{l_mflags} install install-helpfile \ 2.112 + INSTALL="%{l_shtool} install -c" \ 2.113 + DESTDIR=$RPM_BUILD_ROOT 2.114 + rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/ja 2.115 + rm -f $RPM_BUILD_ROOT%{l_prefix}/share/w3m/*.ja.pl 2.116 + rm -f $RPM_BUILD_ROOT%{l_prefix}/share/w3m/*_ja.html 2.117 + rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/w3m/xface2xpm 2.118 + rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/w3m/w3mimgdisplay 2.119 + %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/w3m 2.120 + echo "color 1" >$RPM_BUILD_ROOT%{l_prefix}/etc/w3m/config 2.121 + strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true 2.122 + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ 2.123 + %{l_files_std} \ 2.124 + '%config %{l_prefix}/etc/w3m/*' 2.125 + 2.126 +%files -f files 2.127 + 2.128 +%clean 2.129 +