-
Notifications
You must be signed in to change notification settings - Fork 36
/
w3c-libwww.spec.in
124 lines (93 loc) · 3.36 KB
/
w3c-libwww.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# Note that this is NOT a relocatable package
%define ver @VERSION@
%define rel 3
%define prefix /usr/
Vendor: W3C World Wide Web Consortium
Name: @PACKAGE@
Version: %ver
Release: %rel
Copyright: W3C (see: http://www.w3.org/Consortium/Legal/copyright-software.html), (L)GPL compatible
Group: System Environment/Libraries
Source: http://www.w3.org/Library/Distribution/w3c-libwww-%{ver}.tar.gz
URL: http://www.w3.org/Library
BuildRoot: /var/tmp/%{name}-root
Icon: Lib48x.gif
Packager: [email protected]
Summary: General-purpose Web API written in C
%description
Libwww is a general-purpose Web API written in C for Unix and Windows (Win32).
With a highly extensible and layered API, it can accommodate many different
types of applications including clients, robots, etc. The purpose of libwww
is to provide a highly optimized HTTP sample implementation as well as other
Internet protocols and to serve as a testbed for protocol experiments. Libwww
also supports HTTPS, thru OpenSSL. Because of the US export restrictions, we
can't distribute the libwwwssl pre-compiled library. You'll have to compile
libwww yourself to use it.
%package devel
Summary: Libraries and header files for programs that use libwww.
Group: Development/Libraries
Requires: w3c-libwww
%description devel
Static libraries and header files for libwww, which are available as public
libraries.
%package apps
Summary: Applications built using Libwww web library: e.g. Robot, command line tool, etc.
Group: Applications/Internet
Requires: w3c-libwww
Icon: robot48x.gif
%description apps
Web applications built using Libwww: Robot, Command line tool,
line mode browser. The Robot can crawl web sites faster, and
with lower load, than any other web walker that we know of,
due to its extensive pipelining and use of HTTP/1.1.
The command line tool (w3c) is very useful for manipulation of
Web sites that implement more than just HTTP GET (e.g. PUT,
POST, etc.).
The line mode browser is a minimal line mode web browser;
often useful to convert to ascii text. Currently unavailable
until someone updates it to some new interfaces. (hint, hint...)
%prep
%setup -q
%build
# for RPM 2.9 and greater
#%configure --enable-shared --with-gnu-ld --with-regex --with-zlib
[ -f configure.in ]
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --enable-shared --with-gnu-ld --with-regex --with-zlib
make
%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{prefix} install
( cd $RPM_BUILD_ROOT
chmod +x ./usr/lib/lib{www*,xml*,md5}.so.0.*
strip ./usr/bin/* || :
)
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{prefix}/lib/libwww*.so.*
%{prefix}/lib/libxml*.so.*
%{prefix}/lib/libmd5.so.*
%{prefix}/share/w3c-libwww
%doc *.html */*.html */*/*.html Icons/*/*.gif
%files apps
%defattr(-,root,root)
%{prefix}/bin/webbot
%{prefix}/bin/w3c
%files devel
%defattr(-,root,root)
%{prefix}/bin/libwww-config
%{prefix}/lib/lib*.a
%{prefix}/lib/lib*.la
%{prefix}/lib/lib*.so
%{prefix}/include/xmlparse.h
%{prefix}/include/w3c-libwww
%changelog
* Fri Aug 04 2000 Jose Kahan <[email protected])
- Added blurb about the OpenSSL support, some esthetical changes
* Mon Apr 12 1999 Jim Gettys <[email protected])
- down covert for older RPM currently widespread
* Mon Apr 12 1999 Jeff Johnson <[email protected]>
- repackage for Red Hat 6.0.