File mingw64-libidl.spec of Package mingw64-libidl

#
# spec file for package mingw64-libidl
#
# 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-libidl
Version:        0.8.14
Release:        0
Summary:        MinGW Windows IDL Parsing Library
License:        LGPL-2.0-only or MPL-1.1
Group:          Development/Libraries/C and C++
Url:            ftp://ftp.gnome.org/pub/GNOME/sources/libIDL
Source0:        ftp://ftp.gnome.org/pub/GNOME/sources/libIDL/0.8/libIDL-%{version}.tar.bz2
Source1:        libIDL-config.cache
#!BuildIgnore: post-build-checks
BuildRequires:  bison
BuildRequires:  dos2unix
BuildRequires:  flex
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem >= 23
BuildRequires:  mingw64-glib2-devel
%_mingw64_package_header_debug
BuildArch:      noarch

%description
MinGW Windows IDL Parsing Library.

%package -n mingw64-libIDL-2-0
Summary:        MinGW Windows IDL Parsing Library
Group:          System/Libraries
Obsoletes:      %{name}
Provides:       %{name}

%description -n mingw64-libIDL-2-0
MinGW Windows IDL Parsing Library.

%package devel
Summary:        MinGW Windows IDL Parsing Library (development files)
Group:          Development/Libraries/C and C++

%description devel
MinGW Windows IDL Parsing Library (development files).

%_mingw64_debug_package

%prep
%setup -q -n libIDL-%{version}
cp %{SOURCE1} %{_mingw64_cache} && chmod +rw %{_mingw64_cache}
dos2unix libIDL.def

%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} --disable-static --enable-shared
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
mkdir -p %{buildroot}%{_mingw64_datadir}/idl
rm -f %{buildroot}%{_mingw64_infodir}/dir

%files -n mingw64-libIDL-2-0
%defattr(-,root,root)
%{_mingw64_bindir}/libIDL-2-0.dll
%dir %{_mingw64_datadir}/idl

%files devel
%defattr(-,root,root)
%{_mingw64_bindir}/libIDL-config-2
%{_mingw64_includedir}/libIDL-2.0/
%{_mingw64_libdir}/libIDL-2.dll.a
%{_mingw64_libdir}/pkgconfig/libIDL-2.0.pc
%{_mingw64_infodir}/libIDL2.info*

%changelog
openSUSE Build Service is sponsored by