]> git.pld-linux.org Git - packages/crossmingw32-libiconv.git/blob - crossmingw32-libiconv.spec
- updated to 1.9.2
[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:        1
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:  crossmingw32-gcc
14 Requires:       crossmingw32-runtime
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         no_install_post_strip   1
18
19 %define         target                  i386-mingw32
20 %define         target_platform         i386-pc-mingw32
21 %define         _sysprefix              /usr
22 %define         _prefix                 %{_sysprefix}/%{target}
23
24 %define         __cc                    %{target}-gcc
25 %define         __cxx                   %{target}-g++
26
27 %description
28 The libiconv library provides an iconv() implementation, for use on
29 systems which don't have one, or whose implementation cannot convert
30 from/to Unicode.
31
32 This package contains the cross version for mingw32.
33
34 %description -l pl
35 Ta biblioteka dostarcza implementacjê iconv() do u¿ywania z systemami,
36 które takiej funkcji nie posiadaj±, lub na których implementacja nie
37 potrafi konwertowaæ z/do Unikodu.
38
39 Ten pakiet zawiera wersjê skro¶n± dla mingw32.
40
41 %prep
42 %setup -q -n %{realname}-%{version}
43 %patch0 -p1
44
45 %build
46 %configure \
47         AR="%{target}-ar" \
48         RANLIB="%{target}-ranlib" \
49         --target=%{target} \
50         --host=%{target_platform} \
51         --disable-static
52
53 %{__make}
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57
58 %{__make} install \
59         DESTDIR=$RPM_BUILD_ROOT
60
61 %if 0%{!?debug:1}
62 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_bindir}/*.dll
63 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
64 %endif
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %files
70 %defattr(644,root,root,755)
71 %{_bindir}/libcharset-1.dll
72 %{_bindir}/libiconv-2.dll
73 %{_libdir}/libcharset.dll.a
74 %{_libdir}/libcharset.la
75 %{_libdir}/libiconv.dll.a
76 %{_libdir}/libiconv.la
77 %{_libdir}/charset.alias
78 %{_includedir}/*.h
This page took 0.027837 seconds and 4 git commands to generate.