File mingw64-orbit2.spec of Package mingw64-orbit2

#
# spec file for package mingw64-orbit2
#
# 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-orbit2
Version:        2.14.19
Release:        0
Summary:        MinGW Windows ORBit2 library
License:        LGPL-2.1-or-later
Group:          Development/Libraries
Url:            http://projects.gnome.org/ORBit2/
Source0:        http://download.gnome.org/sources/ORBit2/2.14/ORBit2-%{version}.tar.bz2
Source1:        ORBit2-mingw64-config.cache
Patch1:         ORBit2-2.14.19-gthread.patch
#!BuildIgnore: post-build-checks
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-libidl-devel
BuildRequires:  orbit2
BuildRequires:  orbit2-devel
%_mingw64_package_header_debug
BuildArch:      noarch

%description
MinGW Windows ORBit2 library.

%package devel
Summary:        MinGW Windows ORBit2 library (development tools)
Group:          Development/Libraries

%description devel
MinGW Windows ORBit2 library (development tools).

%_mingw64_debug_package

%prep
%setup -q -n ORBit2-%{version}
%patch -P 1 -p1

%build
cp %{SOURCE1} %{_mingw64_cache} && chmod +rw %{_mingw64_cache}
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
	--with-idl-compiler=`which orbit-idl-2`
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}

%install

%{_mingw64_makeinstall}

rm -f %{buildroot}/%{_mingw64_libdir}/orbit-2.0/Everything_module.dll.a
rm -r %{buildroot}/%{_mingw64_libdir}/orbit-2.0/Everything_module.la

%files
%defattr(-,root,root)
%{_mingw64_bindir}/libORBit-2-0.dll
%{_mingw64_bindir}/libORBit-imodule-2-0.dll
%{_mingw64_bindir}/libORBitCosNaming-2-0.dll
%{_mingw64_libdir}/orbit-2.0/Everything_module.dll

%files devel
%defattr(-,root,root)
%{_mingw64_bindir}/ior-decode-2.exe
%{_mingw64_bindir}/orbit-idl-2.exe
%{_mingw64_bindir}/orbit2-config
%{_mingw64_bindir}/typelib-dump.exe
%{_mingw64_includedir}/orbit-2.0
%{_mingw64_libdir}/libORBit-2.dll.a
%{_mingw64_libdir}/libORBit-imodule-2.dll.a
%{_mingw64_libdir}/libORBitCosNaming-2.dll.a
%{_mingw64_libdir}/libname-server-2.a
%{_mingw64_libdir}/pkgconfig/ORBit-2.0.pc
%{_mingw64_libdir}/pkgconfig/ORBit-CosNaming-2.0.pc
%{_mingw64_libdir}/pkgconfig/ORBit-idl-2.0.pc
%{_mingw64_libdir}/pkgconfig/ORBit-imodule-2.0.pc
%{_mingw64_datadir}/aclocal/ORBit2.m4
%{_mingw64_datadir}/idl/orbit-2.0/CosNaming.idl
%{_mingw64_datadir}/gtk-doc/html/ORBit2

%changelog
openSUSE Build Service is sponsored by