File mingw32-libgsf.spec of Package mingw32-libgsf
#
# spec file for package mingw32-libgsf
#
# 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: mingw32-libgsf
Version: 1.14.53
Release: 0
Summary: Library for reading and writing structured files
License: GPL-2.0-or-later and LGPL-2.1-or-later
Group: Development/Libraries/GNOME
Url: http://www.gnome.org/
Source0: ftp://ftp.gnome.org/pub/gnome/sources/libgsf/1.14/libgsf-%{version}.tar.xz
BuildRequires: intltool
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem
BuildRequires: mingw32-glib2-devel
BuildRequires: mingw32-libbz2-devel
BuildRequires: mingw32-libintl-devel
BuildRequires: mingw32-libxml2-devel
BuildRequires: mingw32-zlib-devel
#!BuildIgnore: post-build-checks
#For unpacking xz files
BuildRequires: xz
Requires: %{name}-lang = %{version}
%_mingw32_package_header_debug
BuildArch: noarch
%description
MinGW Windows port of the library for reading and writing structured files.
%package -n mingw32-libgsf-1-114
Summary: Library for reading and writing structured files
Group: System/Libraries
Obsoletes: mingw32-libgsf < %{version}
Provides: mingw32-libgsf = %{version}
%description -n mingw32-libgsf-1-114
MinGW Windows port of the library for reading and writing structured files.
%package devel
Summary: Library for reading and writing structured files (development files)
Group: Development/Libraries/C and C++
%description devel
MinGW Windows port of the library for reading and writing structured files (development files).
%package tools
Summary: Library for reading and writing structured files (tools)
Group: Development/Tools/Other
%description tools
MinGW Windows port of the library for reading and writing structured files (tools).
%_mingw32_debug_package
%lang_package
%prep
%setup -q -n libgsf-%{version}
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
%{_mingw32_configure} \
--without-python \
--enable-shared --disable-static
%{_mingw32_make} %{?_smp_mflags} || %{_mingw32_make}
%install
%{_mingw32_makeinstall}
%find_lang libgsf
%files -n mingw32-libgsf-1-114
%defattr(-,root,root)
%{_mingw32_bindir}/libgsf-1-114.dll
%{_mingw32_bindir}/libgsf-win32-1-114.dll
%files lang -f libgsf.lang
%defattr(-,root,root)
%files devel
%defattr(-,root,root)
%{_mingw32_libdir}/libgsf-1.dll.a
%{_mingw32_libdir}/libgsf-win32-1.dll.a
%{_mingw32_libdir}/pkgconfig/libgsf-1.pc
%{_mingw32_libdir}/pkgconfig/libgsf-win32-1.pc
%{_mingw32_datadir}/gtk-doc/html/gsf
%{_mingw32_includedir}/libgsf-1/gsf
%{_mingw32_includedir}/libgsf-1/gsf-win32
%files tools
%defattr(-,root,root)
%{_mingw32_bindir}/gsf.exe
%{_mingw32_bindir}/gsf-office-thumbnailer.exe
%{_mingw32_bindir}/gsf-vba-dump.exe
%{_mingw32_datadir}/thumbnailers/gsf-office.thumbnailer
%{_mingw32_mandir}/man1/gsf.1*
%{_mingw32_mandir}/man1/gsf-office-thumbnailer.1*
%{_mingw32_mandir}/man1/gsf-vba-dump.1*
%changelog