File mingw32-libidn2.spec of Package mingw64-libidn2

#
# spec file for package mingw64-libidn
#
# 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-libidn2
Version:        2.0.5
Release:        0
Summary:        MinGW Windows Internationalized Domain Name support library
License:        LGPL-3.0-only
Group:          Development/Libraries
Url:            http://www.gnu.org/software/libidn/#libidn2
Source0:        ftp://ftp.gnu.org/pub/gnu/libidn/libidn2-%{version}.tar.gz
#!BuildIgnore: post-build-checks
BuildRequires:  gettext
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem >= 33
BuildRequires:  mingw64-libintl-devel
BuildRequires:  mingw64-win_iconv-devel
Requires:       %{name}-lang = %{version}
%_mingw64_package_header_debug
BuildArch:      noarch

%description
Libidn2 is an implementation of the IDNA2008 + TR46 specifications
(RFC 5890, RFC 5891, RFC 5892, RFC 5893, TR 46).
Libidn2 is a standalone library, without any dependency on Libidn.
Libidn2 is believed to be a complete IDNA2008 / TR46 implementation,
but has yet to be as extensively used as the original Libidn library.

%package tools
Summary:        MinGW Windows Internationalized Domain Name support utility
Group:          System/Base
Obsoletes:      mingw64-libidn2
Provides:       mingw64-libidn2

%description tools
Libidn2 is an implementation of the IDNA2008 + TR46 specifications
(RFC 5890, RFC 5891, RFC 5892, RFC 5893, TR 46).
Libidn2 is a standalone library, without any dependency on Libidn.
Libidn2 is believed to be a complete IDNA2008 / TR46 implementation,
but has yet to be as extensively used as the original Libidn library.

%package devel
Summary:        MinGW Windows Internationalized Domain Name support library
Group:          Development/Libraries/C and C++

%description devel
Libidn2 is an implementation of the IDNA2008 + TR46 specifications
(RFC 5890, RFC 5891, RFC 5892, RFC 5893, TR 46).
Libidn2 is a standalone library, without any dependency on Libidn.
Libidn2 is believed to be a complete IDNA2008 / TR46 implementation,
but has yet to be as extensively used as the original Libidn library.

%_mingw64_debug_package

%lang_package

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

%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} --disable-csharp --disable-static
make %{?_smp_mflags} || make

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}

rm -r %{buildroot}%{_mingw64_datadir}/gtk-doc
rm -r %{buildroot}%{_mingw64_infodir}
rm -r %{buildroot}%{_mingw64_mandir}/man*
rm -f %{buildroot}%{_mingw64_bindir}/libidn2-0.def

%find_lang libidn2

%files tools
%defattr(-,root,root)
%{_mingw64_bindir}/idn2.exe

%files -n mingw64-libidn2
%defattr(-,root,root)
%{_mingw64_bindir}/libidn2-0.dll

%files lang -f libidn2.lang
%defattr(-,root,root)

%files devel
%defattr(-,root,root)
%doc COPYING COPYING.LESSERv3 COPYINGv2 COPYING.unicode
%{_mingw64_libdir}/libidn2.dll.a
%{_mingw64_libdir}/pkgconfig/libidn2.pc
%{_mingw64_includedir}/*.h

%changelog
openSUSE Build Service is sponsored by