1 %define __strip %{_mingw32_strip}
2 %define __objdump %{_mingw32_objdump}
3 %define _use_internal_dependency_generator 0
4 %define __find_requires %{_mingw32_findrequires}
5 %define __find_provides %{_mingw32_findprovides}
7 # Native Fedora package is ancient, 0.6.14, which doesn't even
8 # exist on the upstream servers any more. I have gone for the
9 # latest version instead.
14 Summary: MinGW Windows Internationalized Domain Name support library
17 Group: Development/Libraries
18 URL: http://www.gnu.org/software/libidn/
19 Source0: http://josefsson.org/libidn/releases/libidn-%{version}.tar.gz
20 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
22 #Patch0: libidn-0.6.14-aconf262.patch
26 BuildRequires: mingw32-filesystem >= 33
27 BuildRequires: mingw32-gcc
28 BuildRequires: mingw32-binutils
29 BuildRequires: mingw32-gettext
30 BuildRequires: mingw32-iconv
31 BuildRequires: pkgconfig, gettext
32 #BuildRequires: libtool, automake, autoconf
36 GNU Libidn is an implementation of the Stringprep, Punycode and
37 IDNA specifications defined by the IETF Internationalized Domain
38 Names (IDN) working group, used for internationalized domain
43 %setup -q -n libidn-%{version}
44 #%patch0 -p1 -b .aconf262
49 %{_mingw32_configure} --disable-csharp --disable-static
54 rm -rf $RPM_BUILD_ROOT
55 make DESTDIR=$RPM_BUILD_ROOT install
57 # Remove documentation which duplicates native Fedora package.
58 rm -r $RPM_BUILD_ROOT%{_mingw32_datadir}/emacs
59 rm -r $RPM_BUILD_ROOT%{_mingw32_infodir}
60 rm -r $RPM_BUILD_ROOT%{_mingw32_mandir}/man*
64 rm -rf $RPM_BUILD_ROOT
69 %{_mingw32_bindir}/idn.exe
70 %{_mingw32_bindir}/libidn-11.dll
71 %{_mingw32_libdir}/libidn.dll.a
72 %{_mingw32_libdir}/libidn.la
73 %{_mingw32_libdir}/pkgconfig/libidn.pc
74 %{_mingw32_includedir}/*.h
75 %{_mingw32_datadir}/locale/*/LC_MESSAGES/libidn.mo
79 * Mon Nov 10 2008 Richard W.M. Jones <rjones@redhat.com> - 0.6.14-1
80 - Initial RPM release.