libidn2/libidn2.spec

114 lines
3.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libidn2
#
# Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/
#
%define lname libidn2-0
Name: libidn2
Version: 2.1.1
Release: 0
Summary: Support for Internationalized Domain Names (IDN) based on IDNA2008
License: GPL-3.0-or-later
Group: Development/Libraries/C and C++
URL: https://www.gnu.org/software/libidn/#libidn2
Source0: https://ftp.gnu.org/gnu/libidn/%{name}-%{version}a.tar.gz
Source1: https://ftp.gnu.org/gnu/libidn/%{name}-%{version}a.tar.gz.sig
Source3: baselibs.conf
Accepting request 451426 from home:SShyukriev:branches:devel:libraries:c_c++ - Update to version 0.16 old: devel:libraries:c_c++/libidn2 new: home:SShyukriev:branches:devel:libraries:c_c++/libidn2 rev None Index: libidn2-no-examples-build.patch =================================================================== --- libidn2-no-examples-build.patch (revision 7) +++ libidn2-no-examples-build.patch (revision 2) @@ -1,26 +1,26 @@ -Index: libidn2-0.10/Makefile.am +Index: libidn2-0.16/Makefile.am =================================================================== ---- libidn2-0.10.orig/Makefile.am -+++ libidn2-0.10/Makefile.am +--- libidn2-0.16.orig/Makefile.am ++++ libidn2-0.16/Makefile.am @@ -15,7 +15,7 @@ DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --SUBDIRS = gl . src doc examples tests -+SUBDIRS = gl . src doc tests - ACLOCAL_AMFLAGS = -I m4 -I gl/m4 - EXTRA_DIST = gl/m4/gnulib-cache.m4 +-SUBDIRS = lib . src doc examples tests po ++SUBDIRS = lib . src doc tests po + ACLOCAL_AMFLAGS = -I m4 + EXTRA_DIST = m4/gnulib-cache.m4 -Index: libidn2-0.10/Makefile.in +Index: libidn2-0.16/Makefile.in =================================================================== ---- libidn2-0.10.orig/Makefile.in -+++ libidn2-0.10/Makefile.in -@@ -596,7 +596,7 @@ top_build_prefix = @top_build_prefix@ +--- libidn2-0.16.orig/Makefile.in ++++ libidn2-0.16/Makefile.in +@@ -612,7 +612,7 @@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --SUBDIRS = gl . src doc examples tests -+SUBDIRS = gl . src doc tests - ACLOCAL_AMFLAGS = -I m4 -I gl/m4 - EXTRA_DIST = gl/m4/gnulib-cache.m4 gen-tables-from-rfc5892.pl \ - gen-tables-from-iana.pl +-SUBDIRS = lib . src doc examples tests po ++SUBDIRS = lib . src doc tests po + ACLOCAL_AMFLAGS = -I m4 + EXTRA_DIST = m4/gnulib-cache.m4 CONTRIBUTING gen-tables-from-iana.pl \ + $(IDNA_TABLE) $(TR46MAP) $(NFCQC) tr46map_data.c data.c Index: libidn2.changes =================================================================== --- libidn2.changes (revision 7) +++ libidn2.changes (revision 2) @@ -1,4 +1,42 @@ ------------------------------------------------------------------- +Thu Jan 19 14:25:32 UTC 2017 - shshyukriev@suse.com + +- Update to version 0.16 + * build: Fix idn2_cmd.h build rule. + * API and ABI is backwards compatible with the previous version. + +- Update to version 0.15 (released 2017-01-14) + * Fix out-of-bounds read. + * Fix NFC input conversion (regression). + * Shrink TR46 static mapping data. + * API and ABI is backwards compatible with the previous version. + +- Update to version 0.14 (released 2016-12-30) + * build: Fix gentr46map build. + * API and ABI is backwards compatible with the previous version. + +- Update to version 0.13: + * build: Doesn't download external files during build. + * doc: Clarify license. + * build: Generate ChangeLog file properly. + * doc: API documentation related to TR46 flags. + * API and ABI is backwards compatible with the previous version. + +- Update to version 0.12: + * Builds/links with libunistring. + * Fix two possible crashes with unchecked NULL pointers. + * Memleak fix. + * Binary search for codepoints in tables. + * Do not taint output variable on error in idn2_register_u8(). + * Do not taint output variable on error in idn2_lookup_u8(). + * Update to Unicode 6.3.0 IDNA tables. + * Add TR46 / UTS#46 support to API and idn2 utility. + * Add NFC quick check. + * Add make target 'check-coverage' for test coverage report. + * Add tests to increase test code coverage. + * API and ABI is backwards compatible with the previous version. + +------------------------------------------------------------------- Thu Dec 8 09:52:02 UTC 2016 - astieger@suse.com - update to 0.11: Index: libidn2.spec =================================================================== --- libidn2.spec (revision 7) +++ libidn2.spec (revision 2) @@ -1,7 +1,7 @@ # # spec file for package libidn2 # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %define lname libidn2-0 Name: libidn2 -Version: 0.11 +Version: 0.16 Release: 0 Summary: Support for Internationalized Domain Names (IDN) based on IDNA2008 License: GPL-3.0+ @@ -28,6 +28,7 @@ Source3: baselibs.conf # PATCH-FIX-UPSTREAM: do not build non-installed examples needlessly Patch0: libidn2-no-examples-build.patch +BuildRequires: libunistring-devel BuildRequires: pkgconfig Requires(post): %{install_info_prereq} BuildRoot: %{_tmppath}/%{name}-%{version}-build Index: libidn2-0.16.tar.gz =================================================================== Binary file libidn2-0.16.tar.gz (revision 2) added Index: libidn2-0.11.tar.gz =================================================================== Binary file libidn2-0.11.tar.gz (revision 7) deleted OBS-URL: https://build.opensuse.org/request/show/451426 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libidn2?expand=0&rev=8
2017-01-19 18:03:56 +01:00
BuildRequires: libunistring-devel
BuildRequires: pkgconfig
%description
An implementation of the IDNA2008 specifications (RFCs 5890, 5891, 5892, 5893)
%package tools
Summary: Command line utility to convert Int. Domain Names
Group: Productivity/Networking/DNS/Utilities
Requires(post): %{install_info_prereq}
%description tools
An implementation of the IDNA2008 specifications (RFCs 5890, 5891, 5892, 5893)
%package -n %{lname}
Summary: Support for Internationalized Domain Names (IDN)
Group: System/Libraries
Recommends: %{name}-lang = %{version}
# for lang package
Provides: %{name} = %{version}
%description -n %{lname}
An implementation of the IDNA2008 specifications (RFCs 5890, 5891, 5892, 5893)
%package devel
Summary: Include Files and Libraries mandatory for Development
Group: Development/Libraries/C and C++
Requires: %{lname} = %{version}
%description devel
An implementation of the IDNA2008 specifications (RFCs 5890, 5891, 5892, 5893)
%lang_package
%prep
%setup -q
%build
%configure \
--disable-rpath \
--disable-silent-rules \
--disable-static \
--disable-gtk-doc
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
# Do not bother with partial gtkdoc
rm -rf %{buildroot}/%{_datadir}/gtk-doc/
%find_lang %{name}
%check
make check %{?_smp_mflags}
%post tools
%install_info --info-dir=%{_infodir} %{_infodir}/libidn2.info.*
%preun tools
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libidn2.info.*
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%files tools
%license COPYING*
%doc AUTHORS ChangeLog NEWS README.md
%{_infodir}/libidn*
%{_bindir}/idn2
%{_mandir}/man1/idn2.1%{?ext_man}
%files -n %{lname}
%{_libdir}/libidn2.so.*
%files devel
%{_libdir}/libidn2.so
%{_libdir}/pkgconfig/libidn2.pc
%{_includedir}/*.h
%{_mandir}/man3/*
%files lang -f %{name}.lang
%changelog