File mingw64-libidn.spec of Package mingw64-libidn
#
# 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-libidn
Version: 1.35
Release: 0
Summary: MinGW Windows Internationalized Domain Name support library
License: LGPL-2.1-or-later
Group: Development/Libraries
Url: http://www.gnu.org/software/libidn/
Source0: ftp://ftp.gnu.org/pub/gnu/libidn/libidn-%{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
GNU Libidn is an implementation of the Stringprep, Punycode and
IDNA specifications defined by the IETF Internationalized Domain
Names (IDN) working group, used for internationalized domain
names.
%package -n mingw64-libidn12
Summary: MinGW Windows Internationalized Domain Name support library
Group: System/Libraries
%description -n mingw64-libidn12
GNU Libidn is an implementation of the Stringprep, Punycode and
IDNA specifications defined by the IETF Internationalized Domain
Names (IDN) working group, used for internationalized domain
names.
%package tools
Summary: MinGW Windows Internationalized Domain Name support utility
Group: System/Base
Obsoletes: mingw64-libidn
Provides: mingw64-libidn
%description tools
GNU Libidn is an implementation of the Stringprep, Punycode and
IDNA specifications defined by the IETF Internationalized Domain
Names (IDN) working group, used for internationalized domain
names.
%package devel
Summary: MinGW Windows Internationalized Domain Name support library
Group: Development/Libraries/C and C++
%description devel
GNU Libidn is an implementation of the Stringprep, Punycode and
IDNA specifications defined by the IETF Internationalized Domain
Names (IDN) working group, used for internationalized domain
names.
%_mingw64_debug_package
%lang_package
%prep
%setup -q -n libidn-%{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}/emacs
rm -r %{buildroot}%{_mingw64_infodir}
rm -r %{buildroot}%{_mingw64_mandir}/man*
rm -f %{buildroot}%{_mingw64_bindir}/libidn-12.def
%find_lang libidn
%files tools
%defattr(-,root,root)
%{_mingw64_bindir}/idn.exe
%files -n mingw64-libidn12
%defattr(-,root,root)
%{_mingw64_bindir}/libidn-12.dll
%files lang -f libidn.lang
%defattr(-,root,root)
%files devel
%defattr(-,root,root)
%doc COPYING COPYING.LESSERv2 COPYING.LESSERv3 COPYINGv2 COPYINGv3
%{_mingw64_libdir}/libidn.dll.a
%{_mingw64_libdir}/pkgconfig/libidn.pc
%{_mingw64_includedir}/*.h
%changelog