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