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