]> git.pld-linux.org Git - packages/crossmingw32-libiconv.git/blob - crossmingw32-libiconv.spec
- no private gcc dirs used here
[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:          Development/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
26 %define         _sysprefix              /usr
27 %define         _prefix                 %{_sysprefix}/%{target}
28 %define         _pkgconfigdir           %{_prefix}/lib/pkgconfig
29 %define         _dlldir                 /usr/share/wine/windows/system
30 %define         __cc                    %{target}-gcc
31 %define         __cxx                   %{target}-g++
32
33 %ifnarch alpha sparc sparc64 sparcv9
34 %define         optflags        -O2
35 %endif
36
37 %description
38 The libiconv library provides an iconv() implementation, for use on
39 systems which don't have one, or whose implementation cannot convert
40 from/to Unicode.
41
42 This package contains the cross version for mingw32.
43
44 %description -l pl.UTF-8
45 Ta biblioteka dostarcza implementację iconv() do używania z systemami,
46 które takiej funkcji nie posiadają, lub na których implementacja nie
47 potrafi konwertować z/do Unikodu.
48
49 Ten pakiet zawiera wersję skrośną dla mingw32.
50
51 %package static
52 Summary:        Static iconv libraries (cross mingw32 version)
53 Summary(pl.UTF-8):      Statyczne biblioteki iconv (wersja skrośna mingw32)
54 Group:          Development/Libraries
55 Requires:       %{name} = %{version}-%{release}
56
57 %description static
58 Static iconv libraries (cross mingw32 version).
59
60 %description static -l pl.UTF-8
61 Statyczne biblioteki iconv (wersja skrośna mingw32).
62
63 %package dll
64 Summary:        DLL iconv libraries for Windows
65 Summary(pl.UTF-8):      Biblioteki DLL iconv dla Windows
66 Group:          Applications/Emulators
67 Requires:       wine
68
69 %description dll
70 DLL iconv libraries for Windows.
71
72 %description dll -l pl.UTF-8
73 Biblioteki DLL iconv dla Windows.
74
75 %prep
76 %setup -q -n %{_realname}-%{version}
77 %patch0 -p1
78
79 %build
80 cp -f /usr/share/automake/config.sub libcharset/autoconf
81 cp -f /usr/share/automake/config.sub autoconf
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.039878 seconds and 3 git commands to generate.