28e377
Summary: Internationalized Domain Name support library
28e377
Name: libidn
28e377
Version: 1.28
28e377
Release: 4%{?dist}
28e377
URL: http://www.gnu.org/software/libidn/
28e377
License: LGPLv2+ and GPLv3+ and GFDL
28e377
Source0: http://ftp.gnu.org/gnu/libidn/libidn-%{version}.tar.gz
28e377
Group: System Environment/Libraries
28e377
BuildRequires: pkgconfig, gettext
28e377
%ifarch ppc64le
28e377
# libtool automatic fixing tool will touch things
28e377
BuildRequires: autoconf
28e377
%endif
28e377
Requires(post): /sbin/install-info /sbin/ldconfig
28e377
Requires(preun): /sbin/install-info
28e377
Requires(postun): /sbin/ldconfig
28e377
# gnulib is a copylib, bundling is allowed
28e377
Provides: bundled(gnulib)
28e377
28e377
%description
28e377
GNU Libidn is an implementation of the Stringprep, Punycode and
28e377
IDNA specifications defined by the IETF Internationalized Domain
28e377
Names (IDN) working group, used for internationalized domain
28e377
names.
28e377
28e377
%package devel
28e377
Summary: Development files for the libidn library
28e377
Group: Development/Libraries
28e377
Requires: %{name}%{?_isa} = %{version}-%{release}
28e377
Requires: pkgconfig
28e377
28e377
%description devel
28e377
This package includes header files and libraries necessary for
28e377
developing programs which use the GNU libidn library.
28e377
28e377
%package -n emacs-%{name}
28e377
Summary: GNU Emacs libidn support files
28e377
License: GPLv3+
28e377
BuildRequires: emacs
28e377
Requires: %{name} = %{version}-%{release}
28e377
Requires: emacs(bin) >= %{_emacs_version}
28e377
BuildArch: noarch
28e377
28e377
%description -n emacs-%{name}
28e377
This package includes libidn support files for GNU Emacs.
28e377
28e377
%prep
28e377
%setup -q
28e377
28e377
# Name directory sections consistently in the info file, #209491
28e377
sed -i '/^INFO-DIR-SECTION/{s/GNU Libraries/Libraries/;s/GNU utilities/Utilities/;}' doc/libidn.info
28e377
28e377
iconv -f ISO-8859-1 -t UTF-8 doc/libidn.info > iconv.tmp
28e377
mv iconv.tmp doc/libidn.info
28e377
28e377
%build
28e377
%configure --disable-csharp --disable-static --with-lispdir=%{_emacs_sitelispdir}/%{name}
28e377
28e377
# remove RPATH hardcoding
28e377
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
28e377
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
28e377
28e377
%ifarch ppc64le
28e377
# ppc64le libtool fixing tool might have tweaked libtool.m4.
28e377
# Touch these files so aclocal-1.14 is not needed.
28e377
touch aclocal.m4 Makefile.in configure
28e377
%endif
28e377
28e377
make %{?_smp_mflags} V=1
28e377
28e377
%check
28e377
# without RPATH this needs to be set to test the compiled library
28e377
export LD_LIBRARY_PATH=$(pwd)/lib/.libs
28e377
make %{?_smp_mflags} -C tests check VALGRIND=env
28e377
28e377
%install
28e377
make install DESTDIR=$RPM_BUILD_ROOT pkgconfigdir=%{_libdir}/pkgconfig
28e377
28e377
# provide more examples
28e377
make %{?_smp_mflags} -C examples distclean
28e377
28e377
# clean up docs
28e377
find doc -name "Makefile*" | xargs rm
28e377
rm -rf $RPM_BUILD_ROOT%{_datadir}/info/dir
28e377
28e377
# Make multilib safe:
28e377
sed -i '/gnu compiler/d' $RPM_BUILD_ROOT%{_includedir}/idn-int.h
28e377
28e377
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la \
28e377
      $RPM_BUILD_ROOT%{_datadir}/info/*.png
28e377
28e377
%{_emacs_bytecompile} $RPM_BUILD_ROOT%{_emacs_sitelispdir}/%{name}/*.el
28e377
28e377
%find_lang %{name}
28e377
28e377
%post
28e377
/sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir
28e377
/sbin/ldconfig
28e377
28e377
%preun
28e377
if [ $1 = 0 ]; then
28e377
    /sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir || :
28e377
fi
28e377
28e377
%postun -p /sbin/ldconfig
28e377
28e377
%files -f %{name}.lang
28e377
%doc AUTHORS NEWS FAQ README THANKS COPYING*
28e377
%{_bindir}/idn
28e377
%{_mandir}/man1/idn.1*
28e377
%{_libdir}/libidn.so.*
28e377
%{_infodir}/%{name}.info.gz
28e377
28e377
%files devel
28e377
%doc doc/libidn.html examples
28e377
%{_libdir}/libidn.so
28e377
%{_includedir}/*.h
28e377
%{_libdir}/pkgconfig/*.pc
28e377
%{_mandir}/man3/*
28e377
28e377
%files -n emacs-%{name}
28e377
%{_emacs_sitelispdir}/%{name}
28e377
28e377
%changelog
28e377
* Fri Aug 22 2014 Miroslav Lichvar <mlichvar@redhat.com> - 1.28-4
28e377
- fix building on ppc64le (#1125577)
28e377
28e377
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.28-3
28e377
- Mass rebuild 2014-01-24
28e377
28e377
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.28-2
28e377
- Mass rebuild 2013-12-27
28e377
28e377
* Thu Jul 18 2013 Miroslav Lichvar <mlichvar@redhat.com> - 1.28-1
28e377
- update to 1.28
28e377
- remove RPATH hardcoding
28e377
- move library to /usr
28e377
28e377
* Fri Jun 07 2013 Miroslav Lichvar <mlichvar@redhat.com> - 1.27-1
28e377
- update to 1.27
28e377
- make devel dependency arch-specific
28e377
- remove obsolete macros
28e377
28e377
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.26-2
28e377
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
28e377
28e377
* Mon Dec 17 2012 Miroslav Lichvar <mlichvar@redhat.com> - 1.26-1
28e377
- update to 1.26
28e377
28e377
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.25-3
28e377
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
28e377
28e377
* Tue May 29 2012 Joe Orton <jorton@redhat.com> - 1.25-2
28e377
- update to 1.25
28e377
28e377
* Tue May 15 2012 Miroslav Lichvar <mlichvar@redhat.com> - 1.24-2
28e377
- provide bundled(gnulib) (#821768)
28e377
28e377
* Sun Jan 15 2012 Robert Scheck <robert@fedoraproject.org> - 1.24-1
28e377
- Update to 1.24 (#781379)
28e377
28e377
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.23-2
28e377
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
28e377
28e377
* Fri Nov 25 2011 Miroslav Lichvar <mlichvar@redhat.com> - 1.23-1
28e377
- update to 1.23
28e377
28e377
* Tue May 31 2011 Ville Skyttä <ville.skytta@iki.fi> - 1.22-3
28e377
- Split emacs-libidn subpackage to avoid *.elc arch conflicts (#709136).
28e377
28e377
* Sun May 29 2011 Ville Skyttä <ville.skytta@iki.fi> - 1.22-2
28e377
- Byte compile Emacs lisp files, require emacs-filesystem for dir ownership.
28e377
28e377
* Thu May 05 2011 Miroslav Lichvar <mlichvar@redhat.com> - 1.22-1
28e377
- update to 1.22
28e377
28e377
* Tue Apr 26 2011 Miroslav Lichvar <mlichvar@redhat.com> - 1.21-1
28e377
- update to 1.21
28e377
28e377
* Thu Mar 03 2011 Miroslav Lichvar <mlichvar@redhat.com> - 1.20-1
28e377
- update to 1.20
28e377
- fix requires
28e377
28e377
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.19-2
28e377
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
28e377
28e377
* Mon May 24 2010 Joe Orton <jorton@redhat.com> - 1.19-1
28e377
- update to 1.19 (#595086)
28e377
28e377
* Tue Mar 30 2010 Joe Orton <jorton@redhat.com> - 1.18-2
28e377
- add GFDL to License
28e377
28e377
* Mon Mar 29 2010 Joe Orton <jorton@redhat.com> - 1.18-1
28e377
- update to 1.18
28e377
- fix Source0 to reference gnu.org repository
28e377
28e377
* Fri Jan 29 2010 Joe Orton <jorton@redhat.com> - 1.16-1
28e377
- update to 1.16
28e377
28e377
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9-5
28e377
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
28e377
28e377
* Tue Mar 10 2009 Joe Orton <jorton@redhat.com> 1.9-4
28e377
- update to 1.9 (#302111)
28e377
- update License to reflect GPLv3+ binaries, LGPLv2+ library
28e377
28e377
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.14-10
28e377
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
28e377
28e377
* Mon Dec 29 2008 Kedar Sovani <kedars@marvell.com> 0.6.14-9
28e377
- fix the problem with #include_next
28e377
28e377
* Tue Jun 10 2008 Joe Orton <jorton@redhat.com> 0.6.14-8
28e377
- fix build with latest autoconf (#449440)
28e377
28e377
* Mon Mar 31 2008 Joe Orton <jorton@redhat.com> 0.6.14-7
28e377
- fix libidn.pc for correct libdir (#439549)
28e377
28e377
* Fri Mar  7 2008 Joe Orton <jorton@redhat.com> 0.6.14-6
28e377
- drop libidn.a
28e377
- move shared library to /lib{,64} (#283651)
28e377
28e377
* Thu Feb  7 2008 Joe Orton <jorton@redhat.com> 0.6.14-5
28e377
- fix DT_RPATH in /usr/bin/idn
28e377
- convert libidn.iconv to UTF-8 (Jon Ciesla, #226029)
28e377
- fix BuildRoot tag (Jon Ciesla, #226029)
28e377
28e377
* Tue Aug 21 2007 Joe Orton <jorton@redhat.com> 0.6.14-4
28e377
- drop contrib directory from docs
28e377
28e377
* Mon Aug 20 2007 Joe Orton <jorton@redhat.com> 0.6.14-3
28e377
- fix License
28e377
28e377
* Mon Jun 18 2007 Joe Orton <jorton@redhat.com> 0.6.14-2
28e377
- update to 0.6.14
28e377
28e377
* Mon Jan 29 2007 Joe Orton <jorton@redhat.com> 0.6.9-2
28e377
- update to 0.6.9
28e377
- make install-info use failsafe (Ville Skyttä, #223707)
28e377
28e377
* Wed Nov 15 2006 Joe Orton <jorton@redhat.com> 0.6.8-4
28e377
- use non-GNU section in info directory (#209491)
28e377
28e377
* Wed Nov 15 2006 Joe Orton <jorton@redhat.com> 0.6.8-3
28e377
- update to 0.6.8
28e377
28e377
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.6.5-1.1
28e377
- rebuild
28e377
28e377
* Fri Jul  7 2006 Joe Orton <jorton@redhat.com> 0.6.5-1
28e377
- update to 0.6.5
28e377
28e377
* Fri Jul  7 2006 Joe Orton <jorton@redhat.com> 0.6.4-1
28e377
- update to 0.6.4
28e377
28e377
* Thu Jun  1 2006 Joe Orton <jorton@redhat.com> 0.6.3-1
28e377
- update to 0.6.3
28e377
- fix some places where gettext() was not getting used
28e377
28e377
* Thu Jun  1 2006 Joe Orton <jorton@redhat.com> 0.6.2-4
28e377
- remove the libidn.la (#172639)
28e377
28e377
* Thu May 11 2006 Joe Orton <jorton@redhat.com> 0.6.2-3
28e377
- make idn-int.h multilib-safe
28e377
28e377
* Wed Feb 22 2006 Joe Orton <jorton@redhat.com> 0.6.2-2
28e377
- disable C# support (#182393)
28e377
28e377
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.6.2-1.1
28e377
- bump again for double-long bug on ppc(64)
28e377
28e377
* Mon Feb 06 2006 Florian La Roche <laroche@redhat.com>
28e377
- 0.6.1
28e377
28e377
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
28e377
- rebuilt
28e377
28e377
* Sun Dec  4 2005 Joe Orton <jorton@redhat.com> 0.6.0-1
28e377
- update to 0.6.0
28e377
28e377
* Mon Oct 24 2005 Joe Orton <jorton@redhat.com> 0.5.20-1
28e377
- update to 0.5.20
28e377
28e377
* Mon Sep 19 2005 Joe Orton <jorton@redhat.com> 0.5.19-1
28e377
- update to 0.5.19
28e377
28e377
* Fri May 27 2005 Joe Orton <jorton@redhat.com> 0.5.17-1
28e377
- update to 0.5.17
28e377
28e377
* Fri May  6 2005 Joe Orton <jorton@redhat.com> 0.5.16-1
28e377
- update to 0.5.16
28e377
28e377
* Thu May  5 2005 Joe Orton <jorton@redhat.com> 0.5.15-2
28e377
- constify data tables in pr29.c
28e377
- clean up pre/post/postun requires
28e377
28e377
* Sun Mar 20 2005 Joe Orton <jorton@redhat.com> 0.5.15-1
28e377
- update to 0.5.15
28e377
28e377
* Fri Mar  4 2005 Joe Orton <jorton@redhat.com> 0.5.13-2
28e377
- rebuild
28e377
28e377
* Mon Jan 31 2005 Joe Orton <jorton@redhat.com> 0.5.13-1
28e377
- update to 0.5.13
28e377
28e377
* Sun Dec  5 2004 Joe Orton <jorton@redhat.com> 0.5.12-1
28e377
- update to 0.5.12
28e377
28e377
* Mon Nov 29 2004 Joe Orton <jorton@redhat.com> 0.5.11-1
28e377
- update to 0.5.11 (#141094)
28e377
28e377
* Tue Nov  9 2004 Joe Orton <jorton@redhat.com> 0.5.10-1
28e377
- update to 0.5.10
28e377
- buildroot cleanup fix (Robert Scheck)
28e377
28e377
* Mon Nov  8 2004 Joe Orton <jorton@redhat.com> 0.5.9-1
28e377
- update to 0.5.9 (#138296)
28e377
28e377
* Thu Oct  7 2004 Joe Orton <jorton@redhat.com> 0.5.6-1
28e377
- update to 0.5.6 (#134343)
28e377
28e377
* Thu Sep 30 2004 Miloslav Trmac <mitr@redhat.com> - 0.5.4-3
28e377
- Fix Group: (#134068)
28e377
28e377
* Tue Aug 31 2004 Joe Orton <jorton@redhat.com> 0.5.4-2
28e377
- move ldconfig from preun to postun (#131280)
28e377
28e377
* Sun Aug  8 2004 Joe Orton <jorton@redhat.com> 0.5.4-1
28e377
- update to 0.5.4 (#129341)
28e377
28e377
* Thu Jul 15 2004 Robert Scheck <redhat@linuxnetz.de> 0.5.2-1
28e377
- upgrade to 0.5.2, enabled i18n support and info files (#127906)
28e377
28e377
* Fri Jul  9 2004 Joe Orton <jorton@redhat.com> 0.5.1-1
28e377
- update to 0.5.1 (#127496)
28e377
28e377
* Mon Jun 28 2004 Joe Orton <jorton@redhat.com> 0.5.0-1
28e377
- update to 0.5.0 (#126836)
28e377
28e377
* Tue Jun 22 2004 Than Ngo <than@redhat.com> 0.4.9-2
28e377
- add prereq: /sbin/ldconfig
28e377
- move la file in main package
28e377
28e377
* Tue Jun 15 2004 Robert Scheck <redhat@linuxnetz.de> 0.4.9-1
28e377
- upgrade to 0.4.9 (#126353)
28e377
28e377
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
28e377
- rebuilt
28e377
28e377
* Thu Apr 29 2004 Joe Orton <jorton@redhat.com> 0.4.4-1
28e377
- update to 0.4.4; remove contrib from -devel docs
28e377
28e377
* Thu Apr 29 2004 Joe Orton <jorton@redhat.com> 0.4.3-1
28e377
- update to 0.4.3, remove -rpath patch
28e377
28e377
* Tue Jan 27 2004 Joe Orton <jorton@redhat.com> 0.3.7-1
28e377
- update to 0.3.7, simplify
28e377
28e377
* Wed Jan 07 2004 Lenny Cartier <lenny@mandrakesoft.com> 0.3.6-1mdk
28e377
- 0.3.6
28e377
28e377
* Mon Dec 15 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.3.5-1mdk
28e377
- 0.3.5
28e377
28e377
* Sun Oct 19 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.3.3-2mdk
28e377
- drop the "soname fix" and use the correct way...
28e377
28e377
* Sat Oct 18 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.3.3-1mdk
28e377
- 0.3.3
28e377
28e377
* Mon Oct 13 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.3.2-1mdk
28e377
- initial cooker contrib
28e377
- used the package from PLD as a start point