Accepting request 135511 from devel:libraries:c_c++

- Employ shared library package naming

OBS-URL: https://build.opensuse.org/request/show/135511
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libidn?expand=0&rev=36
This commit is contained in:
Stephan Kulow
2012-09-26 08:05:06 +00:00
committed by Git OBS Bridge
3 changed files with 68 additions and 17 deletions

View File

@@ -1 +1 @@
libidn
libidn11

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Sep 21 16:21:41 UTC 2012 - jengelh@inai.de
- Employ shared library package naming
-------------------------------------------------------------------
Tue Jun 5 08:41:26 UTC 2012 - vdziewiecki@suse.com

View File

@@ -17,16 +17,12 @@
Name: libidn
%define lname libidn11
Version: 1.25
Release: 0
# bug437293
%ifarch ppc64
Obsoletes: libidn-64bit
%endif
#
Summary: Support for Internationalized Domain Names (IDN)
License: (GPL-2.0+ or LGPL-3.0+) and GPL-3.0+
Group: System/Libraries
Group: Development/Libraries/C and C++
Url: http://www.gnu.org/software/libidn/
Source0: http://ftp.gnu.org/gnu/libidn/libidn-%{version}.tar.gz
Source1: baselibs.conf
@@ -47,11 +43,54 @@ character handling. Profiles for iSCSI, Kerberos 5, Nameprep, SASL, and
XMPP are included. Punycode and ASCII Compatible Encoding (ACE) via
IDNA is supported.
%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
# bug437293
%ifarch ppc64
Obsoletes: libidn-64bit
%endif
%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.
%package devel
Summary: Include Files and Libraries mandatory for Development
License: LGPL-2.1+
Group: System/Libraries
Requires: %{name} = %{version}
Group: Development/Libraries/C and C++
Requires: %lname = %version
Requires: glibc-devel
# bug437293
%ifarch ppc64
@@ -80,9 +119,11 @@ IDNA is supported.
make %{?_smp_mflags}
%install
%make_install
%makeinstall
rm -f %{buildroot}/%{_infodir}/dir
rm -f %{buildroot}%{_libdir}/libidn.la
%find_lang %{name}
%check
@@ -90,26 +131,31 @@ rm -f %{buildroot}%{_libdir}/libidn.la
make check
%endif
%post
/sbin/ldconfig
%post tools
%install_info --info-dir=%{_infodir} %{_infodir}/libidn.info.gz
%postun
/sbin/ldconfig
%postun tools
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libidn.info.gz
%files -f %{name}.lang
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files tools -f %{name}.lang
%defattr(-,root,root)
%dir %{_datadir}/emacs
%dir %{_datadir}/emacs/site-lisp
%doc AUTHORS COPYING.LESSERv2 COPYING.LESSERv3 COPYINGv2 COPYINGv3 ChangeLog FAQ NEWS README THANKS TODO
%{_libdir}/libidn.so.*
%doc AUTHORS COPYING* ChangeLog FAQ NEWS README THANKS TODO
%{_infodir}/libidn*
%{_bindir}/idn
%{_mandir}/man1/idn.1.*
%{_datadir}/emacs/site-lisp/idna.el
%{_datadir}/emacs/site-lisp/punycode.el
%files -n %lname
%defattr(-,root,root)
%_libdir/libidn.so.11*
%files devel
%defattr(-,root,root)
%{_libdir}/libidn.so