]> git.pld-linux.org Git - packages/crossmingw32-libiconv.git/blob - crossmingw32-libiconv.spec
- rel 3
[packages/crossmingw32-libiconv.git] / crossmingw32-libiconv.spec
1 %define         realname                libiconv
2 Summary:        Character set conversion library - mingw32 cross version
3 Summary(pl):    Biblioteka konwersji zestawów znaków - wersja skro¶na dla mingw32
4 Name:           crossmingw32-%{realname}
5 Version:        1.9.2
6 Release:        3
7 License:        LGPL
8 Group:          Libraries
9 Source0:        ftp://ftp.gnu.org/gnu/libiconv/%{realname}-%{version}.tar.gz
10 # Source0-md5:  6bc300365053c815b10b800a21e0bc7e
11 Patch0:         %{name}.patch
12 URL:            http://www.gnu.org/software/libiconv/
13 BuildRequires:  automake
14 BuildRequires:  crossmingw32-gcc
15 Requires:       crossmingw32-runtime
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         no_install_post_strip   1
19
20 %define         target                  i386-mingw32
21 %define         target_platform         i386-pc-mingw32
22 %define         _sysprefix              /usr
23 %define         _prefix                 %{_sysprefix}/%{target}
24
25 %define         __cc                    %{target}-gcc
26 %define         __cxx                   %{target}-g++
27
28 %ifarch alpha sparc sparc64 sparcv9
29 %define         optflags        -O2
30 %endif
31
32 %description
33 The libiconv library provides an iconv() implementation, for use on
34 systems which don't have one, or whose implementation cannot convert
35 from/to Unicode.
36
37 This package contains the cross version for mingw32.
38
39 %description -l pl
40 Ta biblioteka dostarcza implementacjê iconv() do u¿ywania z systemami,
41 które takiej funkcji nie posiadaj±, lub na których implementacja nie
42 potrafi konwertowaæ z/do Unikodu.
43
44 Ten pakiet zawiera wersjê skro¶n± dla mingw32.
45
46 %package dll
47 Summary:        %{realname} - DLL library for Windows
48 Summary(pl):    %{realname} - biblioteka DLL dla Windows
49 Group:          Applications/Emulators
50
51 %description dll
52 %{realname} - DLL library for Windows.
53
54 %description dll -l pl
55 %{realname} - biblioteka DLL dla Windows.
56
57 %prep
58 %setup -q -n %{realname}-%{version}
59 %patch0 -p1
60
61 %build
62 cp -f /usr/share/automake/config.sub libcharset/autoconf
63 cp -f /usr/share/automake/config.sub autoconf
64 %configure \
65         AR="%{target}-ar" \
66         RANLIB="%{target}-ranlib" \
67         --target="%{target}" \
68         --host="%{target_platform}" \
69         --enable-static
70
71 %{__make}
72
73 %if 0%{!?debug:1}
74 %{target}-strip {,libcharset/}lib/.libs/*.dll
75 %{target}-strip -g -R.comment -R.note {,libcharset/}lib/.libs/*.a
76 %endif
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
81
82 %{__make} install \
83         DESTDIR=$RPM_BUILD_ROOT
84
85 install {,libcharset/}lib/.libs/*.dll $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %files
91 %defattr(644,root,root,755)
92 %{_libdir}/*
93 %{_includedir}/*.h
94
95 %files dll
96 %defattr(644,root,root,755)
97 %{_datadir}/wine/windows/system/*
This page took 0.059025 seconds and 3 git commands to generate.