]> git.pld-linux.org Git - packages/crossmingw32-libiconv.git/blob - crossmingw32-libiconv.spec
- clean up
[packages/crossmingw32-libiconv.git] / crossmingw32-libiconv.spec
1 Summary:        Character set conversion library - mingw32 cross version
2 Summary(pl.UTF-8):      Biblioteka konwersji zestawów znaków - wersja skrośna dla mingw32
3 %define         _realname   libiconv
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         arch                    %{_prefix}/%{target}
25 %define         gccarch                 %{_prefix}/lib/gcc-lib/%{target}
26 %define         gcclib                  %{_prefix}/lib/gcc-lib/%{target}/%{version}
27
28 %define         _sysprefix              /usr
29 %define         _prefix                 %{_sysprefix}/%{target}
30 %define         _pkgconfigdir           %{_prefix}/lib/pkgconfig
31 %define         __cc                    %{target}-gcc
32 %define         __cxx                   %{target}-g++
33
34 %ifarch alpha sparc sparc64 sparcv9
35 %define         optflags        -O2
36 %endif
37
38 %description
39 The libiconv library provides an iconv() implementation, for use on
40 systems which don't have one, or whose implementation cannot convert
41 from/to Unicode.
42
43 This package contains the cross version for mingw32.
44
45 %description -l pl.UTF-8
46 Ta biblioteka dostarcza implementację iconv() do używania z systemami,
47 które takiej funkcji nie posiadają, lub na których implementacja nie
48 potrafi konwertować z/do Unikodu.
49
50 Ten pakiet zawiera wersję skrośną dla mingw32.
51
52 %package dll
53 Summary:        %{_relaname} - DLL library for Windows
54 Summary(pl.UTF-8):      %{_relaname} - biblioteka DLL dla Windows
55 Group:          Applications/Emulators
56
57 %description dll
58 %{_realname} - DLL library for Windows.
59
60 %description dll -l pl.UTF-8
61 %{_realname} - biblioteka DLL dla Windows.
62
63 %prep
64 %setup -q -n %{_realname}-%{version}
65 %patch0 -p1
66
67 %build
68 cp -f /usr/share/automake/config.sub libcharset/autoconf
69 cp -f /usr/share/automake/config.sub autoconf
70 %configure \
71         AR="%{target}-ar" \
72         RANLIB="%{target}-ranlib" \
73         --target="%{target}" \
74         --host="%{target_platform}" \
75         --enable-static
76
77 %{__make}
78
79 %if 0%{!?debug:1}
80 %{target}-strip {,libcharset/}lib/.libs/*.dll
81 %{target}-strip -g -R.comment -R.note {,libcharset/}lib/.libs/*.a
82 %endif
83
84 %install
85 rm -rf $RPM_BUILD_ROOT
86 install -d $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
87
88 %{__make} install \
89         DESTDIR=$RPM_BUILD_ROOT
90
91 install {,libcharset/}lib/.libs/*.dll $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
92
93 %clean
94 rm -rf $RPM_BUILD_ROOT
95
96 %files
97 %defattr(644,root,root,755)
98 %{_libdir}/*
99 %{_includedir}/*.h
100
101 %files dll
102 %defattr(644,root,root,755)
103 %{_bindir}/lib*.dll
104 %{_datadir}/wine/windows/system/*
This page took 0.137642 seconds and 4 git commands to generate.