File mingw32-libneon-openssl.spec of Package mingw32-libneon-openssl

#
# spec file for package mingw32-libneon-openssl
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           mingw32-libneon-openssl
Version:        0.30.1
Release:        0
Summary:        HTTP and WebDAV Client Library
License:        GPL-2.0-or-later
Group:          Development/Libraries
Url:            http://www.webdav.org/neon/
Source0:        http://www.webdav.org/neon/neon-%{version}.tar.gz
#!BuildIgnore: post-build-checks
Patch1:         neon-0.29.1-mingw.patch
Patch2:         neon-0.28.4-morelibs.patch
Patch3:         use_win32_crypt.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-filesystem >= 35
BuildRequires:  mingw32-libgcrypt-devel
BuildRequires:  mingw32-libgpg-error-devel
BuildRequires:  mingw32-libintl-devel
BuildRequires:  mingw32-libopenssl >= 1.0.1
BuildRequires:  mingw32-libopenssl-devel
BuildRequires:  mingw32-libproxy-devel
BuildRequires:  mingw32-libxml2-devel
BuildRequires:  mingw32-openssl
Requires:       %{name}-lang >= %{version}
%_mingw32_package_header_debug
BuildArch:      noarch
# Conflict with the gnutls based version
Conflicts:      mingw32-libneon

%description
neon is an HTTP and WebDAV client library with a C interface.

Featuring:

* High-level interface to HTTP and WebDAV methods (PUT, GET, HEAD, etc.)

* Low-level interface to HTTP request handling to allow implementing new methods easily

* HTTP/1.1 and HTTP/1.0 persistent connections

* RFC2617 basic and digest authentication (including auth-int, md5-sess)

* Proxy support (including basic/digest authentication)

* Generic WebDAV 207 XML response handling mechanism

* XML parsing using the expat or libxml parsers

* Easy generation of error messages from 207 error responses

* WebDAV resource manipulation: MOVE, COPY, DELETE, MKCOL

* WebDAV metadata support: set and remove properties, query any set of properties (PROPPATCH/PROPFIND)

%package devel
Summary:        HTTP and WebDAV Client Library (development files)
Group:          Development/Libraries
# Conflict with the gnutls based version
Conflicts:      mingw32-libneon-devel

%description devel
neon is an HTTP and WebDAV client library with a C interface.
(development files)

%_mingw32_debug_package

%prep
%setup -q -n neon-%{version}

%patch -P 1 -p1 -b .mingw
%patch -P 2 -p1 -b .morelibs
%patch -P 3 -p1

%build
export CFLAGS="-DHAVE_SSPI"

./autogen.sh
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
echo "ne_cv_fmt_off64_t=lld" >>%{_mingw32_cache}
MINGW32_CFLAGS="-DHAVE_SSPI %{_mingw32_cflags}" \
MINGW32_CXXFLAGS="-DHAVE_SSPI %{_mingw32_cflags}" \
%{_mingw32_configure} \
  --with-ssl=openssl \
  --enable-shared --disable-static

make CFLAGS=-DHAVE_SSPI %{?_smp_mflags}

%lang_package

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}

%find_lang neon

%files
%defattr(-,root,root)
%{_mingw32_bindir}/libneon-27.dll

%files lang -f neon.lang
%defattr(-,root,root)

%files devel
%defattr(-,root,root)
%{_mingw32_bindir}/neon-config
%{_mingw32_libdir}/libneon.dll.a
%{_mingw32_libdir}/pkgconfig/neon.pc
%{_mingw32_includedir}/neon/
%{_mingw32_docdir}/neon-%{version}/html/*.html
%{_mingw32_mandir}

%changelog
openSUSE Build Service is sponsored by