File mingw64-redland.spec of Package mingw64-redland

#
# spec file for package mingw64-redland
#
# Copyright (c) 2018 SUSE LINUX 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-redland
Version:        1.0.16
Release:        0
Summary:        Set of free software libraries providing RDF support
License:        LGPL-2.1-or-later AND Apache-2.0
Group:          Development/Libraries
Url:            http://librdf.org/redland/
Source0:        http://download.librdf.org/source/redland-%{version}.tar.gz
Patch0:         redland-1.0.16-mingw.patch
Patch1:         redland-1.0.16-gcc-9-compile-fix.patch
#!BuildIgnore: post-build-checks
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gtk-doc
BuildRequires:  libtool
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem >= 23
BuildRequires:  mingw64-libdb-devel
BuildRequires:  mingw64-libraptor2-devel
BuildRequires:  mingw64-librasqal-devel >= 0.9.25
BuildRequires:  mingw64-libxml2-devel
BuildRequires:  mingw64-sqlite-devel
%_mingw64_package_header_debug
BuildArch:      noarch

%description
Redland is a library that provides a high-level interface for RDF
(Resource Description Framework) implemented in an object-based API. It
is modular and supports different RDF parsers, serializers, storage and
query languages.  Redland is designed for developers to provide RDF
support in their applications as well as a core library for RDF
developers to start with.

%package -n mingw64-libredland-devel
Summary:        Set of free software libraries providing RDF support
Group:          Development/Libraries

%description -n mingw64-libredland-devel
Redland is a library that provides a high-level interface for RDF
(Resource Description Framework) implemented in an object-based API. It
is modular and supports different RDF parsers, serializers, storage and
query languages.  Redland is designed for developers to provide RDF
support in their applications as well as a core library for RDF
developers to start with.

%package -n mingw64-libredland
Summary:        Set of free software libraries providing RDF support
Group:          Development/Libraries

%description -n mingw64-libredland
Redland is a library that provides a high-level interface for RDF
(Resource Description Framework) implemented in an object-based API. It
is modular and supports different RDF parsers, serializers, storage and
query languages.  Redland is designed for developers to provide RDF
support in their applications as well as a core library for RDF
developers to start with.

%_mingw64_debug_package

%prep
%setup -q -n redland-%{version}
%patch -P 0 -p1 -b .mingw
%patch -P 1 -p1 -b .mingw

%build
NOCONFIGURE=1 ./autogen.sh
pushd libltdl
libtoolize --force --copy --install
autoreconf -fi
popd
echo "lt_cv_deplibs_check_method=pass_all" >>%{_mingw64_cache}
PATH="%{_mingw64_bindir}:$PATH" \
%{_mingw64_configure} \
	--disable-static --enable-shared \
	--enable-redland2 \
	--with-xml-parser=libxml --with-postgresql=no \
	--with-include-ltdl --with-mysql=no \
	--with-bdb=%{_mingw64_prefix} --with-bdb-lib=%{_mingw64_libdir} \
	--with-bdb-include=%{_mingw64_includedir} --with-threestore=yes \
	--disable-modular
make %{?_smp_mflags} || make

%install

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

%files
%defattr(-,root,root)
%{_mingw64_bindir}/redland-db-upgrade.exe
%{_mingw64_bindir}/rdfproc.exe
%{_mingw64_mandir}/man1/redland-db-upgrade.1*
%{_mingw64_mandir}/man1/rdfproc.1*

%files -n mingw64-libredland-devel
%defattr(-,root,root)
%{_mingw64_bindir}/redland-config
%{_mingw64_datadir}/gtk-doc/html/redland
%{_mingw64_datadir}/redland/Redland.i
%{_mingw64_includedir}/redland.h
%{_mingw64_includedir}/librdf.h
%{_mingw64_includedir}/rdf_*.h
%{_mingw64_libdir}/librdf.dll.a
%{_mingw64_libdir}/pkgconfig/redland.pc
%{_mingw64_mandir}/man1/redland-config.1*
%{_mingw64_mandir}/man3/redland.3*

%files -n mingw64-libredland
%defattr(-,root,root)
%{_mingw64_bindir}/librdf-0.dll

%changelog
openSUSE Build Service is sponsored by