File zephyr-crosstool-ng.spec of Package zephyr-crosstool-ng

Name:           zephyr-crosstool-ng
Version:        0
Release:        0
Summary:        Zephyr fork of crosstool-NG
License:        GPL-2.0
URL:            https://github.com/zephyrproject-rtos/crosstool-ng
Source0:        %{name}-%{version}.tar.gz

Patch0:         0001-Enable-CC_LANG_ADA-for-BARE_METAL.patch
Patch1:         0002-Add-disable-libada-in-CC_GCC_EXTRA_CONFIG_ARRAY.patch
Patch2:         0003-Fix-gdbinit-sys-path.patch

Source99:       %{name}.rpmlintrc

BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  bison
BuildRequires:  fdupes
BuildRequires:  flex
BuildRequires:  gperf
BuildRequires:  help2man
BuildRequires:  libtool
BuildRequires:  makeinfo
BuildRequires:  ncurses-devel
BuildRequires:  unzip
BuildRequires:  wget

# needed to set cxx11
BuildRequires:  gcc-c++ 

Requires:       bzip2
Requires:       gcc
Requires:       gcc-c++
Requires:       glibc-devel-static
Requires:       gzip
Requires:       m4
Requires:       wget
Requires:       xz

Conflicts: crosstool-ng

%description
Zephyr fork of crosstool-NG - for building Zephyr GNU toolchains 

%prep
%autosetup -p1

%build
./bootstrap
%configure \
    --docdir=%{_docdir}/crosstool-ng
%make_build

%install
%make_install
%fdupes %{buildroot}%{_datadir}/crosstool-ng

%files
%license COPYING
%{_bindir}/ct-ng
%{_datadir}/crosstool-ng
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions/
%{_datadir}/bash-completion/completions/ct-ng
%{_docdir}/crosstool-ng
%{_libexecdir}/crosstool-ng
%{_mandir}/man1/ct-ng.1.gz

%changelog
openSUSE Build Service is sponsored by