Summary: An HTTP and WebDAV client library Name: neon Version: 0.29.5 Release: 1 License: LGPL Group: System Environment/Libraries URL: http://www.webdav.org/neon/ Source0: http://www.webdav.org/%{name}/%{name}-%{version}.tar.gz Source1: http://www.webdav.org/%{name}/%{name}-%{version}.tar.gz.asc BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: expat-devel >= 2.0.0 BuildRequires: openssl-devel >= 0.9.8, zlib-devel BuildRequires: pkg-config, gettext Requires: expat >= 2.0.0 Requires: openssl >= 0.9.8, zlib, gettext %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 export CC="cc -I/opt/freeware/include" # first build the 64-bit version export OBJECT_MODE=64 ./configure \ --prefix=%{_prefix} \ --mandir=%{_prefix}/man \ --enable-shared --enable-static \ --with-ssl=openssl \ --with-expat gmake %{?_smp_mflags} cp src/.libs/libneon.so.27 . make distclean # now build the 32-bit version export OBJECT_MODE=32 ./configure \ --prefix=%{_prefix} \ --mandir=%{_prefix}/man \ --enable-shared --enable-static \ --with-ssl=openssl \ --with-expat gmake %{?_smp_mflags} # add the 64-bit shared objects to the shared library containing already the # 32-bit shared objects /usr/bin/ar -X32_64 -q src/.libs/libneon.a ./libneon.so.27 %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make DESTDIR=${RPM_BUILD_ROOT} install ( cd ${RPM_BUILD_ROOT} for dir in bin include lib do mkdir -p usr/${dir} cd usr/${dir} ln -sf ../..%{_prefix}/${dir}/* . cd - done ) %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 /usr/lib/*.a %files devel %defattr(-,root,system) %{_bindir}/* %{_includedir}/* %{_libdir}/pkgconfig/neon.pc %{_mandir}/man1/* %{_mandir}/man3/* %{_libdir}/*.la %{_datadir}/* /usr/bin/* /usr/include/* /usr/lib/*.la %changelog * Fri Oct 15 2010 Michael Perzl - 0.29.5-1 - updated to version 0.29.5 * Tue Oct 05 2010 Michael Perzl - 0.29.4-1 - updated to version 0.29.4 * Tue Jul 06 2010 Michael Perzl - 0.29.3-2 - removed dependency on gettext >= 0.17 * Tue Jan 12 2010 Michael Perzl - 0.29.3-1 - updated to version 0.29.3 * Fri Jan 08 2010 Michael Perzl - 0.29.2-1 - updated to version 0.29.2 * Wed Dec 16 2009 Michael Perzl - 0.29.1-1 - updated to version 0.29.1 * Mon Sep 14 2009 Michael Perzl - 0.29.0-1 - updated to version 0.29.0 * Wed Mar 11 2009 Michael Perzl - 0.28.4-1 - updated to version 0.28.4 * Mon Aug 25 2008 Michael Perzl - 0.28.3-1 - updated to version 0.28.3 * Fri Apr 04 2008 Michael Perzl - 0.28.2-1 - updated to version 0.28.2 * Mon Mar 31 2008 Michael Perzl - 0.28.1-2 - rebuilt with new version of expat * Wed Mar 12 2008 Michael Perzl - 0.28.1-1 - updated to version 0.28.1 * 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