File mingw64-shared-mime-info.spec of Package mingw64-shared-mime-info
#
# spec file for package mingw64-shared-mime-info
#
# 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-shared-mime-info
Version: 0.91
Release: 0
Summary: Shared MIME Database
License: GPL-2.0-or-later
Group: Development/Libraries
Url: http://freedesktop.org/wiki/Software/shared-mime-info
Source0: http://freedesktop.org/~hadess/shared-mime-info-%{version}.tar.xz
Patch1: 0001-Fix-build-for-platforms-with-executable-extensions.patch
Patch2: 0002-Disable-checks-when-cross-compiling.patch
Patch3: 0003-Use-non-installed-update-mime-database-in-install-da.patch
Patch4: 0004-Use-native-update-mime-database-for-install-when-cro.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: glib2-devel
BuildRequires: intltool >= 0.40.0
BuildRequires: libtool
BuildRequires: libxml2-devel
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem >= 23
BuildRequires: mingw64-glib2-devel
BuildRequires: mingw64-libxml2-devel
#!BuildIgnore: post-build-checks
#For unpacking the sources
BuildRequires: xz
Requires: %{name}-lang = %{version}
%_mingw64_package_header_debug
BuildArch: noarch
%description
This package contains:
- The freedesktop.org shared MIME database spec.
- The merged GNOME and KDE databases, in the new format.
- The update-mime-database command, used to install new MIME data.
%package devel
Summary: Shared MIME Database
Group: Development/Libraries
%description devel
Shared MIME Database (development files)
%_mingw64_debug_package
%lang_package
%prep
%setup -q -n shared-mime-info-%{version}
%patch -P 1 -p1
%patch -P 2 -p1
%patch -P 3 -p1
%patch -P 4 -p1
%build
autoreconf -f -i
%{_mingw64_configure}
%{_mingw64_make}
%install
%{_mingw64_makeinstall}
%find_lang shared-mime-info
%files
%defattr(-,root,root)
%{_mingw64_bindir}/update-mime-database.exe
%{_mingw64_mandir}/man1/update-mime-database.1*
%{_mingw64_datadir}/mime
%files lang -f shared-mime-info.lang
%defattr(-,root,root)
%files devel
%defattr(-,root,root)
%{_mingw64_datadir}/pkgconfig/shared-mime-info.pc
%changelog