]> git.pld-linux.org Git - packages/crossmingw32-libiconv.git/blob - crossmingw32-libiconv.spec
- updated to 1.13
[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.13
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:  048032a3032ebd182150bdee30a5d533
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 # -z options are invalid for mingw linker
36 %define         filterout_ld    -Wl,-z,.*
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 static
53 Summary:        Static iconv libraries (cross mingw32 version)
54 Summary(pl.UTF-8):      Statyczne biblioteki iconv (wersja skrośna mingw32)
55 Group:          Development/Libraries
56 Requires:       %{name} = %{version}-%{release}
57
58 %description static
59 Static iconv libraries (cross mingw32 version).
60
61 %description static -l pl.UTF-8
62 Statyczne biblioteki iconv (wersja skrośna mingw32).
63
64 %package dll
65 Summary:        DLL iconv libraries for Windows
66 Summary(pl.UTF-8):      Biblioteki DLL iconv dla Windows
67 Group:          Applications/Emulators
68 Requires:       wine
69
70 %description dll
71 DLL iconv libraries for Windows.
72
73 %description dll -l pl.UTF-8
74 Biblioteki DLL iconv dla Windows.
75
76 %prep
77 %setup -q -n %{realname}-%{version}
78
79 %build
80 cp -f /usr/share/automake/config.sub libcharset/build-aux
81 cp -f /usr/share/automake/config.sub build-aux
82 %configure \
83         --target="%{target}" \
84         --host="%{target}" \
85         --enable-static
86
87 %{__make}
88
89 %install
90 rm -rf $RPM_BUILD_ROOT
91 install -d $RPM_BUILD_ROOT%{_dlldir}
92
93 %{__make} install \
94         DESTDIR=$RPM_BUILD_ROOT
95
96 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
97
98 %if 0%{!?debug:1}
99 %{target}-strip -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
100 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
101 %endif
102
103 # not used on win32
104 rm -f $RPM_BUILD_ROOT%{_libdir}/charset.alias
105 # runtime only
106 rm -f $RPM_BUILD_ROOT%{_bindir}/iconv
107 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
108
109 rm -rf $RPM_BUILD_ROOT%{_datadir}/{doc,man}
110
111 %clean
112 rm -rf $RPM_BUILD_ROOT
113
114 %files
115 %defattr(644,root,root,755)
116 %{_libdir}/libcharset.dll.a
117 %{_libdir}/libiconv.dll.a
118 %{_libdir}/libcharset.la
119 %{_libdir}/libiconv.la
120 %{_includedir}/iconv.h
121 %{_includedir}/libcharset.h
122 %{_includedir}/localcharset.h
123
124 %files static
125 %defattr(644,root,root,755)
126 %{_libdir}/libcharset.a
127 %{_libdir}/libiconv.a
128
129 %files dll
130 %defattr(644,root,root,755)
131 %{_dlldir}/libcharset-*.dll
132 %{_dlldir}/libiconv-*.dll
This page took 0.095272 seconds and 3 git commands to generate.