Enable C++ compilers. Split cpp & c++ into sub-RPMs. Add gettext and iconv
[fedora-mingw.git] / iconv / mingw-iconv.spec
1 %define __os_install_post /usr/lib/rpm/brp-compress %{nil}
2
3 Name:      mingw-iconv
4 Version:   1.12
5 Release:   1%{?dist}
6 Summary:   GNU libraries and utilities for producing multi-lingual messages
7
8 License:   GPLv2+ and LGPLv2+
9 Group:     Development/Libraries
10 URL:       http://www.gnu.org/software/iconv/
11 Source0:   http://ftp.gnu.org/pub/gnu/iconv/libiconv-%{version}.tar.gz
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13
14 BuildRequires: mingw-gcc
15 BuildRequires: mingw-binutils
16
17 Requires:       mingw-runtime
18
19 %description
20 MinGW Windows Iconv library
21
22 %prep
23 %setup -q -n libiconv-%{version}
24
25 %build
26 CFLAGS="-O2 -g -Wall -pipe" \
27 ./configure \
28   --build=%_build \
29   --host=i686-pc-mingw32 \
30   --prefix=%{_prefix}/i686-pc-mingw32/sys-root/mingw
31
32 make
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36
37 make DESTDIR=$RPM_BUILD_ROOT install
38
39 %clean
40 rm -rf $RPM_BUILD_ROOT
41
42 %files
43 %defattr(-,root,root)
44 %{_prefix}/i686-pc-mingw32/sys-root/mingw/bin/iconv
45 %{_prefix}/i686-pc-mingw32/sys-root/mingw/bin/libcharset-1.dll
46 %{_prefix}/i686-pc-mingw32/sys-root/mingw/bin/libiconv-2.dll
47 %{_prefix}/i686-pc-mingw32/sys-root/mingw/include/iconv.h
48 %{_prefix}/i686-pc-mingw32/sys-root/mingw/include/libcharset.h
49 %{_prefix}/i686-pc-mingw32/sys-root/mingw/include/localcharset.h
50 %{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/charset.alias
51 %{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/libcharset.a
52 %{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/libcharset.dll.a
53 %{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/libcharset.la
54 %{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/libiconv.dll.a
55 %{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/libiconv.la
56 %dir %{_prefix}/i686-pc-mingw32/sys-root/mingw/share/doc/libiconv/
57 %{_prefix}/i686-pc-mingw32/sys-root/mingw/share/doc/libiconv/*.html
58 %{_prefix}/i686-pc-mingw32/sys-root/mingw/share/man/man1/iconv.1*
59 %{_prefix}/i686-pc-mingw32/sys-root/mingw/share/man/man3/iconv.3*
60 %{_prefix}/i686-pc-mingw32/sys-root/mingw/share/man/man3/iconv_close.3*
61 %{_prefix}/i686-pc-mingw32/sys-root/mingw/share/man/man3/iconv_open.3*
62 %{_prefix}/i686-pc-mingw32/sys-root/mingw/share/man/man3/iconvctl.3*
63
64
65 %changelog
66 * Tue Sep  2 2008 Daniel P. Berrange <berrange@redhat.com> - 0.17-1
67 - Initial RPM release, largely based on earlier work from several sources.