File mingw64-liborcus.spec of Package mingw64-liborcus

#
# spec file for package mingw64-liborcus
#
# Copyright (c) 2016 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-liborcus
Version:        0.11.2
Release:        0
Summary:        Spreadsheet file processing library
License:        MIT
Group:          Productivity/Publishing/Word
Url:            http://gitorious.org/orcus
Source:         http://kohei.us/files/orcus/src/liborcus-%{version}.tar.xz
Patch0:         liborcus-0.11.2-boost.patch
Patch1:         liborcus-0.11.2-gcc11.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  mingw64-boost-devel
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-libixion-devel >= 0.11.0
BuildRequires:  mingw64-zlib-devel
BuildRequires:  xz
BuildRequires:  mingw64(pkg:mdds-1.2)
%_mingw64_package_header_debug
BuildArch:      noarch
#!BuildIgnore: post-build-checks

%description
Standalone file import filter library for spreadsheet documents. Currently
under development are ODS, XLSX and CSV import filters.

%package -n mingw64-liborcus-0_11-0
Summary:        Spreadsheet file processing library
Group:          System/Libraries
Obsoletes:      %{name}
Provides:       %{name}

%description -n mingw64-liborcus-0_11-0
Standalone file import filter library for spreadsheet documents. Currently
under development are ODS, XLSX and CSV import filters.

%package -n mingw64-liborcus-parser-0_11-0
Summary:        Spreadsheet file processing library
Group:          System/Libraries
Obsoletes:      %{name}-parser
Provides:       %{name}-parser

%description -n mingw64-liborcus-parser-0_11-0
Standalone file import filter library for spreadsheet documents. Currently
under development are ODS, XLSX and CSV import filters.

%package -n mingw64-liborcus-mso-0_11-0
Summary:        Spreadsheet file processing library
Group:          System/Libraries
Obsoletes:      %{name}-mso
Provides:       %{name}-mso

%description -n mingw64-liborcus-mso-0_11-0
Standalone file import filter library for spreadsheet documents. Currently
under development are ODS, XLSX and CSV import filters.

%package -n mingw64-liborcus-spreadsheet-model-0_11-0
Summary:        Spreadsheet file processing library
Group:          System/Libraries
Obsoletes:      %{name}-spreadsheet-model
Provides:       %{name}-spreadsheet-model

%description -n mingw64-liborcus-spreadsheet-model-0_11-0
Standalone file import filter library for spreadsheet documents. Currently
under development are ODS, XLSX and CSV import filters.

%package devel
Summary:        Spreadsheet file processing library
Group:          Development/Libraries/C and C++

%description devel
Standalone file import filter library for spreadsheet documents. Currently
under development are ODS, XLSX and CSV import filters.

%package tools
Summary:        Spreadsheet file processing library
Group:          Productivity/Publishing/Word

%description tools
Tools to work with various xml streams.

%_mingw64_debug_package

%prep
%autosetup -p1 -n liborcus-%{version}

%build
libtoolize --force --copy
aclocal -I m4
autoheader
automake -a -c --foreign
autoconf
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
	--enable-shared --disable-static \
	--disable-python \
	--without-gnumeric-filter \
	--with-boost=%{_mingw64_prefix} \
	--with-sysroot=%{_mingw64_prefix}

make %{?_smp_mflags} || make V=1

%install
%{_mingw64_make} DESTDIR=%{buildroot} install

%files -n mingw64-liborcus-0_11-0
%defattr(-,root,root)
%{_mingw64_bindir}/liborcus-0.11-0.dll

%files -n mingw64-liborcus-parser-0_11-0
%defattr(-,root,root)
%{_mingw64_bindir}/liborcus-parser-0.11-0.dll

%files -n mingw64-liborcus-mso-0_11-0
%defattr(-,root,root)
%{_mingw64_bindir}/liborcus-mso-0.11-0.dll

%files -n mingw64-liborcus-spreadsheet-model-0_11-0
%defattr(-,root,root)
%{_mingw64_bindir}/liborcus-spreadsheet-model-0.11-0.dll

%files devel
%defattr(-,root,root)
%{_mingw64_libdir}/liborcus*.dll.a
%{_mingw64_libdir}/pkgconfig/liborcus*.pc
%{_mingw64_includedir}/*

%files tools
%defattr(-,root,root)
%{_mingw64_bindir}/*.exe

%changelog
openSUSE Build Service is sponsored by