]> git.pld-linux.org Git - packages/crossmingw32-libiconv.git/blobdiff - crossmingw32-libiconv.spec
- rel 3
[packages/crossmingw32-libiconv.git] / crossmingw32-libiconv.spec
index aadb241d652a6001185bcfefe2e746e7ca5dd7f0..6dddc560aee0ec9b4ccc7e221fadc576cd025d26 100644 (file)
@@ -1,73 +1,97 @@
-
 %define                realname                libiconv
-%define                snapshot                2003.02.01-1
-Summary:       iconv
+Summary:       Character set conversion library - mingw32 cross version
+Summary(pl):   Biblioteka konwersji zestawów znaków - wersja skro¶na dla mingw32
 Name:          crossmingw32-%{realname}
-Version:       1.8
-Release:       1
+Version:       1.9.2
+Release:       3
 License:       LGPL
 Group:         Libraries
-Source0:       http://dl.sourceforge.net/mingw/%{realname}-%{version}-%{snapshot}-src.tar.bz2
-Patch0:                crossmingw32-libiconv.patch
+Source0:       ftp://ftp.gnu.org/gnu/libiconv/%{realname}-%{version}.tar.gz
+# Source0-md5: 6bc300365053c815b10b800a21e0bc7e
+Patch0:                %{name}.patch
 URL:           http://www.gnu.org/software/libiconv/
-BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: gtk-doc >= 0.9-4
-BuildRequires: libtool
-BuildRequires: rpm-build >= 4.1-8.2
-BuildRoot:     %{tmpdir}/%{realname}-%{version}-root-%(id -u -n)
+BuildRequires: crossmingw32-gcc
+Requires:      crossmingw32-runtime
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                no_install_post_strip   1
 
 %define                target                  i386-mingw32
 %define                target_platform         i386-pc-mingw32
-%define                arch                    %{_prefix}/%{target}
-%define                gccarch                 %{_prefix}/lib/gcc-lib/%{target}
-%define                gcclib                  %{_prefix}/lib/gcc-lib/%{target}/%{version}
+%define                _sysprefix              /usr
+%define                _prefix                 %{_sysprefix}/%{target}
 
 %define                __cc                    %{target}-gcc
 %define                __cxx                   %{target}-g++
 
+%ifarch alpha sparc sparc64 sparcv9
+%define                optflags        -O2
+%endif
+
 %description
-iconv
+The libiconv library provides an iconv() implementation, for use on
+systems which don't have one, or whose implementation cannot convert
+from/to Unicode.
+
+This package contains the cross version for mingw32.
+
+%description -l pl
+Ta biblioteka dostarcza implementacjê iconv() do u¿ywania z systemami,
+które takiej funkcji nie posiadaj±, lub na których implementacja nie
+potrafi konwertowaæ z/do Unikodu.
+
+Ten pakiet zawiera wersjê skro¶n± dla mingw32.
+
+%package dll
+Summary:       %{realname} - DLL library for Windows
+Summary(pl):   %{realname} - biblioteka DLL dla Windows
+Group:         Applications/Emulators
+
+%description dll
+%{realname} - DLL library for Windows.
+
+%description dll -l pl
+%{realname} - biblioteka DLL dla Windows.
 
 %prep
 %setup -q -n %{realname}-%{version}
 %patch0 -p1
 
 %build
-CC=%{target}-gcc ; export CC
-CXX=%{target}-g++ ; export CXX
-LD=%{target}-ld ; export LD
-AR=%{target}-ar ; export AR
-AS=%{target}-as ; export AS
-CROSS_COMPILE=1 ; export CROSS_COMPILE
-CPPFLAGS="-I%{arch}/include" ; export CPPFLAGS
-
-rm -f missing
-%{__libtoolize}
-%{__aclocal}
-%{__autoconf}
-
+cp -f /usr/share/automake/config.sub libcharset/autoconf
+cp -f /usr/share/automake/config.sub autoconf
 %configure \
-       --target=%{target} \
-       --host=%{target_platform} \
-       --prefix=%{arch} \
-       --disable-static \
-       --bindir=%{arch}/bin \
-       --libdir=%{arch}/lib \
-       --includedir=%{arch}/include
+       AR="%{target}-ar" \
+       RANLIB="%{target}-ranlib" \
+       --target="%{target}" \
+       --host="%{target_platform}" \
+       --enable-static
+
 %{__make}
 
+%if 0%{!?debug:1}
+%{target}-strip {,libcharset/}lib/.libs/*.dll
+%{target}-strip -g -R.comment -R.note {,libcharset/}lib/.libs/*.a
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_mandir}
+install -d $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+install {,libcharset/}lib/.libs/*.dll $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
-%{arch}
+%defattr(644,root,root,755)
+%{_libdir}/*
+%{_includedir}/*.h
+
+%files dll
+%defattr(644,root,root,755)
+%{_datadir}/wine/windows/system/*
This page took 0.085139 seconds and 4 git commands to generate.