libidn2/libidn2.spec
2020-06-17 16:32:11 +08:00

115 lines
2.8 KiB
RPMSpec

Name: libidn2
Version: 2.0.5
Release: 9
Summary: GNU IDN Library
License: (GPLv2+ or LGPLv3+) and GPLv3+
URL: https://www.gnu.org/software/libidn/#libidn2
Source0: https://ftp.gnu.org/gnu/libidn/%{name}-%{version}.tar.gz
Patch0: bugfix-libidn2-change-rpath.patch
Patch1: Fix-free-of-random-stack-value-in-idn2_to_ascii_4i.patch
Patch2: Add-libidn2_register_fuzzer-and-corpora.patch
Patch3: Restrict-output-length-to-63.patch
Patch4: Add-missing-errors-in-idn2_strerror_name.patch
Patch5: Remove-overhead-from-error.c-add-missing-TR46-values.patch
Patch6: 0001-CVE-2019-12290.patch
Patch7: 0002-CVE-2019-12290.patch
Patch8: 0003-CVE-2019-12290.patch
Patch9: fix-compile-error-about-missing-aclocal.patch
#Dependency
BuildRequires: gcc gettext libunistring-devel autoconf texinfo automake
Provides: bundled(gnulib)
Provides: idn2
Obsoletes: idn2
%description
Libidn2 is a free software implementation of IDNA2008, Punycode and TR46.
Its purpose is to encode and decode internationalized domain names.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description devel
Files for %{name} development
%package_help
#Build sections
%prep
%autosetup -n %{name}-%{version} -p1
%build
autoreconf
%configure --disable-static
%make_build
%install
%make_install
%delete_la
make %{?_smp_mflags} -C examples distclean
%find_lang %{name}
%check
make %{?_smp_mflags} -C tests check
#Install and uninstall scripts
%pre
%preun
%ldconfig_scriptlets
%files -f %{name}.lang
%doc AUTHORS NEWS README.md
%license COPYING COPYING.LESSERv3 COPYING.unicode COPYINGv2
%{_bindir}/idn2
%{_libdir}/%{name}.so.*
%exclude %{_datadir}/info/dir
%files devel
%{_includedir}/*.h
%{_libdir}/%{name}.so
%doc doc/%{name}.html examples
%{_libdir}/pkgconfig/%{name}.pc
%files help
%{_mandir}/man1/idn2.1*
%{_mandir}/man3/*
%{_infodir}/%{name}.info*
%{_datadir}/gtk-doc/
%changelog
* Wed Jun 17 2020 Liquor <lirui130@hauwei.com> - 2.0.5-9
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add Buildrequires:automake
* Wed Mar 18 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.0.5-8
- Type:CVE
- ID:NA
- SUG:NA
- DESC:fix CVE-2019-12290
* Wed Jan 1 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.0.5-7
- Fix bug in patched
* Wed Jan 1 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.0.5-6
- Fix bug in patched
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.0.5-5
- Fix Memory access out of bounds
* Mon Oct 28 2019 shenyangyang <shenyangyang4@huawei.com> - 2.0.5-4
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:add build requires of texinfo to solve the build problem
* Wed Jul 18 2018 openEuler Buildteam <buildteam@openeuler.org> - 2.0.5-3
- Package init