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