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