| 1 | # $Revision: 1.101 $, $Date: 2011/05/05 07:42:12 $
|
|---|
| 2 | #
|
|---|
| 3 | # Conditional build:
|
|---|
| 4 | %bcond_without apidocs # build and package API docs
|
|---|
| 5 | %bcond_with static_libs # don't build static libraries
|
|---|
| 6 | %bcond_with kerberos5 # don't build Kerberos V support
|
|---|
| 7 | %bcond_with libproxy # don't build libproxy support
|
|---|
| 8 |
|
|---|
| 9 | Summary: An HTTP and WebDAV client library
|
|---|
| 10 | Name: neon
|
|---|
| 11 | Version: 0.30.0
|
|---|
| 12 | Release: 1
|
|---|
| 13 | License: LGPL v2+
|
|---|
| 14 | Group: Libraries
|
|---|
| 15 | # Source0: http://www.webdav.org/neon/%{name}-%{version}.tar.gz
|
|---|
| 16 |
|
|---|
| 17 | %define svn_url http://svn.netlabs.org/repos/ports/neon/trunk
|
|---|
| 18 | %define svn_rev 873
|
|---|
| 19 |
|
|---|
| 20 | Source: %{name}-%{version}-r%{svn_rev}.zip
|
|---|
| 21 |
|
|---|
| 22 | BuildRequires: gcc make subversion zip
|
|---|
| 23 |
|
|---|
| 24 | # Source0-md5: 591e0c82e6979e7e615211b386b8f6bc
|
|---|
| 25 | URL: http://www.webdav.org/neon/
|
|---|
| 26 |
|
|---|
| 27 | BuildRequires: autoconf >= 2.58
|
|---|
| 28 | BuildRequires: automake
|
|---|
| 29 | %{?with_kerberos5:BuildRequires: heimdal-devel}
|
|---|
| 30 | %{?with_libproxy:BuildRequires: libproxy-devel}
|
|---|
| 31 | BuildRequires: libtool >= 2.4
|
|---|
| 32 | BuildRequires: expat-devel
|
|---|
| 33 | BuildRequires: openssl-devel >= 0.9.7d
|
|---|
| 34 | BuildRequires: pkgconfig
|
|---|
| 35 | BuildRequires: zlib-devel
|
|---|
| 36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
|
|---|
| 37 |
|
|---|
| 38 | %description
|
|---|
| 39 | neon is an HTTP and WebDAV client library, with a C interface.
|
|---|
| 40 | Featuring:
|
|---|
| 41 | - High-level interface to HTTP and WebDAV methods (PUT, GET, HEAD
|
|---|
| 42 | etc).
|
|---|
| 43 | - Low-level interface to HTTP request handling, to allow implementing
|
|---|
| 44 | new methods easily.
|
|---|
| 45 | - HTTP/1.1 and HTTP/1.0 persistent connections.
|
|---|
| 46 | - RFC2617 basic and digest authentication (including auth-int,
|
|---|
| 47 | md5-sess).
|
|---|
| 48 | - Proxy support (including basic/digest authentication).
|
|---|
| 49 | - Generic WebDAV 207 XML response handling mechanism.
|
|---|
| 50 | - XML parsing using the expat or libxml parsers.
|
|---|
| 51 | - Easy generation of error messages from 207 error responses.
|
|---|
| 52 | - WebDAV resource manipulation: MOVE, COPY, DELETE, MKCOL.
|
|---|
| 53 | - WebDAV metadata support: set and remove properties, query any set of
|
|---|
| 54 | properties (PROPPATCH/PROPFIND).
|
|---|
| 55 |
|
|---|
| 56 | %package devel
|
|---|
| 57 | Summary: Header files for neon
|
|---|
| 58 | Group: Development/Libraries
|
|---|
| 59 | Requires: %{name} = %{version}-%{release}
|
|---|
| 60 | %{?with_kerberos5:Requires: heimdal-devel}
|
|---|
| 61 | %{?with_libproxy:Requires: libproxy-devel}
|
|---|
| 62 | Requires: expat-devel
|
|---|
| 63 | Requires: openssl-devel >= 0.9.7c
|
|---|
| 64 |
|
|---|
| 65 | %description devel
|
|---|
| 66 | C header files for the neon library.
|
|---|
| 67 |
|
|---|
| 68 | %package static
|
|---|
| 69 | Summary: Static libraries for neon
|
|---|
| 70 | Group: Development/Libraries
|
|---|
| 71 | Requires: %{name}-devel = %{version}-%{release}
|
|---|
| 72 |
|
|---|
| 73 | %description static
|
|---|
| 74 | Static neon libraries.
|
|---|
| 75 |
|
|---|
| 76 | %package apidocs
|
|---|
| 77 | Summary: neon API documentation
|
|---|
| 78 | Group: Documentation
|
|---|
| 79 |
|
|---|
| 80 | %description apidocs
|
|---|
| 81 | API and internal documentation for neon library.
|
|---|
| 82 |
|
|---|
| 83 | %prep
|
|---|
| 84 | %if %(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')
|
|---|
| 85 | %setup -q
|
|---|
| 86 | %else
|
|---|
| 87 | %setup -n "%{name}-%{version}" -Tc
|
|---|
| 88 | svn export -r %{svn_rev} %{svn_url} . --force
|
|---|
| 89 | rm -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip"
|
|---|
| 90 | (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" "%{name}-%{version}")
|
|---|
| 91 | %endif
|
|---|
| 92 |
|
|---|
| 93 | %build
|
|---|
| 94 | export LIBS="-lpthread"
|
|---|
| 95 | export NEON_LIBS="-lintl -lpthread"
|
|---|
| 96 | ./autogen.sh
|
|---|
| 97 | %configure \
|
|---|
| 98 | --enable-shared \
|
|---|
| 99 | --with-ssl \
|
|---|
| 100 | --enable-threadsafe-ssl=posix \
|
|---|
| 101 | %{!?with_static_libs:--disable-static} \
|
|---|
| 102 | %{!?with_kerberos5:--without-gssapi} \
|
|---|
| 103 | %{!?with_libproxy:--without-libproxy}
|
|---|
| 104 |
|
|---|
| 105 | %{__make} %{?_smp_mflags}
|
|---|
| 106 |
|
|---|
| 107 | %install
|
|---|
| 108 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 109 |
|
|---|
| 110 | %{__make} install \
|
|---|
| 111 | DESTDIR=$RPM_BUILD_ROOT
|
|---|
| 112 |
|
|---|
| 113 | #%find_lang %{name}
|
|---|
| 114 |
|
|---|
| 115 | %clean
|
|---|
| 116 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 117 |
|
|---|
| 118 | #%post -p /sbin/ldconfig
|
|---|
| 119 | #%postun -p /sbin/ldconfig
|
|---|
| 120 |
|
|---|
| 121 | %files
|
|---|
| 122 | # -f %{name}.lang
|
|---|
| 123 | %defattr(644,root,root,755)
|
|---|
| 124 | %doc AUTHORS BUGS ChangeLog NEWS README THANKS TODO
|
|---|
| 125 | %attr(755,root,root) %{_libdir}/neon*.dll
|
|---|
| 126 | %{_usr}/share/locale/*
|
|---|
| 127 |
|
|---|
| 128 | %files devel
|
|---|
| 129 | %defattr(644,root,root,755)
|
|---|
| 130 | %doc doc/*.txt
|
|---|
| 131 | %attr(755,root,root) %{_bindir}/neon-config
|
|---|
| 132 | %attr(755,root,root) %{_libdir}/neon*_dll.a
|
|---|
| 133 | %{_libdir}/libneon.la
|
|---|
| 134 | %{_libdir}/pkgconfig/neon.pc
|
|---|
| 135 | %{_includedir}/neon
|
|---|
| 136 | %{_mandir}/man1/neon-config.1*
|
|---|
| 137 | %{_mandir}/man3/ne_*.3*
|
|---|
| 138 | %{_mandir}/man3/neon.3*
|
|---|
| 139 |
|
|---|
| 140 | %if %{with static_libs}
|
|---|
| 141 | %files static
|
|---|
| 142 | %defattr(644,root,root,755)
|
|---|
| 143 | %{_libdir}/neon_s.a
|
|---|
| 144 | %endif
|
|---|
| 145 |
|
|---|
| 146 | %if %{with apidocs}
|
|---|
| 147 | %files apidocs
|
|---|
| 148 | %defattr(644,root,root,755)
|
|---|
| 149 | %doc doc/html/*
|
|---|
| 150 | %endif
|
|---|
| 151 |
|
|---|
| 152 | %changelog
|
|---|
| 153 | * Tue Sep 23 2014 Silvan Scherrer <silvan.scherrer@aroa.ch> 0.30.0-1
|
|---|
| 154 | - updated neon to 0.30.0
|
|---|