File mingw64-libbonobo.spec of Package mingw64-libbonobo

#
# spec file for package mingw64-libbonobo
#
# 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-libbonobo
Version:        2.32.1
Release:        0
Summary:        MinGW Windows port of the Bonobo Component System for the GNOME 2.x Desktop Platform
License:        LGPL-2.0-only or MPL-1.1
Group:          Development/Libraries
Url:            ftp://ftp.gnome.org/pub/GNOME/sources/libIDL
Source0:        http://ftp.gnome.org/pub/gnome/sources/libbonobo/2.32/libbonobo-%{version}.tar.bz2
Source1000:     %{name}-rpmlintrc
Patch0:         libbonobo-2.24.1-w2k.patch
Patch1:         libbonobo-2.24.2-winnt.patch
Patch2:         libbonobo-2.32.0-gthread.patch
#!BuildIgnore: post-build-checks
BuildRequires:  bison
BuildRequires:  flex
BuildRequires:  intltool
BuildRequires:  libidl
BuildRequires:  libidl-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
BuildRequires:  mingw64-orbit2-devel
BuildRequires:  mingw64-popt-devel
BuildRequires:  orbit2
BuildRequires:  orbit2-devel
Requires:       %{name}-lang = %{version}
%_mingw64_package_header_debug
BuildArch:      noarch

%description
MinGW Windows port of the Bonobo Component System for the GNOME 2.x Desktop Platform.

%package devel
Summary:        MinGW Windows port of the Bonobo Component System for the GNOME 2.x Desktop Platform (development files)
Group:          Development/Libraries
Requires:       mingw64-popt-devel

%description devel
MinGW Windows port of the Bonobo Component System for the GNOME 2.x Desktop Platform (development files).

%_mingw64_debug_package

%lang_package

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

%patch -P 0 -p1 -b .w2k
%patch -P 1  -b .winnt
%patch -P 2 -p1 -b .gthread

%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
ORBIT_IDL=`which orbit-idl-2`; export ORBIT_IDL
%{_mingw64_configure}
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}

%install

%{_mingw64_makeinstall}

mkdir -p %{buildroot}%{_mingw64_datadir}/idl

rm -f %{buildroot}%{_mingw64_libdir}/bonobo/monikers/libmoniker_std_2.dll.a
rm -f %{buildroot}%{_mingw64_libdir}/bonobo/monikers/libmoniker_std_2.la
rm -f %{buildroot}%{_mingw64_libdir}/orbit-2.0/Bonobo_module.dll.a
rm -f %{buildroot}%{_mingw64_libdir}/orbit-2.0/Bonobo_module.la

#rm -f $RPM_BUILD_ROOT%{_mingw64_infodir}/dir

%find_lang libbonobo-2.0

%files
%defattr(-,root,root)
%{_mingw64_sysconfdir}/bonobo-activation/bonobo-activation-config.xml
%{_mingw64_bindir}/activation-client.exe
%{_mingw64_bindir}/bonobo-activation-run-query.exe
%{_mingw64_bindir}/bonobo-slay
%{_mingw64_bindir}/echo-client-2.exe
%{_mingw64_bindir}/libbonobo-2-0.dll
%{_mingw64_bindir}/libbonobo-activation-4.dll
%{_mingw64_libexecdir}/bonobo-activation-server.exe
%{_mingw64_libdir}/bonobo/monikers/libmoniker_std_2.dll
%{_mingw64_libdir}/bonobo/servers
%{_mingw64_libdir}/orbit-2.0/Bonobo_module.dll
%{_mingw64_sbindir}/bonobo-activation-sysconf.exe
%{_mingw64_mandir}/man1

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

%files devel
%defattr(-,root,root)
%{_mingw64_includedir}/bonobo-activation-2.0
%{_mingw64_includedir}/libbonobo-2.0/
%{_mingw64_libdir}/libbonobo-2.dll.a
%{_mingw64_libdir}/libbonobo-activation.dll.a
%{_mingw64_libdir}/pkgconfig/bonobo-activation-2.0.pc
%{_mingw64_libdir}/pkgconfig/libbonobo-2.0.pc
%{_mingw64_libdir}/bonobo-2.0/samples
%{_mingw64_datadir}/idl/bonobo-2.0
%{_mingw64_datadir}/idl/bonobo-activation-2.0
%{_mingw64_datadir}/gtk-doc/html/libbonobo
%{_mingw64_datadir}/gtk-doc/html/bonobo-activation

%changelog
openSUSE Build Service is sponsored by