]>
Commit | Line | Data |
---|---|---|
06c73fdd | 1 | Summary: HTTP library of common code |
2 | Name: w3c-libwww | |
3 | Version: 5.2.8 | |
4 | Release: 5 | |
5 | Copyright: W3C (see: http://www.w3.org/Consortium/Legal/copyright-software.html) | |
6 | Group: Libraries | |
7 | Source: http://www.w3.org/Library/Distribution/%{name}-%{version}.tar.gz | |
8 | Patch: w3c-libwww-DESTDIR.patch | |
9 | URL: http://www.w3.org/Library | |
10 | Icon: Lib48x.gif | |
ae696392 | 11 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
7b76d5c9 JR |
12 | |
13 | %description | |
06c73fdd | 14 | Libwww is a general-purpose Web API written in C for Unix and Windows |
15 | (Win32). With a highly extensible and layered API, it can accommodate many | |
16 | different types of applications including clients, robots, etc. The purpose | |
17 | of libwww is to provide a highly optimized HTTP sample implementation as | |
18 | well as other Internet protocols and to serve as a testbed for protocol | |
19 | experiments. | |
7b76d5c9 JR |
20 | |
21 | %package devel | |
06c73fdd | 22 | Summary: Libraries and header files for programs that use libwww |
23 | Group: Development/Libraries | |
24 | Group(fr): Development/Librairies | |
25 | Group(pl): Programowanie/Biblioteki | |
26 | Requires: %{name} = %{version} | |
7b76d5c9 JR |
27 | |
28 | %description devel | |
06c73fdd | 29 | Header files for libwww, which are available as public libraries. |
7b76d5c9 | 30 | |
06c73fdd | 31 | %package static |
32 | Summary: Static libwww libraries | |
33 | Group: Development/Libraries | |
34 | Group(fr): Development/Librairies | |
35 | Group(pl): Programowanie/Biblioteki | |
36 | Requires: %{name}-devel = %{version} | |
7b76d5c9 | 37 | |
06c73fdd | 38 | %description static |
39 | Static libwww libraries. | |
7b76d5c9 | 40 | |
06c73fdd | 41 | %package apps |
42 | Summary: Applications built using Libwww web library: e.g. Robot, command line tool, etc | |
43 | Group: Networking | |
44 | Group(pl): Aplikacje/Sieciowe | |
45 | Requires: %{name} = %{version} | |
46 | Icon: robot48x.gif | |
7b76d5c9 | 47 | |
06c73fdd | 48 | %description apps |
49 | Web applications built using Libwww: Robot, Command line tool, line mode | |
50 | browser. The Robot can crawl web sites faster, and with lower load, than any | |
51 | other web walker that we know of, due to its extensive pipelining and use of | |
52 | HTTP/1.1. The command line tool (w3c) is very useful for manipulation of Web | |
53 | sites that implement more than just HTTP GET (e.g. PUT, POST, etc.). The | |
54 | line mode browser is a minimal line mode web browser; often useful to | |
55 | convert to ascii text. Currently unavailable until someone updates it to | |
56 | some new interfaces. (hint, hint...) | |
7b76d5c9 JR |
57 | |
58 | %prep | |
59 | %setup -q | |
06c73fdd | 60 | %patch -p1 |
7b76d5c9 JR |
61 | |
62 | %build | |
06c73fdd | 63 | automake |
64 | LDFLAGS="-s"; export LDFLAGS | |
65 | %configure \ | |
66 | --enable-shared \ | |
67 | --with-gnu-ld \ | |
68 | --with-regex \ | |
69 | --with-zlib | |
7b76d5c9 JR |
70 | make |
71 | ||
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
06c73fdd | 75 | make DESTDIR=$RPM_BUILD_ROOT install |
7b76d5c9 | 76 | |
06c73fdd | 77 | strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.* |
7b76d5c9 JR |
78 | %clean |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
06c73fdd | 81 | %post -p /sbin/ldconfig |
7b76d5c9 JR |
82 | %postun -p /sbin/ldconfig |
83 | ||
84 | %files | |
06c73fdd | 85 | %defattr(644,root,root,755) |
7b76d5c9 | 86 | %doc *.html */*.html */*/*.html Icons/*/*.gif |
06c73fdd | 87 | %attr(755,root,root) %{_libdir}/libwww*.so.*.* |
88 | %attr(755,root,root) %{_libdir}/libxml*.so.*.* | |
89 | %attr(755,root,root) %{_libdir}/libmd5.so.*.* | |
90 | %{_datadir}/w3c-libwww | |
7b76d5c9 JR |
91 | |
92 | %files apps | |
06c73fdd | 93 | %attr(755,root,root) %{_bindir}/webbot |
94 | %attr(755,root,root) %{_bindir}/w3c | |
7b76d5c9 JR |
95 | |
96 | %files devel | |
06c73fdd | 97 | %defattr(644,root,root,755) |
98 | %attr(755,root,root) %{_bindir}/libwww-config | |
99 | %attr(755,root,root) %{_libdir}/libwww*.so | |
100 | %attr(755,root,root) %{_libdir}/libxml*.so | |
101 | %attr(755,root,root) %{_libdir}/libmd5.so | |
102 | %attr(755,root,root) %{_libdir}/libwww*.la | |
103 | %attr(755,root,root) %{_libdir}/libxml*.la | |
104 | %attr(755,root,root) %{_libdir}/libmd5.la | |
105 | ||
106 | %{_includedir}/xmlparse.h | |
107 | %{_includedir}/w3c-libwww | |
108 | ||
109 | %files static | |
110 | %defattr(644,root,root,755) | |
111 | %{_libdir}/libwww*.a | |
112 | %{_libdir}/libxml*.a | |
113 | %{_libdir}/libmd5.a |