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}
10 Summary: GNU libraries and utilities for character set conversion
12 License: GPLv2+ and LGPLv2+
13 Group: Development/Libraries
14 URL: http://www.gnu.org/software/libiconv/
15 Source0: http://ftp.gnu.org/pub/gnu/libiconv/libiconv-%{version}.tar.gz
16 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
19 BuildRequires: mingw32-filesystem >= 23
20 BuildRequires: mingw32-gcc
21 BuildRequires: mingw32-binutils
23 # There's a quasi-circular dependency between mingw32-iconv and
24 # mingw32-gettext. If gettext is installed when you build this then
25 # iconv will create *.mo files. When this package is added to Fedora
26 # we can consider adding this circular dep:
27 #BuildRequires: mingw32-gettext
31 MinGW Windows Iconv library
35 %setup -q -n libiconv-%{version}
44 rm -rf $RPM_BUILD_ROOT
46 make DESTDIR=$RPM_BUILD_ROOT install
48 # Remove documentation which duplicates what is already in
49 # Fedora native packages.
50 rm -rf $RPM_BUILD_ROOT%{_mingw32_docdir}/libiconv/
51 rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir}
53 # If mingw32-gettext was installed during the build, remove the *.mo
54 # files. If mingw32-gettext wasn't installed then there won't be any.
55 rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/locale
59 rm -rf $RPM_BUILD_ROOT
64 %{_mingw32_bindir}/iconv
65 %{_mingw32_bindir}/libcharset-1.dll
66 %{_mingw32_bindir}/libiconv-2.dll
67 %{_mingw32_includedir}/iconv.h
68 %{_mingw32_includedir}/libcharset.h
69 %{_mingw32_includedir}/localcharset.h
70 %{_mingw32_libdir}/charset.alias
71 %{_mingw32_libdir}/libcharset.a
72 %{_mingw32_libdir}/libcharset.dll.a
73 %{_mingw32_libdir}/libcharset.la
74 %{_mingw32_libdir}/libiconv.dll.a
75 %{_mingw32_libdir}/libiconv.la
79 * Mon Nov 3 2008 Richard W.M. Jones <rjones@redhat.com> - 0.17-5
80 - Changed the summary (Bruno Haible).
81 - Note about mingw32-gettext / Remove *.mo files.
83 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 0.17-4
84 - Rename mingw -> mingw32.
86 * Thu Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 0.17-3
87 - Remove documentation which duplicates what is in Fedora native packages.
89 * Thu Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 0.17-2
90 - Use RPM macros from mingw-filesystem.
92 * Tue Sep 2 2008 Daniel P. Berrange <berrange@redhat.com> - 0.17-1
93 - Initial RPM release, largely based on earlier work from several sources.