.bz2 -> .gz again.
[fedora-mingw.git] / gettext / mingw-gettext.spec
1 %define __strip %{_mingw_strip}
2 %define __objdump %{_mingw_objdump}
3 %define _use_internal_dependency_generator 0
4 %define __find_requires %{_mingw_findrequires}
5 %define __find_provides %{_mingw_findprovides}
6
7 Name:      mingw-gettext
8 Version:   0.17
9 Release:   4%{?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: mingw-filesystem >= 23
21 BuildRequires: mingw-gcc
22 BuildRequires: mingw-gcc-c++
23 BuildRequires: mingw-binutils
24 BuildRequires: mingw-iconv
25
26
27 %description
28 MinGW Windows Gettext library
29
30 %prep
31 %setup -q -n gettext-%{version}
32
33 %build
34 %{_mingw_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%{_mingw_datadir}/locale/locale.alias
48 rm -f $RPM_BUILD_ROOT%{_mingw_libdir}/charset.alias
49 rm -f $RPM_BUILD_ROOT%{_mingw_datadir}/info/dir
50
51 # Remove static libraries.
52 rm $RPM_BUILD_ROOT%{_mingw_libdir}/libasprintf.a
53 rm $RPM_BUILD_ROOT%{_mingw_libdir}/libgettextpo.a
54 rm $RPM_BUILD_ROOT%{_mingw_libdir}/libintl.a
55
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(-,root,root)
62 %{_mingw_bindir}/autopoint
63 %{_mingw_bindir}/envsubst.exe
64 %{_mingw_bindir}/gettext.exe
65 %{_mingw_bindir}/gettext.sh
66 %{_mingw_bindir}/gettextize
67 %{_mingw_bindir}/libasprintf-0.dll
68 %{_mingw_bindir}/libgettextlib-0-17.dll
69 %{_mingw_bindir}/libgettextpo-0.dll
70 %{_mingw_bindir}/libgettextsrc-0-17.dll
71 %{_mingw_bindir}/libintl-8.dll
72 %{_mingw_bindir}/msg*.exe
73 %{_mingw_bindir}/ngettext.exe
74 %{_mingw_bindir}/recode-sr-latin.exe
75 %{_mingw_bindir}/xgettext.exe
76
77 %{_mingw_includedir}/autosprintf.h
78 %{_mingw_includedir}/gettext-po.h
79 %{_mingw_includedir}/libintl.h
80
81 %{_mingw_libdir}/gettext
82
83 %{_mingw_libdir}/libasprintf.dll.a
84 %{_mingw_libdir}/libasprintf.la
85
86 %{_mingw_libdir}/libgettextlib.dll.a
87 %{_mingw_libdir}/libgettextlib.la
88
89 %{_mingw_libdir}/libgettextpo.dll.a
90 %{_mingw_libdir}/libgettextpo.la
91
92 %{_mingw_libdir}/libgettextsrc.dll.a
93 %{_mingw_libdir}/libgettextsrc.la
94
95 %{_mingw_libdir}/libintl.dll.a
96 %{_mingw_libdir}/libintl.la
97
98 %{_mingw_docdir}/gettext
99 %{_mingw_docdir}/libasprintf/autosprintf_all.html
100
101 %{_mingw_datadir}/gettext/
102
103 %{_mingw_datadir}/aclocal/*m4
104 %{_mingw_datadir}/info/autosprintf.info
105 %{_mingw_datadir}/info/gettext.info
106
107 %{_mingw_datadir}/locale/*/LC_MESSAGES/gettext-tools.mo
108 %{_mingw_datadir}/locale/*/LC_MESSAGES/gettext-runtime.mo
109
110 %{_mingw_mandir}/man1/autopoint.1*
111 %{_mingw_mandir}/man1/envsubst.1*
112 %{_mingw_mandir}/man1/gettext.1*
113 %{_mingw_mandir}/man1/gettextize.1*
114 %{_mingw_mandir}/man1/msg*1*
115 %{_mingw_mandir}/man1/ngettext.1*
116 %{_mingw_mandir}/man1/recode-sr-latin.1*
117 %{_mingw_mandir}/man1/xgettext.1*
118
119 %{_mingw_mandir}/man3/bind_textdomain_codeset.3*
120 %{_mingw_mandir}/man3/bindtextdomain.3*
121 %{_mingw_mandir}/man3/dcgettext.3*
122 %{_mingw_mandir}/man3/dcngettext.3*
123 %{_mingw_mandir}/man3/dgettext.3*
124 %{_mingw_mandir}/man3/dngettext.3*
125 %{_mingw_mandir}/man3/gettext.3*
126 %{_mingw_mandir}/man3/ngettext.3*
127 %{_mingw_mandir}/man3/textdomain.3*
128
129
130 %changelog
131 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 0.17-4
132 - Disable emacs lisp file install
133
134 * Thu Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 0.17-3
135 - Remove static libraries.
136
137 * Thu Sep  4 2008 Richard W.M. Jones <rjones@redhat.com> - 0.17-2
138 - Use RPM macros from mingw-filesystem.
139
140 * Tue Sep  2 2008 Daniel P. Berrange <berrange@redhat.com> - 0.17-1
141 - Initial RPM release, largely based on earlier work from several sources.