File mingw64-libvisio.spec of Package mingw64-libvisio
#
# spec file for package mingw64-libvisio
#
# Copyright (c) 2017 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-libvisio
Version: 0.1.5
Release: 0
Summary: Library for parsing the MS Visio file format structure
License: LGPL-2.1-or-later or GPL-2.0-or-later or MPL-1.1
Group: Development/Libraries/C and C++
Url: http://www.freedesktop.org/wiki/Software/libvisio
Source0: http://dev-www.libreoffice.org/src/libvisio/libvisio-%{version}.tar.xz
BuildRequires: gperf
BuildRequires: m4
BuildRequires: mingw64-boost-devel
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config >= 0.20
BuildRequires: xz
BuildRequires: mingw64(pkg:cppunit)
BuildRequires: mingw64(pkg:icu-i18n)
BuildRequires: mingw64(pkg:librevenge-0.0)
BuildRequires: mingw64(pkg:libxml-2.0)
BuildRequires: mingw64(pkg:zlib)
%_mingw64_package_header_debug
BuildArch: noarch
#!BuildIgnore: post-build-checks
%description
libvisio is a library for parsing the MS Visio file format structure. It is
cross-platform, at the moment it can be build on Microsoft Windows and Linux.
%package -n mingw64-libvisio-0_1
Summary: Library for parsing the MS Visio file format structure
Group: System/Libraries
Obsoletes: %{name} < %{version}-%{release}
Provides: %{name} = %{version}-%{release}
%description -n mingw64-libvisio-0_1
libvisio is a library for parsing the MS Visio file format structure. It is
cross-platform, at the moment it can be build on Microsoft Windows and Linux.
%package tools
Summary: Tools to work with documents in MS Visio file-format
Group: Productivity/Publishing
%description tools
Tools to work with documents in MS Visio file-format.
%package devel
Summary: Files for Developing with libvisio
Group: Development/Libraries/C and C++
%description devel
libvisio is a library for parsing the MS Visio file format structure. It is
cross-platform, at the moment it can be build on Microsoft Windows and Linux.
This package contains the libvisio development files.
%_mingw64_debug_package
%prep
%setup -q -n libvisio-%{version}
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
--enable-shared --disable-static \
--without-docs --disable-werror
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}
%install
%{_mingw64_make} DESTDIR=%{buildroot} install
%files -n mingw64-libvisio-0_1
%defattr(-,root,root)
%{_mingw64_bindir}/libvisio-0.1.dll
%files tools
%defattr(-,root,root)
%{_mingw64_bindir}/vsd2*.exe
%{_mingw64_bindir}/vss2*.exe
%files devel
%defattr(-,root,root)
%{_mingw64_libdir}/libvisio-*.dll.a
%{_mingw64_libdir}/pkgconfig/libvisio-*.pc
%{_mingw64_includedir}/libvisio-*/libvisio
%changelog