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