2007-01-16 00:22:12 +01:00
|
|
|
#
|
2011-05-09 09:16:10 +02:00
|
|
|
# spec file for package libidn
|
2007-01-16 00:22:12 +01:00
|
|
|
#
|
2013-09-24 10:25:59 +02:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:22:12 +01:00
|
|
|
#
|
2008-10-07 16:03:34 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:22:12 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libidn
|
2012-09-22 10:17:05 +02:00
|
|
|
%define lname libidn11
|
2013-09-24 10:25:59 +02:00
|
|
|
Version: 1.28
|
2012-05-14 12:20:25 +02:00
|
|
|
Release: 0
|
2007-01-16 00:22:12 +01:00
|
|
|
Summary: Support for Internationalized Domain Names (IDN)
|
2012-05-14 12:20:25 +02:00
|
|
|
License: (GPL-2.0+ or LGPL-3.0+) and GPL-3.0+
|
2012-09-22 10:17:05 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-05-14 12:20:25 +02:00
|
|
|
Url: http://www.gnu.org/software/libidn/
|
2013-12-18 10:50:56 +01:00
|
|
|
Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
|
2010-01-14 16:10:38 +01:00
|
|
|
Source1: baselibs.conf
|
2013-12-18 10:50:56 +01:00
|
|
|
Source2: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz.sig
|
|
|
|
Source3: libidn.keyring
|
|
|
|
BuildRequires: gpg-offline
|
2011-10-01 03:44:44 +02:00
|
|
|
BuildRequires: pkgconfig
|
2011-12-26 06:50:33 +01:00
|
|
|
Requires(pre): %install_info_prereq
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-16 00:22:12 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
GNU Libidn is an implementation of the Stringprep, Punycode, and IDNA
|
|
|
|
specifications defined by the IETF Internationalized Domain Names (IDN)
|
|
|
|
working group. It is used to prepare internationalized strings (such as
|
|
|
|
domain name labels, usernames, and passwords) in order to increase the
|
2011-06-10 16:40:47 +02:00
|
|
|
likelihood that string input and string comparison work in ways that
|
2007-01-16 00:22:12 +01:00
|
|
|
make sense for typical users around the world. The library contains a
|
|
|
|
generic Stringprep implementation that does Unicode 3.2 NFKC
|
|
|
|
normalization, mapping and prohibition of characters, and bidirectional
|
|
|
|
character handling. Profiles for iSCSI, Kerberos 5, Nameprep, SASL, and
|
|
|
|
XMPP are included. Punycode and ASCII Compatible Encoding (ACE) via
|
|
|
|
IDNA is supported.
|
|
|
|
|
2012-09-22 10:17:05 +02:00
|
|
|
%package tools
|
|
|
|
Summary: Command line utility to convert Int. Domain Names
|
|
|
|
License: (GPL-2.0+ or LGPL-3.0+) and GPL-3.0+
|
|
|
|
Group: Productivity/Networking/DNS/Utilities
|
|
|
|
# O/P added for 12.3
|
|
|
|
Obsoletes: libidn < %version-%release
|
|
|
|
Provides: libidn = %version-%release
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
GNU Libidn is an implementation of the Stringprep, Punycode, and IDNA
|
|
|
|
specifications defined by the IETF Internationalized Domain Names
|
|
|
|
(IDN) working group. It is used to prepare internationalized strings
|
|
|
|
(such as domain name labels, usernames, and passwords) in order to
|
|
|
|
increase the likelihood that string input and string comparison work
|
|
|
|
in ways that make sense for typical users around the world. The
|
|
|
|
library contains a generic Stringprep implementation that does
|
|
|
|
Unicode 3.2 NFKC normalization, mapping and prohibition of
|
|
|
|
characters, and bidirectional character handling. Profiles for iSCSI,
|
|
|
|
Kerberos 5, Nameprep, SASL, and XMPP are included. Punycode and ASCII
|
|
|
|
Compatible Encoding (ACE) via IDNA is supported.
|
|
|
|
|
|
|
|
%package -n %lname
|
|
|
|
Summary: Support for Internationalized Domain Names (IDN)
|
|
|
|
License: (GPL-2.0+ or LGPL-3.0+) and GPL-3.0+
|
|
|
|
Group: System/Libraries
|
2012-09-23 21:57:04 +02:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libidn-64bit
|
|
|
|
%endif
|
2012-09-22 10:17:05 +02:00
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
GNU Libidn is an implementation of the Stringprep, Punycode, and IDNA
|
|
|
|
specifications defined by the IETF Internationalized Domain Names
|
|
|
|
(IDN) working group. It is used to prepare internationalized strings
|
|
|
|
(such as domain name labels, usernames, and passwords) in order to
|
|
|
|
increase the likelihood that string input and string comparison work
|
|
|
|
in ways that make sense for typical users around the world. The
|
|
|
|
library contains a generic Stringprep implementation that does
|
|
|
|
Unicode 3.2 NFKC normalization, mapping and prohibition of
|
|
|
|
characters, and bidirectional character handling. Profiles for iSCSI,
|
|
|
|
Kerberos 5, Nameprep, SASL, and XMPP are included. Punycode and ASCII
|
|
|
|
Compatible Encoding (ACE) via IDNA is supported.
|
|
|
|
|
2007-01-16 00:22:12 +01:00
|
|
|
%package devel
|
2008-01-28 01:15:27 +01:00
|
|
|
Summary: Include Files and Libraries mandatory for Development
|
2012-05-14 12:20:25 +02:00
|
|
|
License: LGPL-2.1+
|
2012-09-22 10:17:05 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %lname = %version
|
2011-12-26 06:50:33 +01:00
|
|
|
Requires: glibc-devel
|
2009-01-08 18:37:54 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libidn-devel-64bit
|
|
|
|
%endif
|
2007-01-16 00:22:12 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
GNU Libidn is an implementation of the Stringprep, Punycode, and IDNA
|
|
|
|
specifications defined by the IETF Internationalized Domain Names (IDN)
|
|
|
|
working group. It is used to prepare internationalized strings (such as
|
|
|
|
domain name labels, usernames, and passwords) in order to increase the
|
|
|
|
likelihood that string input and string comparison work in ways that
|
|
|
|
make sense for typical users around the world. The library contains a
|
|
|
|
generic Stringprep implementation that does Unicode 3.2 NFKC
|
|
|
|
normalization, mapping and prohibition of characters, and bidirectional
|
|
|
|
character handling. Profiles for iSCSI, Kerberos 5, Nameprep, SASL, and
|
|
|
|
XMPP are included. Punycode and ASCII Compatible Encoding (ACE) via
|
|
|
|
IDNA is supported.
|
|
|
|
|
|
|
|
%prep
|
2013-12-18 10:50:56 +01:00
|
|
|
%gpg_verify %{SOURCE2}
|
2008-03-19 13:01:19 +01:00
|
|
|
%setup -q
|
2007-01-16 00:22:12 +01:00
|
|
|
|
|
|
|
%build
|
2011-10-01 03:44:44 +02:00
|
|
|
%configure --with-pic --disable-static --disable-gtk-doc
|
2013-09-24 10:25:59 +02:00
|
|
|
make %{?_smp_mflags} V=1
|
2007-01-16 00:22:12 +01:00
|
|
|
|
|
|
|
%install
|
2013-09-24 10:26:28 +02:00
|
|
|
%makeinstall
|
2012-09-23 22:00:29 +02:00
|
|
|
|
2011-12-26 06:50:33 +01:00
|
|
|
rm -f %{buildroot}/%{_infodir}/dir
|
2008-03-19 13:01:19 +01:00
|
|
|
rm -f %{buildroot}%{_libdir}/libidn.la
|
2012-09-23 22:00:29 +02:00
|
|
|
|
2011-12-26 06:50:33 +01:00
|
|
|
%find_lang %{name}
|
2007-01-16 00:22:12 +01:00
|
|
|
|
2011-05-07 02:37:17 +02:00
|
|
|
%check
|
2011-10-01 03:44:44 +02:00
|
|
|
%if ! 0%{?qemu_user_space_build}
|
2013-12-17 17:33:17 +01:00
|
|
|
export SUSE_ASNEEDED=0
|
2013-09-24 10:25:59 +02:00
|
|
|
make check %{?_smp_mflags} V=1
|
2011-10-01 03:44:44 +02:00
|
|
|
%endif
|
2011-05-07 02:37:17 +02:00
|
|
|
|
2012-09-22 15:33:33 +02:00
|
|
|
%post tools
|
2007-01-16 00:22:12 +01:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/libidn.info.gz
|
|
|
|
|
2012-09-22 15:33:33 +02:00
|
|
|
%postun tools
|
2007-01-16 00:22:12 +01:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libidn.info.gz
|
|
|
|
|
2012-09-22 10:17:05 +02:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files tools -f %{name}.lang
|
2007-01-16 00:22:12 +01:00
|
|
|
%defattr(-,root,root)
|
2011-12-26 06:50:33 +01:00
|
|
|
%dir %{_datadir}/emacs
|
|
|
|
%dir %{_datadir}/emacs/site-lisp
|
2012-09-22 15:33:33 +02:00
|
|
|
%doc AUTHORS COPYING* ChangeLog FAQ NEWS README THANKS TODO
|
2011-12-26 06:50:33 +01:00
|
|
|
%{_infodir}/libidn*
|
|
|
|
%{_bindir}/idn
|
|
|
|
%{_mandir}/man1/idn.1.*
|
|
|
|
%{_datadir}/emacs/site-lisp/idna.el
|
|
|
|
%{_datadir}/emacs/site-lisp/punycode.el
|
2007-01-16 00:22:12 +01:00
|
|
|
|
2012-09-22 10:17:05 +02:00
|
|
|
%files -n %lname
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libidn.so.11*
|
|
|
|
|
2007-01-16 00:22:12 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2011-12-26 06:50:33 +01:00
|
|
|
%{_libdir}/libidn.so
|
|
|
|
%{_includedir}/*.h
|
|
|
|
%{_libdir}/pkgconfig/libidn.pc
|
|
|
|
%{_mandir}/man3/*
|
2007-01-16 00:22:12 +01:00
|
|
|
|
2007-03-15 01:43:21 +01:00
|
|
|
%changelog
|