Summary: Library to support IDNA2008 internationalized domain names Name: libidn2 Version: 0.4 Release: 1%{?dist} License: GPLv3+ Group: System Environment/Libraries URL: http://www.gnu.org/software/libidn/#libidn2 Source: http://alpha.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz Patch0: libidn2-0.3-rpath.patch Requires(post): /sbin/install-info, /sbin/ldconfig Requires(preun): /sbin/install-info Requires(postun): /sbin/ldconfig BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description Libidn2 is an implementation of the IDNA2008 specifications in RFC 5890, 5891, 5892 and 5893 for internationalized domain names (IDN). It is a standalone library, without any dependency on libidn. %package devel Summary: Development files for libidn2 Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The libidn2-devel package contains libraries and header files for developing applications that use libidn2. %prep %setup -q %patch0 -p1 -b .rpath touch -c -r m4/libtool.m4.rpath m4/libtool.m4 %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install # Clean-up examples for documentation make %{?_smp_mflags} -C examples distclean rm -f examples/Makefile* # Don't install any static .a and libtool .la files rm -f $RPM_BUILD_ROOT%{_libdir}/*.{a,la} # Some file cleanups rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir # Remove example-only binaries for now rm -f $RPM_BUILD_ROOT%{_bindir}/{lookup,register} %check make %{?_smp_mflags} -C tests check %post /sbin/ldconfig /sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir || : %preun if [ $1 = 0 ]; then /sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir || : fi %postun -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc AUTHORS NEWS README %{_bindir}/idn2 %{_mandir}/man1/idn2.1* %{_libdir}/%{name}.so.* %{_infodir}/%{name}.info* %files devel %defattr(-,root,root,-) %doc doc/%{name}.html examples %{_libdir}/%{name}.so %{_includedir}/*.h %{_mandir}/man3/* %{_datadir}/gtk-doc/ %changelog * Mon May 16 2011 Robert Scheck 0.4-1 - Upgrade to 0.4 * Sat May 07 2011 Robert Scheck 0.3-1 - Upgrade to 0.3 - Initial spec file for Fedora and Red Hat Enterprise Linux