]> git.pld-linux.org Git - packages/crossmingw32-libiconv.git/blob - crossmingw32-libiconv.spec
- updated to 1.9.1, updated patch, fixed files, don't include PE executables
[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.1
6 Release:        1
7 License:        LGPL
8 Group:          Libraries
9 Source0:        ftp://ftp.gnu.org/gnu/libiconv/%{realname}-%{version}.tar.gz
10 # Source0-md5:  0c99a05e0c3c153bac1c960f78711155
11 Patch0:         %{name}.patch
12 URL:            http://www.gnu.org/software/libiconv/
13 #BuildRequires: autoconf >= 2.57
14 #BuildRequires: automake
15 BuildRequires:  crossmingw32-gcc
16 #BuildRequires: libtool
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 %description
31 The libiconv library provides an iconv() implementation, for use on
32 systems which don't have one, or whose implementation cannot convert
33 from/to Unicode.
34
35 This package contains the cross version for mingw32.
36
37 %description -l pl
38 Ta biblioteka dostarcza implementacjê iconv() do u¿ywania z systemami,
39 które takiej funkcji nie posiadaj±, lub na których implementacja nie
40 potrafi konwertowaæ z/do Unikodu.
41
42 Ten pakiet zawiera wersjê skro¶n± dla mingw32.
43
44 %prep
45 %setup -q -n %{realname}-%{version}
46 %patch0 -p1
47
48 %build
49 %configure \
50         AR="%{target}-ar" \
51         RANLIB="%{target}-ranlib" \
52         --target=%{target} \
53         --host=%{target_platform} \
54         --disable-static
55
56 %{__make}
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60
61 %{__make} install \
62         DESTDIR=$RPM_BUILD_ROOT
63
64 %if 0%{!?debug:1}
65 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_bindir}/*.dll
66 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
67 %endif
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %files
73 %defattr(644,root,root,755)
74 %{_bindir}/libcharset-1.dll
75 %{_bindir}/libiconv-2.dll
76 %{_libdir}/libcharset.dll.a
77 %{_libdir}/libcharset.la
78 %{_libdir}/libiconv.dll.a
79 %{_libdir}/libiconv.la
80 %{_libdir}/charset.alias
81 %{_includedir}/*.h
This page took 0.980157 seconds and 3 git commands to generate.