File mingw32-win_iconv.spec of Package mingw32-win_iconv
%define __strip %{_mingw32_strip}
%define __objdump %{_mingw32_objdump}
%define _use_internal_dependency_generator 0
%define __find_requires %{_mingw32_findrequires}
%define __find_provides %{_mingw32_findprovides}
%define __os_install_post %{_mingw32_debug_install_post} \
%{_mingw32_install_post}
Name: mingw32-win_iconv
Version: 0.0.3
Release: 0
Summary: An implementation of iconv using win32 API
License: Public Domain
Url: http://code.google.com/p/win-iconv/
Group: Development/Libraries
Source: http://win-iconv.googlecode.com/files/win-iconv-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
#!BuildIgnore: post-build-checks
BuildRequires: mingw32-filesystem
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-binutils
%description
The win_iconv is an implementation of iconv for Windows by Yukihiro Nakadaira
that has a much smaller footprint than GNU libiconv.
%package devel
Summary: An implementation of iconv using win32 API (development files)
Group: Development/Libraries
%description devel
The win_iconv is an implementation of iconv for Windows by Yukihiro Nakadaira
that has a much smaller footprint than GNU libiconv (development files).
%prep
%setup -q -n win-iconv-%{version}
%build
%{_mingw32_make} libiconv.a win_iconv.exe
%install
mkdir -p $RPM_BUILD_ROOT%{_mingw32_bindir}
install -m 0755 win_iconv.exe $RPM_BUILD_ROOT%{_mingw32_bindir}/
install -m 0755 win_iconv.exe $RPM_BUILD_ROOT%{_mingw32_bindir}/iconv.exe
mkdir -p $RPM_BUILD_ROOT%{_mingw32_libdir}
install -m 0644 libiconv.a $RPM_BUILD_ROOT%{_mingw32_libdir}/
mkdir -p $RPM_BUILD_ROOT%{_mingw32_includedir}
install -m 0644 iconv.h $RPM_BUILD_ROOT%{_mingw32_includedir}/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_mingw32_bindir}/iconv.exe
%{_mingw32_bindir}/win_iconv.exe
%files devel
%defattr(-,root,root)
%{_mingw32_libdir}/libiconv.a
%{_mingw32_includedir}/iconv.h
%changelog