]> git.pld-linux.org Git - packages/crossmingw32-libiconv.git/blob - crossmingw32-libiconv.spec
46efdb59f512bcca8784671980ef802ed3db9ed0
[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.12
6 Release:        1
7 License:        LGPL v2+
8 Group:          Development/Libraries
9 Source0:        http://ftp.gnu.org/gnu/libiconv/%{realname}-%{version}.tar.gz
10 # Source0-md5:  c2be282595751535a618ae0edeb8f648
11 URL:            http://www.gnu.org/software/libiconv/
12 BuildRequires:  automake
13 BuildRequires:  crossmingw32-gcc
14 # because of broken w32 relink in libtool
15 BuildConflicts: crossmingw32-libiconv < 1.10
16 Requires:       crossmingw32-runtime
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         no_install_post_strip   1
20
21 %define         target                  i386-mingw32
22 %define         target_platform         i386-pc-mingw32
23
24 %define         _sysprefix              /usr
25 %define         _prefix                 %{_sysprefix}/%{target}
26 %define         _libdir                 %{_prefix}/lib
27 %define         _dlldir                 /usr/share/wine/windows/system
28 %define         __cc                    %{target}-gcc
29 %define         __cxx                   %{target}-g++
30
31 %ifnarch %{ix86}
32 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
33 %define         optflags        -O2
34 %endif
35
36 %description
37 The libiconv library provides an iconv() implementation, for use on
38 systems which don't have one, or whose implementation cannot convert
39 from/to Unicode.
40
41 This package contains the cross version for mingw32.
42
43 %description -l pl.UTF-8
44 Ta biblioteka dostarcza implementację iconv() do używania z systemami,
45 które takiej funkcji nie posiadają, lub na których implementacja nie
46 potrafi konwertować z/do Unikodu.
47
48 Ten pakiet zawiera wersję skrośną dla mingw32.
49
50 %package static
51 Summary:        Static iconv libraries (cross mingw32 version)
52 Summary(pl.UTF-8):      Statyczne biblioteki iconv (wersja skrośna mingw32)
53 Group:          Development/Libraries
54 Requires:       %{name} = %{version}-%{release}
55
56 %description static
57 Static iconv libraries (cross mingw32 version).
58
59 %description static -l pl.UTF-8
60 Statyczne biblioteki iconv (wersja skrośna mingw32).
61
62 %package dll
63 Summary:        DLL iconv libraries for Windows
64 Summary(pl.UTF-8):      Biblioteki DLL iconv dla Windows
65 Group:          Applications/Emulators
66 Requires:       wine
67
68 %description dll
69 DLL iconv libraries for Windows.
70
71 %description dll -l pl.UTF-8
72 Biblioteki DLL iconv dla Windows.
73
74 %prep
75 %setup -q -n %{realname}-%{version}
76
77 %build
78 cp -f /usr/share/automake/config.sub libcharset/build-aux
79 cp -f /usr/share/automake/config.sub build-aux
80 %configure \
81         --target="%{target}" \
82         --host="%{target}" \
83         --enable-static
84
85 %{__make}
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT%{_dlldir}
90
91 %{__make} install \
92         DESTDIR=$RPM_BUILD_ROOT
93
94 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
95
96 %if 0%{!?debug:1}
97 %{target}-strip -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
98 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
99 %endif
100
101 # not used on win32
102 rm -f $RPM_BUILD_ROOT%{_libdir}/charset.alias
103 # runtime only
104 rm -f $RPM_BUILD_ROOT%{_bindir}/iconv
105 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
106
107 rm -rf $RPM_BUILD_ROOT%{_datadir}/{doc,man}
108
109 %clean
110 rm -rf $RPM_BUILD_ROOT
111
112 %files
113 %defattr(644,root,root,755)
114 %{_libdir}/libcharset.dll.a
115 %{_libdir}/libiconv.dll.a
116 %{_libdir}/libcharset.la
117 %{_libdir}/libiconv.la
118 %{_includedir}/iconv.h
119 %{_includedir}/libcharset.h
120 %{_includedir}/localcharset.h
121
122 %files static
123 %defattr(644,root,root,755)
124 %{_libdir}/libcharset.a
125 %{_libdir}/libiconv.a
126
127 %files dll
128 %defattr(644,root,root,755)
129 %{_dlldir}/libcharset-*.dll
130 %{_dlldir}/libiconv-*.dll
This page took 0.056645 seconds and 3 git commands to generate.