File mingw64-libgnome.spec of Package mingw64-libgnome
#
# spec file for package mingw64-libgnome
#
# Copyright (c) 2018 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-libgnome
Version: 2.32.2+20170910.8487c2b4
Release: 0
Summary: MinGW Windows port of the GNOME 2.x Desktop Base Libraries.
License: GPL-2.0-or-later AND LGPL-2.1-or-later
Group: Development/Libraries
Url: ftp://ftp.gnome.org/pub/gnome/sources/libgnome
Source0: libgnome-%{version}.tar.xz
Patch1: libgnome-2.32.0-gthread.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gconf2-devel
BuildRequires: gettext-tools
BuildRequires: gnome-common
BuildRequires: gtk-doc
BuildRequires: intltool >= 0.40.0
BuildRequires: libtool
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem >= 23
BuildRequires: mingw64-gconf2-devel
BuildRequires: mingw64-gettext-tools
BuildRequires: mingw64-glib2-devel
BuildRequires: mingw64-gnome-vfs2-devel
BuildRequires: mingw64-gtk-doc
BuildRequires: mingw64-libbonobo-devel
BuildRequires: mingw64-libbz2-devel
BuildRequires: mingw64-libxml2-devel
BuildRequires: mingw64-orbit2-devel
BuildRequires: mingw64-pkg-config
BuildRequires: mingw64-popt-devel
BuildRequires: mingw64-zlib-devel
BuildRequires: python
BuildRequires: translation-update-upstream
BuildRequires: vim
#!BuildIgnore: post-build-checks
Requires: %{name}-lang = %{version}
%_mingw64_package_header_debug
BuildArch: noarch
%description
MinGW Windows port of the GNOME 2.x Desktop Base Libraries.
%package devel
Summary: MinGW Windows port of the GNOME 2.x Desktop Base Libraries (development files).
Group: Development/Libraries
%description devel
MinGW Windows port of the GNOME 2.x Desktop Base Libraries (development files).
%_mingw64_debug_package
%lang_package
%prep
%setup -q -n libgnome-%{version}
translation-update-upstream
%patch -P 1 -p1 -b .gthread
%build
NOCONFIGURE=indeed ./autogen.sh
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
PATH="%{_mingw64_bindir}:$PATH" \
%{_mingw64_configure} \
--enable-shared --disable-static \
--disable-canberra --disable-esd \
--disable-schemas-install --enable-gtk-doc
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}
%install
%{_mingw64_make} DESTDIR=%{buildroot} install
rm -rf %{buildroot}%{_mingw64_libdir}/bonobo/monikers/*.dll.a
rm -rf %{buildroot}%{_mingw64_libdir}/bonobo/monikers/*.la
%find_lang libgnome-2.0
%files
%defattr(-,root,root)
%{_mingw64_sysconfdir}/gconf/schemas
%{_mingw64_sysconfdir}/sound/events
%{_mingw64_bindir}/gnome-open.exe
%{_mingw64_bindir}/libgnome-2-0.dll
%{_mingw64_libdir}/bonobo/monikers/*.dll
%{_mingw64_libdir}/bonobo/servers
%{_mingw64_datadir}/gnome-background-properties
%{_mingw64_datadir}/pixmaps/backgrounds/gnome
%{_mingw64_mandir}/man7/gnome-options.7*
%files lang -f libgnome-2.0.lang
%defattr(-,root,root)
%files devel
%defattr(-,root,root)
%{_mingw64_libdir}/libgnome-2.dll.a
%{_mingw64_libdir}/pkgconfig/libgnome-2.0.pc
%{_mingw64_datadir}/gtk-doc/html/libgnome
%{_mingw64_includedir}/libgnome-2.0/libgnome
%changelog