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 producing multi-lingual messages
12 License: GPLv2+ and LGPLv2+
13 Group: Development/Libraries
14 URL: http://www.gnu.org/software/gettext/
15 Source0: http://ftp.gnu.org/pub/gnu/gettext/gettext-%{version}.tar.gz
16 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
20 BuildRequires: mingw32-filesystem >= 23
21 BuildRequires: mingw32-gcc
22 BuildRequires: mingw32-gcc-c++
23 BuildRequires: mingw32-binutils
24 BuildRequires: mingw32-iconv
28 MinGW Windows Gettext library
31 %setup -q -n gettext-%{version}
34 %{_mingw32_configure} \
36 --disable-native-java \
38 --enable-threads=win32 \
44 rm -rf $RPM_BUILD_ROOT
46 make DESTDIR=$RPM_BUILD_ROOT install
47 rm -f $RPM_BUILD_ROOT%{_mingw32_datadir}/locale/locale.alias
48 rm -f $RPM_BUILD_ROOT%{_mingw32_libdir}/charset.alias
49 rm -f $RPM_BUILD_ROOT%{_mingw32_datadir}/info/dir
51 # Remove static libraries.
52 rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libasprintf.a
53 rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libgettextpo.a
54 rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libintl.a
58 rm -rf $RPM_BUILD_ROOT
62 %{_mingw32_bindir}/autopoint
63 %{_mingw32_bindir}/envsubst.exe
64 %{_mingw32_bindir}/gettext.exe
65 %{_mingw32_bindir}/gettext.sh
66 %{_mingw32_bindir}/gettextize
67 %{_mingw32_bindir}/libasprintf-0.dll
68 %{_mingw32_bindir}/libgettextlib-0-17.dll
69 %{_mingw32_bindir}/libgettextpo-0.dll
70 %{_mingw32_bindir}/libgettextsrc-0-17.dll
71 %{_mingw32_bindir}/libintl-8.dll
72 %{_mingw32_bindir}/msg*.exe
73 %{_mingw32_bindir}/ngettext.exe
74 %{_mingw32_bindir}/recode-sr-latin.exe
75 %{_mingw32_bindir}/xgettext.exe
77 %{_mingw32_includedir}/autosprintf.h
78 %{_mingw32_includedir}/gettext-po.h
79 %{_mingw32_includedir}/libintl.h
81 %{_mingw32_libdir}/gettext
83 %{_mingw32_libdir}/libasprintf.dll.a
84 %{_mingw32_libdir}/libasprintf.la
86 %{_mingw32_libdir}/libgettextlib.dll.a
87 %{_mingw32_libdir}/libgettextlib.la
89 %{_mingw32_libdir}/libgettextpo.dll.a
90 %{_mingw32_libdir}/libgettextpo.la
92 %{_mingw32_libdir}/libgettextsrc.dll.a
93 %{_mingw32_libdir}/libgettextsrc.la
95 %{_mingw32_libdir}/libintl.dll.a
96 %{_mingw32_libdir}/libintl.la
98 %{_mingw32_docdir}/gettext
99 %{_mingw32_docdir}/libasprintf/autosprintf_all.html
101 %{_mingw32_datadir}/gettext/
103 %{_mingw32_datadir}/aclocal/*m4
104 %{_mingw32_datadir}/info/autosprintf.info
105 %{_mingw32_datadir}/info/gettext.info
107 %{_mingw32_datadir}/locale/*/LC_MESSAGES/gettext-tools.mo
108 %{_mingw32_datadir}/locale/*/LC_MESSAGES/gettext-runtime.mo
110 %{_mingw32_mandir}/man1/autopoint.1*
111 %{_mingw32_mandir}/man1/envsubst.1*
112 %{_mingw32_mandir}/man1/gettext.1*
113 %{_mingw32_mandir}/man1/gettextize.1*
114 %{_mingw32_mandir}/man1/msg*1*
115 %{_mingw32_mandir}/man1/ngettext.1*
116 %{_mingw32_mandir}/man1/recode-sr-latin.1*
117 %{_mingw32_mandir}/man1/xgettext.1*
119 %{_mingw32_mandir}/man3/bind_textdomain_codeset.3*
120 %{_mingw32_mandir}/man3/bindtextdomain.3*
121 %{_mingw32_mandir}/man3/dcgettext.3*
122 %{_mingw32_mandir}/man3/dcngettext.3*
123 %{_mingw32_mandir}/man3/dgettext.3*
124 %{_mingw32_mandir}/man3/dngettext.3*
125 %{_mingw32_mandir}/man3/gettext.3*
126 %{_mingw32_mandir}/man3/ngettext.3*
127 %{_mingw32_mandir}/man3/textdomain.3*
131 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 0.17-5
132 - Rename mingw -> mingw32.
134 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 0.17-4
135 - Disable emacs lisp file install
137 * Thu Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 0.17-3
138 - Remove static libraries.
140 * Thu Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 0.17-2
141 - Use RPM macros from mingw-filesystem.
143 * Tue Sep 2 2008 Daniel P. Berrange <berrange@redhat.com> - 0.17-1
144 - Initial RPM release, largely based on earlier work from several sources.