File mingw32-libgnome.spec of Package mingw32-libgnome

#
# spec file for package mingw32-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:           mingw32-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:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-filesystem >= 23
BuildRequires:  mingw32-gconf2-devel
BuildRequires:  mingw32-gettext-tools
BuildRequires:  mingw32-glib2-devel
BuildRequires:  mingw32-gnome-vfs2-devel
BuildRequires:  mingw32-gtk-doc
BuildRequires:  mingw32-libbonobo-devel
BuildRequires:  mingw32-libbz2-devel
BuildRequires:  mingw32-libxml2-devel
BuildRequires:  mingw32-orbit2-devel
BuildRequires:  mingw32-pkg-config
BuildRequires:  mingw32-popt-devel
BuildRequires:  mingw32-zlib-devel
BuildRequires:  python
BuildRequires:  translation-update-upstream
BuildRequires:  vim
#!BuildIgnore: post-build-checks
Requires:       %{name}-lang = %{version}
%_mingw32_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).

%_mingw32_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'" >>%{_mingw32_cache}
PATH="%{_mingw32_bindir}:$PATH" \
%{_mingw32_configure} \
	--enable-shared --disable-static \
	--disable-canberra --disable-esd \
	--disable-schemas-install --enable-gtk-doc
%{_mingw32_make} %{?_smp_mflags} || %{_mingw32_make}

%install
%{_mingw32_make} DESTDIR=%{buildroot} install

rm -rf %{buildroot}%{_mingw32_libdir}/bonobo/monikers/*.dll.a
rm -rf %{buildroot}%{_mingw32_libdir}/bonobo/monikers/*.la

%find_lang libgnome-2.0

%files
%defattr(-,root,root)
%{_mingw32_sysconfdir}/gconf/schemas
%{_mingw32_sysconfdir}/sound/events
%{_mingw32_bindir}/gnome-open.exe
%{_mingw32_bindir}/libgnome-2-0.dll
%{_mingw32_libdir}/bonobo/monikers/*.dll
%{_mingw32_libdir}/bonobo/servers
%{_mingw32_datadir}/gnome-background-properties
%{_mingw32_datadir}/pixmaps/backgrounds/gnome
%{_mingw32_mandir}/man7/gnome-options.7*

%files lang -f libgnome-2.0.lang
%defattr(-,root,root)

%files devel
%defattr(-,root,root)
%{_mingw32_libdir}/libgnome-2.dll.a
%{_mingw32_libdir}/pkgconfig/libgnome-2.0.pc
%{_mingw32_datadir}/gtk-doc/html/libgnome
%{_mingw32_includedir}/libgnome-2.0/libgnome

%changelog
openSUSE Build Service is sponsored by