rosbe-data-1.4-1kkr2009.0.spec
%define distname RosBE-Unix
%define name rosbe-data
%define version 1.4
%define release %mkrel 1
Summary: MinGW runtime and w32api for ReactOS Build Environment
Summary(ja): ReactOSビルド環境向けのMinGWランタイムとw32api
Name: %{name}
Version: %{version}
Release: %{release}
Source: http://downloads.sourceforge.net/reactos/%{distname}-%{version}.tar.bz2
# Size : 39,914,026
# MD5 : fd63e6ad11b2bc64c995ce6a6e7bc849
# SHA-1 : 287e562a5d1c5589cc63a9b1a20dc98149e4f3ff
URL: http://www.reactos.org/wiki/index.php/Build_Environment
License: Public Domain-like
Group: Development/Other
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch: noarch
%description
RosBE is an official Build Environment to build ReactOS.
This package provides MinGW runtime and w32api for RosBE.
%description -l ja
RosBEはReactOSをビルドするための公式のビルド環境です。
このパッケージはRosBE向けのMinGWランタイムとw32apiを提供します。
%prep
%setup -q -n %{distname}-%{version}
# disable user check
%{__sed} -i 's:\[ ! "`whoami`" = "root" \]:false:' scripts/rosbelibrary.sh
# make non-interactive / set directory
%{__sed} -i \
-e 's:read -p "\[$DEFAULT_INSTALL_DIR\] " installdir:installdir="%{buildroot}/%{_prefix}/RosBE":' \
-e 's:^read$::' RosBE-Builder.sh
# process mingw-runtime and w32api only
%{__sed} -i \
-e 's:\( process_cpucount=\)true:\1false:' \
-e 's:\( process_binutils=\)true:\1false:' \
-e 's:\( process_gcc=\)true:\1false:' \
-e 's:\( process_make=\)true:\1false:' \
-e 's:\( process_nasm=\)true:\1false:' \
-e 's:\( process_buildtime=\)true:\1false:' \
-e 's:\( process_scut=\)true:\1false:' \
-e 's:\(CPUCOUNT=\).*:\1:' \
-e 's:cd "$SOURCEDIR":exit:' RosBE-Builder.sh
# don't detect existing RosBE
%{__sed} -i 's:\[ -f "/usr/RosBE/RosBE-Version" \]:false:' RosBE-Builder.sh
# don't check unused tools
%{__sed} -i 's:\(NEEDED_TOOLS=\).*:\1:' RosBE-Builder.sh
%install
%{__rm} %{buildroot} -fr
./RosBE-Builder.sh
%clean
%{__rm} %{buildroot} -fr
%files
%defattr(-, root, root)
%{_prefix}/RosBE/
%changelog
* Wed Feb 18 2009 kakurasan <kakurasan AT gmail DOT com> 1.4-1kkr2009.0
- initial build