Skip to content

Instantly share code, notes, and snippets.

@halton
Forked from KeithYue/nacl-toochain.spec
Created April 12, 2013 04:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halton/5369372 to your computer and use it in GitHub Desktop.
Save halton/5369372 to your computer and use it in GitHub Desktop.
Name:nacl-toolchain
Summary: Nacl toolchain
Version: 0.1
Release: 1
Source: nacl-toolchain.tar.gz
Url:http://www.chromium.org/nativeclient/how-tos/building-and-testing-gcc-and-gnu-binutils
Group: System/Libraries
License: GNU Public License
# Now that not all the dependencies are installed on Tizen, we just install the nacl, complete the dependencies in the future
AutoReqProv:no
Requires: gcc-multilib g++-multilib libSDL-devel texinfo libcrypto++-dev libopenssl-devel ncurses-devel m4 libelf-devel
%description
a GNU-based toolchain with customized versions of gcc, binutils and gdb (32-bit x86 only)
%prep
%setup -q -n %{name}-%{version}
%build
cd tools/
make clean build-with-newlib -j16
%install
install -d $RPM_BUILD_ROOT/opt/%{name}
cd $RPM_BUILD_DIR/%{name}-%{version}/tools
cp -R out BUILD $RPM_BUILD_ROOT/opt/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/opt/%{name}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment