File mingw64-rasqal.spec of Package mingw64-rasqal

#
# spec file for package mingw64-rasqal
#
# 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-rasqal
Version:        0.9.30
Release:        0
Summary:        Rasqal RDF Parser Toolkit for Redland
License:        LGPL-2.1-or-later and Apache-2.0
Group:          Development/Libraries
Url:            http://librdf.org/rasqal/
Source0:        http://download.librdf.org/source/rasqal-%{version}.tar.gz
Patch0:         rasqal-0.9.30-mingw.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-libraptor2-devel
BuildRequires:  mingw64-libxml2-devel
BuildRequires:  mingw64-pcre-devel
%_mingw64_package_header_debug
BuildArch:      noarch

%description
Rasqal is a library providing full support for querying Resource
Description Framework (RDF) including parsing query syntaxes,
constructing the queries, executing them and returning result formats.
It currently handles the RDF Data Query Language (RDQL) and SPARQL
Query language.

%package -n mingw64-librasqal-devel
Summary:        Rasqal RDF Parser Toolkit for Redland
Group:          Development/Libraries

%description -n mingw64-librasqal-devel
Rasqal is a library providing full support for querying Resource
Description Framework (RDF) including parsing query syntaxes,
constructing the queries, executing them and returning result formats.
It currently handles the RDF Data Query Language (RDQL) and SPARQL
Query language.

%package -n mingw64-librasqal
Summary:        Rasqal RDF Parser Toolkit for Redland
Group:          Development/Libraries

%description -n mingw64-librasqal
Rasqal is a library providing full support for querying Resource
Description Framework (RDF) including parsing query syntaxes,
constructing the queries, executing them and returning result formats.
It currently handles the RDF Data Query Language (RDQL) and SPARQL
Query language.

%_mingw64_debug_package

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

%patch -P 0 -p1 -b .mingw

%build
NOCONFIGURE=1 ./autogen.sh
echo "lt_cv_deplibs_check_method=pass_all" >>%{_mingw64_cache}
PATH="%{_mingw64_bindir}:$PATH" \
%{_mingw64_configure} \
	--disable-static --enable-shared \
	--enable-raptor2 \
	--with-regex-library=pcre --with-triples-source=raptor
make %{?_smp_mflags}

%install

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

%files
%defattr(-,root,root)
%{_mingw64_bindir}/roqet.exe
%{_mingw64_mandir}/man1/roqet.1*

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

%files -n mingw64-librasqal
%defattr(-,root,root)
%{_mingw64_bindir}/librasqal-3.dll

%changelog
openSUSE Build Service is sponsored by