File mingw64-raptor.spec of Package mingw64-raptor

#
# spec file for package mingw64-raptor
#
# 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-raptor
Version:        1.4.21
Release:        0
Summary:        Raptor RDF Parser Toolkit
License:        LGPL-2.1-or-later and Apache-2.0
Group:          Development/Libraries
Url:            http://librdf.org/raptor/
Source0:        http://download.librdf.org/source/raptor-%{version}.tar.gz
Source1000:     %{name}-rpmlintrc
Patch0:         raptor-1.4.21-mingw.patch
Patch1:         raptor-1.4.21-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-libxml2-devel
BuildRequires:  mingw64-libxslt-devel
BuildRequires:  mingw64-zlib-devel
%_mingw64_package_header_debug
BuildArch:      noarch

%description
Raptor is the RDF Parser Toolkit for Redland that provides a set of
standalone RDF parsers, generating triples from RDF/XML or N-Triples.

%package -n mingw64-libraptor-devel
Summary:        Raptor RDF Parser Toolkit
Group:          Development/Libraries

%description -n mingw64-libraptor-devel
Raptor is the RDF Parser Toolkit for Redland that provides a set of
standalone RDF parsers, generating triples from RDF/XML or N-Triples.

%package -n mingw64-libraptor
Summary:        Raptor RDF Parser Toolkit
Group:          Development/Libraries

%description -n mingw64-libraptor
Raptor is the RDF Parser Toolkit for Redland that provides a set of
standalone RDF parsers, generating triples from RDF/XML or N-Triples.

%_mingw64_debug_package

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

%build
./autogen.sh --help
echo "lt_cv_deplibs_check_method=pass_all" >>%{_mingw64_cache}
PATH="%{_mingw64_bindir}:$PATH" \
%{_mingw64_configure} \
	--disable-static --enable-shared \
	--with-xml-parser=libxml --with-www=xml
make %{?_smp_mflags}

%install

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

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

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

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

%changelog
openSUSE Build Service is sponsored by