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