This repository has been archived on 2024-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
libwww/libwww.spec

124 lines
3.9 KiB
RPMSpec
Raw Permalink Normal View History

Name: libwww
Version: 5.4.0
Release: 5mamba
Summary: General-purpose Web API written in C
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.w3.org/Library/
Source: http://www.w3.org/Library/Distribution/w3c-%{name}-%{version}.tgz
Patch0: %{name}-5.4.0-can_2005_3183.patch
Patch1: %{name}-5.4.0-libtool.patch
Patch2: %{name}-5.4.0-incdir.patch
License: W3C License
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libopenssl-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: libncurses-devel >= 5.4
BuildRoot: %{_tmppath}/%{name}-%{version}-root
# checking whether to support mysql access.... no
%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.
%package apps
Group: Applications/Web
Summary: Applications built using Libwww web library
Requires: %{name} = %{version}-%{release}
%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.
%package devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
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.
This package contains static libraries and header files need for development.
%prep
%setup -q -n w3c-%{name}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%build
%configure \
--enable-shared \
--with-gnu-ld \
--with-zlib \
--with-regex \
--with-md5 \
--with-dav \
--with-ssl \
--with-exension
%make -j1
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
chmod +x %{buildroot}%{_libdir}/lib{www*,xml*,md5}.so.0.*
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/*.so.*
%{_datadir}/w3c-libwww/*
%files apps
%defattr(-,root,root)
%{_bindir}/w3c
%{_bindir}/webbot
%{_bindir}/www
%files devel
%defattr(-,root,root)
%{_bindir}/libwww-config
%{_includedir}/*.h
%dir %{_includedir}/w3c-libwww/
%{_includedir}/w3c-libwww/*.h
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so
%doc *.html
%changelog
* Mon Jan 03 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 5.4.0-5mamba
- rebuilt with openssl 1.0.0
* Thu Jun 12 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 5.4.0-4mamba
- specfile updated
* Mon Jan 09 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 5.4.0-3qilnx
- fixed package group and license
* Fri Nov 11 2005 Davide Madrisan <davide.madrisan@qilinux.it> 5.4.0-2qilnx
- security update for CAN-2005-3183 (QiLinux bug#68)
- enabled support for OpenSSL
* Thu Dec 02 2004 Davide Madrisan <davide.madrisan@qilinux.it> 5.4.0-1qilnx
- package created by autospec