From: Richard W.M. Jones <"Richard W.M. Jones "> Date: Mon, 10 Nov 2008 13:29:15 +0000 (+0000) Subject: Added libidn. X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=1a5b499b68ee75d7a5da373f068fdfc2ceb45a6b;p=fedora-mingw.git Added libidn. --- diff --git a/.hgignore b/.hgignore index 78927a3..05b2b69 100644 --- a/.hgignore +++ b/.hgignore @@ -49,6 +49,7 @@ libgcrypt/libgcrypt-1.4.3.tar.bz2 libgcrypt/libgcrypt-1.4.3.tar.bz2.sig libgpg-error/libgpg-error-1.6.tar.bz2 libgpg-error/libgpg-error-1.6.tar.bz2.sig +libidn/libidn-1.9.tar.gz libjpeg/jpegsrc.v6b.tar.gz libpng/libpng-1.2.31.tar.bz2 libsigc++20/libsigc++-2.2.2.tar.bz2 diff --git a/libidn/mingw32-libidn.spec b/libidn/mingw32-libidn.spec new file mode 100644 index 0000000..6f30f94 --- /dev/null +++ b/libidn/mingw32-libidn.spec @@ -0,0 +1,80 @@ +%define __strip %{_mingw32_strip} +%define __objdump %{_mingw32_objdump} +%define _use_internal_dependency_generator 0 +%define __find_requires %{_mingw32_findrequires} +%define __find_provides %{_mingw32_findprovides} + +# Native Fedora package is ancient, 0.6.14, which doesn't even +# exist on the upstream servers any more. I have gone for the +# latest version instead. + +Name: mingw32-libidn +Version: 1.9 +Release: 1%{?dist} +Summary: MinGW Windows Internationalized Domain Name support library + +License: LGPLv2+ +Group: Development/Libraries +URL: http://www.gnu.org/software/libidn/ +Source0: http://josefsson.org/libidn/releases/libidn-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +#Patch0: libidn-0.6.14-aconf262.patch + +BuildArch: noarch + +BuildRequires: mingw32-filesystem >= 33 +BuildRequires: mingw32-gcc +BuildRequires: mingw32-binutils +BuildRequires: mingw32-gettext +BuildRequires: mingw32-iconv +BuildRequires: pkgconfig, gettext +#BuildRequires: libtool, automake, autoconf + + +%description +GNU Libidn is an implementation of the Stringprep, Punycode and +IDNA specifications defined by the IETF Internationalized Domain +Names (IDN) working group, used for internationalized domain +names. + + +%prep +%setup -q -n libidn-%{version} +#%patch0 -p1 -b .aconf262 +#autoreconf + + +%build +%{_mingw32_configure} --disable-csharp --disable-static +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT install + +# Remove documentation which duplicates native Fedora package. +rm -r $RPM_BUILD_ROOT%{_mingw32_datadir}/emacs +rm -r $RPM_BUILD_ROOT%{_mingw32_infodir} +rm -r $RPM_BUILD_ROOT%{_mingw32_mandir}/man* + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root) +%{_mingw32_bindir}/idn.exe +%{_mingw32_bindir}/libidn-11.dll +%{_mingw32_libdir}/libidn.dll.a +%{_mingw32_libdir}/libidn.la +%{_mingw32_libdir}/pkgconfig/libidn.pc +%{_mingw32_includedir}/*.h +%{_mingw32_datadir}/locale/*/LC_MESSAGES/libidn.mo + + +%changelog +* Mon Nov 10 2008 Richard W.M. Jones - 0.6.14-1 +- Initial RPM release.