libidn/libidn.spec
OBS User autobuild 046fbf7073 Accepting request 24451 from devel:libraries:c_c++
Copy from devel:libraries:c_c++/libidn based on submit request 24451 from user msmeissn

OBS-URL: https://build.opensuse.org/request/show/24451
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libidn?expand=0&rev=18
2009-11-16 10:18:58 +00:00

132 lines
4.0 KiB
RPMSpec

#
# spec file for package libidn (Version 1.15)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: libidn
License: GPL v3 only ; LGPL v2.1 or later
Group: System/Libraries
Version: 1.15
Release: 1
# bug437293
%ifarch ppc64
Obsoletes: libidn-64bit
%endif
#
Summary: Support for Internationalized Domain Names (IDN)
Url: http://www.gnu.org/software/libidn/
Source0: http://josefsson.org/libidn/releases/libidn-%version.tar.bz2
PreReq: %install_info_prereq
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gtk-doc pkgconfig
%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
likelihood that st5ing 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.
Authors:
--------
Simon Josefsson <simon@josefsson.org>
%package devel
License: LGPL v2.1 or later
Requires: %{name} = %{version} glibc-devel
Summary: Include Files and Libraries mandatory for Development
Group: System/Libraries
# bug437293
%ifarch ppc64
Obsoletes: libidn-devel-64bit
%endif
#
%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.
Authors:
--------
Simon Josefsson <simon@josefsson.org>
%prep
%setup -q
%build
%configure --with-pic --disable-static --enable-gtk-doc
%{__make} %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT/%_infodir/dir
rm -f %{buildroot}%{_libdir}/libidn.la
%find_lang %name
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
%install_info --info-dir=%{_infodir} %{_infodir}/libidn.info.gz
%postun
/sbin/ldconfig
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libidn.info.gz
%files -f %name.lang
%defattr(-,root,root)
%dir %_prefix/share/emacs
%dir %_prefix/share/emacs/site-lisp
%doc AUTHORS COPYING.LIB ChangeLog FAQ NEWS README THANKS TODO
%_libdir/libidn.so.*
%_infodir/libidn*
%_prefix/bin/idn
%_mandir/man1/idn.1.*
%_prefix/share/emacs/site-lisp/idna.el
%_prefix/share/emacs/site-lisp/punycode.el
%files devel
%defattr(-,root,root)
%_libdir/libidn.so
/usr/include/*.h
%_libdir/pkgconfig/libidn.pc
%_mandir/man3/*
/usr/share/gtk-doc/html/libidn
%changelog