File mingw32-win_iconv.spec of Package mingw32-win_iconv
#
# spec file for package mingw32-win_iconv
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: mingw32-win_iconv
Version: 0.0.3
Release: 0
Summary: An implementation of iconv using win32 API
License: SUSE-Public-Domain
Group: Development/Libraries
Url: http://code.google.com/p/win-iconv/
Source: http://win-iconv.googlecode.com/files/win-iconv-%{version}.tar.bz2
#!BuildIgnore: post-build-checks
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-filesystem
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%_mingw32_package_header_debug
BuildArch: noarch
%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 %{buildroot}%{_mingw32_bindir}
install -m 0755 win_iconv.exe %{buildroot}%{_mingw32_bindir}/
install -m 0755 win_iconv.exe %{buildroot}%{_mingw32_bindir}/iconv.exe
mkdir -p %{buildroot}%{_mingw32_libdir}
install -m 0644 libiconv.a %{buildroot}%{_mingw32_libdir}/
mkdir -p %{buildroot}%{_mingw32_includedir}
install -m 0644 iconv.h %{buildroot}%{_mingw32_includedir}/
%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