1 |
%define snap 20061204 |
2 |
|
3 |
Summary: HTTP library of common code |
4 |
Name: w3c-libwww |
5 |
Version: 5.4.1 |
6 |
Release: %mkrel 0.%{snap}.6 |
7 |
License: W3C License |
8 |
Group: System/Libraries |
9 |
URL: http://www.w3.org/Library |
10 |
Source0: http://www.w3.org/Library/Distribution/w3c-libwww-%{version}-%{snap}.tar.gz |
11 |
Patch0: w3c-libwww-configure.patch |
12 |
Patch1: w3c-libwww-5.4.1-incdir.patch |
13 |
Patch2: w3c-libwww-ppc64.patch |
14 |
Patch3: w3c-libwww-md5.patch |
15 |
Patch4: w3c-libwww-expat.patch |
16 |
Patch5: w3c-libwww-lib64.diff |
17 |
Patch6: w3c-libwww-5.4.1-fix-install.patch |
18 |
Patch7: w3c-libwww-5.4.1-fix-link.patch |
19 |
Patch8: w3c-libwww_fix_Makefile_dependencies.patch |
20 |
BuildRequires: autoconf2.5 |
21 |
BuildRequires: automake |
22 |
BuildRequires: expat-devel |
23 |
BuildRequires: libtool |
24 |
BuildRequires: openssl-devel |
25 |
BuildRequires: zlib-devel |
26 |
|
27 |
|
28 |
%description |
29 |
Libwww is a general-purpose Web API written in C for Unix and Windows (Win32). |
30 |
With a highly extensible and layered API, it can accommodate many different |
31 |
types of applications including clients, robots, etc. The purpose of libwww |
32 |
is to provide a highly optimized HTTP sample implementation as well as other |
33 |
Internet protocols and to serve as a testbed for protocol experiments. |
34 |
|
35 |
See: http://www.w3.org/Consortium/Legal/copyright-software.html for |
36 |
further information on its license. |
37 |
|
38 |
%package devel |
39 |
Summary: Libraries and header files for programs that use libwww |
40 |
Group: Development/Other |
41 |
Requires: %{name} = %{version}-%{release} |
42 |
|
43 |
%description devel |
44 |
Static libraries and header files for libwww, which are available as public |
45 |
libraries. |
46 |
|
47 |
%package apps |
48 |
Summary: Applications built using Libwww web library: e.g. Robot, etc |
49 |
Group: Networking/WWW |
50 |
Requires: %{name} = %{version}-%{release} |
51 |
|
52 |
%description apps |
53 |
Web applications built using Libwww: Robot, Command line tool, |
54 |
line mode browser. The Robot can crawl web sites faster, and |
55 |
with lower load, than any other web walker that we know of, |
56 |
due to its extensive pipelining and use of HTTP/1.1. |
57 |
|
58 |
The command line tool (w3c) is very useful for manipulation of |
59 |
Web sites that implement more than just HTTP GET (e.g. PUT, |
60 |
POST, etc.). |
61 |
|
62 |
The line mode browser is a minimal line mode web browser; |
63 |
often useful to convert to ascii text. Currently unavailable |
64 |
until someone updates it to some new interfaces. (hint, hint...) |
65 |
|
66 |
%prep |
67 |
|
68 |
%setup -q |
69 |
|
70 |
#cvs -d :pserver:anonymous@dev.w3.org:/sources/public login |
71 |
#after which you type "anonymous" as password. |
72 |
#cvs -d :pserver:anonymous@dev.w3.org:/sources/public -z3 checkout libwww |
73 |
|
74 |
find . -type d -perm 0700 -exec chmod 755 {} \; |
75 |
find . -type f -perm 0555 -exec chmod 755 {} \; |
76 |
find . -type f -perm 0544 -exec chmod 644 {} \; |
77 |
find . -type f -perm 0444 -exec chmod 644 {} \; |
78 |
|
79 |
for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do |
80 |
if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null |
81 |
done |
82 |
|
83 |
%patch0 -p1 |
84 |
%patch1 -p1 |
85 |
%patch2 -p1 -b .ppc64 |
86 |
%patch3 -p0 |
87 |
%patch4 -p1 |
88 |
%patch5 -p0 |
89 |
%patch6 -p0 |
90 |
%patch7 -p0 -b .link |
91 |
%patch8 -p1 |
92 |
|
93 |
# we don't want the libwww version |
94 |
rm -rf modules/expat |
95 |
|
96 |
%build |
97 |
autoreconf -fi |
98 |
echo timestamp > stamp-h.in |
99 |
%configure2_5x \ |
100 |
--enable-shared \ |
101 |
--disable-static \ |
102 |
--with-gnu-ld \ |
103 |
--with-regex \ |
104 |
--with-zlib \ |
105 |
--with-ssl \ |
106 |
--enable-reentrant |
107 |
|
108 |
%make |
109 |
|
110 |
%install |
111 |
rm -rf %{buildroot} |
112 |
|
113 |
%makeinstall_std |
114 |
|
115 |
%multiarch_binaries %{buildroot}%{_bindir}/libwww-config |
116 |
|
117 |
|
118 |
|
119 |
%clean |
120 |
rm -rf %{buildroot} |
121 |
|
122 |
%files |
123 |
%defattr(-,root,root) |
124 |
%doc *.html Icons/*/*.gif |
125 |
%{_libdir}/libpics*.so.* |
126 |
%{_libdir}/libwww*.so.* |
127 |
%{_libdir}/libmd5.so.* |
128 |
%{_datadir}/w3c-libwww |
129 |
|
130 |
%files apps |
131 |
%defattr(-,root,root) |
132 |
%doc COPYRIGH |
133 |
%{_bindir}/webbot |
134 |
%{_bindir}/w3c |
135 |
%{_bindir}/www |
136 |
|
137 |
%files devel |
138 |
%defattr(-,root,root) |
139 |
%doc COPYRIGH |
140 |
%multiarch %{_bindir}/multiarch-*-linux/libwww-config |
141 |
%{_bindir}/libwww-config |
142 |
%{_libdir}/lib*.la |
143 |
%{_libdir}/lib*.so |
144 |
%dir %{_includedir}/w3c-libwww |
145 |
%{_includedir}/w3c-libwww/*.h |