db989d5cd0
- update to 2.0.4: * Fix integer overflow in bidi.c/_isBidi() bsc#1056451 * Fix integer overflow in puny_decode.c/decode_digit() bsc#1056450 * Fix idna_free() to idn_free() - enable documentation again OBS-URL: https://build.opensuse.org/request/show/519718 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libidn2?expand=0&rev=17
105 lines
2.9 KiB
RPMSpec
105 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package libidn2
|
|
#
|
|
# 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
|
|
# 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/
|
|
#
|
|
|
|
|
|
%define lname libidn2-0
|
|
Name: libidn2
|
|
Version: 2.0.4
|
|
Release: 0
|
|
Summary: Support for Internationalized Domain Names (IDN) based on IDNA2008
|
|
License: GPL-3.0+
|
|
Group: Development/Libraries/C and C++
|
|
Url: https://www.gnu.org/software/libidn/#libidn2
|
|
Source0: https://ftp.gnu.org/gnu/libidn/%{name}-%{version}.tar.gz
|
|
Source1: https://ftp.gnu.org/gnu/libidn/%{name}-%{version}.tar.gz.sig
|
|
Source3: baselibs.conf
|
|
BuildRequires: libunistring-devel
|
|
BuildRequires: pkgconfig
|
|
Requires(post): %{install_info_prereq}
|
|
|
|
%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
|
|
|
|
%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
|
|
|
|
%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)
|
|
|
|
%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/
|
|
|
|
%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
|
|
%doc AUTHORS COPYING* 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/*
|
|
|
|
%changelog
|