Summary: An HTTP and WebDAV client library Name: neon Version: 0.28.0 Release: 1 License: LGPL Group: System Environment/Libraries URL: http://www.webdav.org/neon/ Source0: http://www.webdav.org/neon/neon-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: expat-devel, openssl-devel, zlib-devel BuildRequires: pkg-config Requires: expat, openssl, zlib %description neon is an HTTP and WebDAV client library, with a C interface; providing a high-level interface to HTTP and WebDAV methods along with a low-level interface for HTTP request handling. neon supports persistent connections, proxy servers, basic, digest and Kerberos authentication, and has complete SSL support. The library is available as 32-bit and 64-bit. %package devel Summary: Development libraries and C header files for the neon library Group: Development/Libraries Requires: neon = %{version}-%{release}, openssl-devel, zlib-devel, expat-devel Requires: pkg-config %description devel The development library for the C language HTTP and WebDAV client library. If you are compiling a 32-bit program, no special compiler options are needed. If you are compiling a 64-bit program, you have to compile and link your application with "cc -q64" or "gcc -maix64". %prep %setup -q %build # setup environment for 32-bit and 64-bit builds export AR="ar -X32_64" export NM="nm -X32_64" # first build the 64-bit version export CC="cc -q64 -I/opt/freeware/include" ./configure \ --prefix=%{_prefix} \ --mandir=%{_prefix}/man \ --enable-shared --enable-static \ --with-ssl=openssl \ --with-expat make %{?_smp_mflags} cp src/.libs/libneon.so.27 . make distclean # now build the 32-bit version export CC="cc -I/opt/freeware/include" ./configure \ --prefix=%{_prefix} \ --mandir=%{_prefix}/man \ --enable-shared --enable-static \ --with-ssl=openssl \ --with-expat make %{?_smp_mflags} # add the 64-bit shared objects to the shared library containing already the # 32-bit shared objects ${AR} -q src/.libs/libneon.a ./libneon.so.27 %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,system) %doc AUTHORS BUGS TODO src/COPYING.LIB NEWS README THANKS %{_libdir}/*.a %files devel %defattr(-,root,system) %{_bindir}/* %{_includedir}/* %{_libdir}/pkgconfig/neon.pc %{_mandir}/man1/* %{_mandir}/man3/* %{_libdir}/*.la %{_datadir}/* %changelog * Mon Feb 20 2008 Michael Perzl - 0.28.0-1 - updated to version 0.28.0 * Mon Jan 07 2008 Michael Perzl - 0.27.2-2 - included both 32-bit and 64-bit shared objects * Mon Dec 17 2007 Michael Perzl 0.27.2-1 - First version for AIX5L v5.1 and higher