Skip to content

Instantly share code, notes, and snippets.

@KeithYue
Last active December 16, 2015 02:19
Show Gist options
  • Save KeithYue/5361998 to your computer and use it in GitHub Desktop.
Save KeithYue/5361998 to your computer and use it in GitHub Desktop.
nacl-toochain sepc file
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