# # 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: 0.16 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: http://alpha.gnu.org/gnu/libidn/%{name}-%{version}.tar.gz 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 %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 %patch0 -p1 %build %configure \ --disable-rpath \ --disable-silent-rules \ --disable-static \ --disable-gtk-doc make %{?_smp_mflags} %install make %{?_smp_mflags} DESTDIR=%{buildroot} 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 %defattr(-,root,root) %doc AUTHORS COPYING* ChangeLog NEWS README %{_infodir}/libidn* %{_bindir}/idn2 %{_mandir}/man1/idn2.1%{ext_man} %files -n %{lname} %defattr(-,root,root) %{_libdir}/libidn2.so.* %files devel %defattr(-,root,root) %{_libdir}/libidn2.so %{_includedir}/*.h %{_mandir}/man3/* %changelog