Browse Source

upgrade to 0.4.2 by completely repackaging with new GNU autoconf based build environment of W32M

Ralf S. Engelschall 22 years ago
parent
commit
8731af461f
1 changed files with 47 additions and 53 deletions
  1. 47 53
      w3m/w3m.spec

+ 47 - 53
w3m/w3m.spec

@@ -32,8 +32,8 @@ Packager:     The OpenPKG Project
 Distribution: OpenPKG [BASE]
 Group:        Web
 License:      BSD
-Version:      0.4.1
-Release:      20030731
+Version:      0.4.2
+Release:      20030923
 
 #   list of sources
 Source0:      http://osdn.dl.sourceforge.net/sourceforge/w3m/w3m-%{version}.tar.gz
@@ -57,65 +57,59 @@ AutoReqProv:  no
 
 %prep
     %setup -q
-    %{l_shtool} subst \
-        -e 's;for tlibdir in;& $prefix/lib;g' \
-        -e 's;for inc in;& $prefix/include;g' \
-        configure
 
 %build
-    ( echo "# Configuration at `hostname`"
-      echo "use_help_cgi=n"
-      echo "pref_lang=2"
-      echo "lynx_key=n"
-      echo "ftppass_hostnamegen=n"
-      echo "show_params=n"
-      echo "use_nntp=n"
-      echo "ansi_color=n"
-      echo "use_color=y"
-      echo "use_menu=y"
-      echo "use_mouse=y"
-      echo "use_cookie=y"
-      echo "use_ssl=y"
-      echo "customized=y"
-      echo "use_ssl_verify=y"
-      echo "use_digest_auth=y"
-      echo "use_bundled_gclib=n"
-    ) >config.param
     CC="%{l_cc}" \
     CFLAGS="%{l_cflags -O}" \
-    LDFLAGS="%{l_ldflags} -lncurses" \
+    CPPFLAGS="%{l_cppflags}" \
+    LDFLAGS="%{l_ldflags}" \
     ./configure \
-        -prefix="%{l_prefix}" \
-        -libdir="%{l_prefix}/libexec/w3m" \
-        -helpdir="%{l_prefix}/share/w3m" \
-        -sysconfdir="%{l_prefix}/etc/w3m" \
-        -model=monster \
-        -lang=en \
-        -yes \
-        --ssl-includedir="%{l_prefix}/include" \
-        --ssl-libdir="%{l_prefix}/lib" \
-        --mimetypes="%{l_prefix}/etc/w3m/mime.types"
-    %{l_shtool} subst -e 's;-L/usr/lib; ;g' config.h
-    %{l_make} %{l_mflags}
+        --prefix=%{l_prefix} \
+        --libdir=%{l_prefix}/libexec/w3m \
+        --sysconfdir=%{l_prefix}/etc \
+        --with-termlib=ncurses \
+        --with-editor=%{l_prefix}/bin/vim \
+        --with-mailer=%{l_prefix}/bin/mutt \
+        --with-browser=%{l_prefix}/bin/mozilla \
+        --with-gc=%{l_prefix} \
+        --with-ssl=%{l_prefix} \
+        --enable-sslverify \
+        --enable-w3mmailer \
+        --disable-external-uri-loader \
+        --without-migemo \
+        --disable-gopher \
+        --disable-help-cgi \
+        --disable-ipv6 \
+        --disable-nntp \
+        --disable-dict \
+        --disable-alarm \
+        --disable-xface \
+        --enable-history \
+        --enable-keymap=w3m \
+        --enable-menu \
+        --enable-mouse \
+        --enable-cookie \
+        --enable-digest-auth \
+        --enable-image=no \
+        --enable-color \
+        --disable-ansi-color \
+        --disable-bgcolor \
+        --disable-japanese \
+        --disable-kanjisymbols
+    %{l_make} %{l_mflags -O}
 
 %install
     rm -rf $RPM_BUILD_ROOT
-    %{l_shtool} mkdir -f -p -m 755 \
-        $RPM_BUILD_ROOT%{l_prefix}/etc/w3m \
-        $RPM_BUILD_ROOT%{l_prefix}/bin \
-        $RPM_BUILD_ROOT%{l_prefix}/share/w3m \
-        $RPM_BUILD_ROOT%{l_prefix}/libexec/w3m
-    %{l_shtool} install -c -s -m 755 w3m $RPM_BUILD_ROOT%{l_prefix}/bin/
-    %{l_shtool} install -c -s -m 755 \
-        w3mbookmark w3mhelperpanel \
-        $RPM_BUILD_ROOT%{l_prefix}/libexec/w3m/
-    %{l_shtool} install -c -m 755 \
-        scripts/dirlist.cgi \
-        scripts/w3mmail.cgi \
-        $RPM_BUILD_ROOT%{l_prefix}/libexec/w3m/
-    %{l_shtool} install -c -m 644 w3mhelp-w3m_en.html \
-        $RPM_BUILD_ROOT%{l_prefix}/share/w3m/w3mhelp.html
-    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
+    %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
+    rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/ja
+    rm -f $RPM_BUILD_ROOT%{l_prefix}/share/w3m/w3mhelp-funcdesc.ja.pl
+    rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/w3m/xface2xpm
+    rm -f $RPM_BUILD_ROOT%{l_prefix}/libexec/w3m/w3mimgdisplay
+    %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/w3m
+    echo "color 1" >$RPM_BUILD_ROOT%{l_prefix}/etc/w3m/config
+    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
+        %{l_files_std} \
+        '%config %{l_prefix}/etc/w3m/*'
 
 %files -f files