File mingw64-libneon.spec of Package mingw64-libneon

#
# spec file for package mingw64-libneon
#
# 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:           mingw64-libneon
Version:        0.30.1
Release:        0
Summary:        HTTP and WebDAV Client Library
License:        GPL-2.0-or-later
Group:          Development/Libraries/C and C++
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:         fix-gnutls-3.4-compilation.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem >= 35
BuildRequires:  mingw64-libgcrypt-devel
BuildRequires:  mingw64-libgnutls-devel
BuildRequires:  mingw64-libgpg-error-devel
BuildRequires:  mingw64-libintl-devel
BuildRequires:  mingw64-libproxy-devel
BuildRequires:  mingw64-libxml2-devel
Requires:       %{name}-lang >= %{version}
%_mingw64_package_header_debug
BuildArch:      noarch

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

%package -n mingw64-libneon27
Summary:        HTTP and WebDAV Client Library
Group:          System/Libraries
Obsoletes:      %{name}
Provides:       %{name}
# Conflict with the openssl-based version
Conflicts:      %{name}-openssl

%description -n mingw64-libneon27
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/C and C++
# Conflict with the openssl-based version
Conflicts:      %{name}-openssl-devel

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

%_mingw64_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
./autogen.sh
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
echo "ne_cv_fmt_off64_t=lld" >>%{_mingw64_cache}
echo "ne_cv_fmt_XML_Size=lld" >>%{_mingw64_cache}
echo "ne_cv_fmt_off_t=lld" >>%{_mingw64_cache}
echo "ne_cv_fmt_size_t=ull" >>%{_mingw64_cache}
echo "ne_cv_fmt_ssize_t=lld" >>%{_mingw64_cache}
echo "ne_cv_fmt_time_t=lld" >>%{_mingw64_cache}
MINGW64_CFLAGS="-DHAVE_SSPI %{_mingw64_cflags}" \
MINGW64_CXXFLAGS="-DHAVE_SSPI %{_mingw64_cflags}" \
%{_mingw64_configure} \
  --with-ssl=gnutls \
  --enable-shared --disable-static --disable-warnings

make %{?_smp_mflags} || make

%lang_package

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

%files -n mingw64-libneon27
%defattr(-,root,root)
%{_mingw64_bindir}/libneon-27.dll

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

%files devel
%defattr(-,root,root)
%{_mingw64_bindir}/neon-config
%{_mingw64_libdir}/libneon.dll.a
%{_mingw64_libdir}/pkgconfig/neon.pc
%{_mingw64_includedir}/neon/
%{_mingw64_docdir}/neon-%{version}/html/*.html
%{_mingw64_mandir}

%changelog
openSUSE Build Service is sponsored by