File mingw64-libgsf.spec of Package mingw64-libgsf

#
# spec file for package mingw64-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:           mingw64-libgsf
Version:        1.14.30
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:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem
BuildRequires:  mingw64-glib2-devel
BuildRequires:  mingw64-libbz2-devel
BuildRequires:  mingw64-libintl-devel
BuildRequires:  mingw64-libxml2-devel
BuildRequires:  mingw64-zlib-devel
#!BuildIgnore: post-build-checks
#For unpacking xz files
BuildRequires:  xz
Requires:       %{name}-lang = %{version}
%_mingw64_package_header_debug
BuildArch:      noarch

%description
MinGW Windows port of the library for reading and writing structured files.

%package -n mingw64-libgsf-1-114
Summary:        Library for reading and writing structured files
Group:          System/Libraries
Obsoletes:      mingw64-libgsf
Provides:       mingw64-libgsf

%description -n mingw64-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).

%_mingw64_debug_package

%lang_package

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

%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
	--without-python \
	--enable-shared --disable-static
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}

%install
%{_mingw64_makeinstall}

%find_lang libgsf

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

%files lang -f libgsf.lang
%defattr(-,root,root)

%files devel
%defattr(-,root,root)
%{_mingw64_libdir}/libgsf-1.dll.a
%{_mingw64_libdir}/libgsf-win32-1.dll.a
%{_mingw64_libdir}/pkgconfig/libgsf-1.pc
%{_mingw64_libdir}/pkgconfig/libgsf-win32-1.pc
%{_mingw64_datadir}/gtk-doc/html/gsf
%{_mingw64_includedir}/libgsf-1/gsf
%{_mingw64_includedir}/libgsf-1/gsf-win32

%files tools
%defattr(-,root,root)
%{_mingw64_bindir}/gsf.exe
%{_mingw64_bindir}/gsf-office-thumbnailer.exe
%{_mingw64_bindir}/gsf-vba-dump.exe
%{_mingw64_datadir}/thumbnailers/gsf-office.thumbnailer
%{_mingw64_mandir}/man1/gsf.1*
%{_mingw64_mandir}/man1/gsf-office-thumbnailer.1*
%{_mingw64_mandir}/man1/gsf-vba-dump.1*

%changelog
openSUSE Build Service is sponsored by