a4397a09ac700aebb7da3eaa054ba5d125f44157
[fedora-mingw.git] / gettext / mingw32-gettext.spec
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}
6
7 Name:      mingw32-gettext
8 Version:   0.17
9 Release:   5%{?dist}
10 Summary:   GNU libraries and utilities for producing multi-lingual messages
11
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)
17
18 BuildArch: noarch
19
20 BuildRequires: mingw32-filesystem >= 23
21 BuildRequires: mingw32-gcc
22 BuildRequires: mingw32-gcc-c++
23 BuildRequires: mingw32-binutils
24 BuildRequires: mingw32-iconv
25
26
27 %description
28 MinGW Windows Gettext library
29
30 %prep
31 %setup -q -n gettext-%{version}
32
33 %build
34 %{_mingw32_configure} \
35   --disable-java \
36   --disable-native-java \
37   --disable-csharp \
38   --enable-threads=win32 \
39   --without-emacs
40
41 make
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45
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
50
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
55
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(-,root,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
76
77 %{_mingw32_includedir}/autosprintf.h
78 %{_mingw32_includedir}/gettext-po.h
79 %{_mingw32_includedir}/libintl.h
80
81 %{_mingw32_libdir}/gettext
82
83 %{_mingw32_libdir}/libasprintf.dll.a
84 %{_mingw32_libdir}/libasprintf.la
85
86 %{_mingw32_libdir}/libgettextlib.dll.a
87 %{_mingw32_libdir}/libgettextlib.la
88
89 %{_mingw32_libdir}/libgettextpo.dll.a
90 %{_mingw32_libdir}/libgettextpo.la
91
92 %{_mingw32_libdir}/libgettextsrc.dll.a
93 %{_mingw32_libdir}/libgettextsrc.la
94
95 %{_mingw32_libdir}/libintl.dll.a
96 %{_mingw32_libdir}/libintl.la
97
98 %{_mingw32_docdir}/gettext
99 %{_mingw32_docdir}/libasprintf/autosprintf_all.html
100
101 %{_mingw32_datadir}/gettext/
102
103 %{_mingw32_datadir}/aclocal/*m4
104 %{_mingw32_datadir}/info/autosprintf.info
105 %{_mingw32_datadir}/info/gettext.info
106
107 %{_mingw32_datadir}/locale/*/LC_MESSAGES/gettext-tools.mo
108 %{_mingw32_datadir}/locale/*/LC_MESSAGES/gettext-runtime.mo
109
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*
118
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*
128
129
130 %changelog
131 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 0.17-5
132 - Rename mingw -> mingw32.
133
134 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 0.17-4
135 - Disable emacs lisp file install
136
137 * Thu Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 0.17-3
138 - Remove static libraries.
139
140 * Thu Sep  4 2008 Richard W.M. Jones <rjones@redhat.com> - 0.17-2
141 - Use RPM macros from mingw-filesystem.
142
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.