Browse code

w3m: New Package

Added new package w3m

Change-Id: I9454bbc0145f863a403bc291917a924158aa0f60
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/5489
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Tapas Kundu <tkundu@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>

Ankit Jain authored on 2018/08/15 03:36:07
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,58 @@
0
+Summary:	w3m is a text-based web browser
1
+Name:           w3m
2
+Version:        0.5.3
3
+Release:        1%{?dist}
4
+License:        ISC
5
+Group:          Productivity/Networking/Other
6
+Vendor:         VMware, Inc.
7
+Distribution:   Photon
8
+## http://w3m.sourceforge.net
9
+Url:            https://github.com/tats/w3m/archive/v%{version}+git20180125.tar.gz
10
+Source0:        %{name}-%{version}.tar.gz
11
+%define sha1 %{name}-%{version}=49df4a9c35f94c211ba2d904f7c72b8aa82e269d
12
+BuildRequires:	gc-devel
13
+BuildRequires:	ncurses-devel
14
+BuildRequires:	openssl-devel
15
+
16
+%description
17
+w3m is a pager with WWW capability. It IS a pager, but it can be
18
+used as a text-mode WWW browser.
19
+
20
+The features of w3m are as follows:
21
+
22
+* When reading HTML document, you can follow links and view images
23
+  (using external image viewer).
24
+* It has 'internet message mode', which determines the type of document
25
+  from header. If the Content-Type: field of the document is text/html,
26
+  that document is displayed as HTML document.
27
+* You can change URL description like 'http://hogege.net' in plain text
28
+  into link to that URL.
29
+
30
+%prep
31
+%setup -q -n %{name}-%{version}-git20180125
32
+
33
+%build
34
+%configure \
35
+	--prefix=%{_prefix} \
36
+	--exec-prefix=%{_prefix}
37
+make %{?_smp_mflags}
38
+
39
+%install
40
+rm -rf %{buildroot}
41
+make DESTDIR=%{buildroot} install
42
+sed -i 's/require "w3mhelp-funcname.pl/require "\/usr\/share\/w3m\/w3mhelp-funcname.pl/g' %{buildroot}%{_prefix}/libexec/%{name}/cgi-bin/w3mhelp.cgi
43
+sed -i 's/require "w3mhelp-funcdesc.en.pl/require "\/usr\/share\/w3m\/w3mhelp-funcdesc.en.pl/g' %{buildroot}%{_prefix}/libexec/%{name}/cgi-bin/w3mhelp.cgi
44
+
45
+%files
46
+%defattr(-,root,root)
47
+%{_bindir}/%{name}
48
+%{_bindir}/w3mman
49
+%doc doc/*
50
+%doc ChangeLog
51
+%{_prefix}/libexec
52
+%{_mandir}
53
+%{_datadir}
54
+
55
+%changelog
56
+*   Tue Aug 14 2018 Ankit Jain <ankitja@vmware.com> 0.5.3-1
57
+-   Initial Version.