BuildRequires: makeinfo
BuildRequires: bison
BuildRequires: flex
+BuildRequires: expat-devel
BuildRequires: ncurses-devel
BuildRequires: zlib-devel
BuildRequires: gcc-c++
%if 0%{?binutils_run_tests}
BuildRequires: dejagnu
-BuildRequires: gdb
BuildRequires: glibc-devel-static
%endif
Version: 2.33.1
build programs which use the GNU BFD library, which is part of
binutils.
+%{!?cross:
+%package -n gdb
+Summary: A GNU source-level debugger for C, C++, Java and other languages
+License: GPL-3.0+
+Group: Development/Building
+Requires: python
+
+%description -n gdb
+GDB, the GNU debugger, allows you to debug programs written in C, C++,
+Java, and other languages, by executing them in a controlled fashion
+and printing their data.
+}
+%package -n gdb-server
+Summary: A standalone server for GDB (the GNU source-level debugger)
+
+%description -n gdb-server
+GDB, the GNU debugger, allows you to debug programs written in C, C++,
+Java, and other languages, by executing them in a controlled fashion
+and printing their data.
+
+This package provides a program that allows you to run GDB on a different machine than the one
+which is running the program being debugged.
%prep
%setup -q -n binutils-%{version}
../configure \
--prefix=%{_prefix} --libdir=%{_libdir} \
--infodir=%{_infodir} --mandir=%{_mandir} \
- --with-bugurl=http://bugs.tizen.org/ \
+ --with-bugurl=https://bugs.tizen.org/ \
--with-sysroot=/ \
--disable-nls \
--with-separate-debug-dir=%{_prefix}/lib/debug \
--enable-plugins \
--enable-gold \
--enable-shared \
- --enable-new-dtags
+ --enable-new-dtags \
+ --with-gdb-datadir=%{_datadir}/gdb \
+ --enable-gdb-build-warnings=,-Wno-unused \
+ --with-separate-debug-dir=/usr/lib/debug \
+ --disable-sim \
+ --with-expat
make %{?_smp_mflags}
# Remove unwanted files to shut up rpm
%{remove_docs}
-rm -rf %{buildroot}%{_bindir}/gcore
-rm -rf %{buildroot}%{_bindir}/gdb*
-rm -rf %{buildroot}%{_datadir}/gdb
rm -rf %{buildroot}%{_libdir}/lib{bfd,opcodes,inproctrace}.{so,la}
%{?cross:
rm -rf %{buildroot}%{_prefix}/%{target_arch}/lib/ldscripts
%{_bindir}/*
%{_prefix}/%{target_arch}/bin/*
%{!?cross:
+%exclude %{_bindir}/gdb*
%exclude %{_bindir}/ld.gold
%exclude %{_prefix}/%{target_arch}/bin/ld.gold
%{_libdir}/*.so
%defattr(-,root,root)
%{_bindir}/ld.gold
%{_prefix}/%{target_arch}/bin/ld.gold
+
+%files -n gdb
+%{_datadir}/gdb
+%{_bindir}/gcore
+%{_bindir}/gdb
+%{_bindir}/gdb-add-index
+
+%files -n gdb-server
+%{_bindir}/gdbserver
}
%changelog
BuildRequires: makeinfo
BuildRequires: bison
BuildRequires: flex
+BuildRequires: expat-devel
BuildRequires: ncurses-devel
BuildRequires: zlib-devel
BuildRequires: gcc-c++
%if 0%{?binutils_run_tests}
BuildRequires: dejagnu
-BuildRequires: gdb
BuildRequires: glibc-devel-static
%endif
Version: 2.33.1
build programs which use the GNU BFD library, which is part of
binutils.
+%{!?cross:
+%package -n gdb
+Summary: A GNU source-level debugger for C, C++, Java and other languages
+License: GPL-3.0+
+Group: Development/Building
+Requires: python
+
+%description -n gdb
+GDB, the GNU debugger, allows you to debug programs written in C, C++,
+Java, and other languages, by executing them in a controlled fashion
+and printing their data.
+}
+%package -n gdb-server
+Summary: A standalone server for GDB (the GNU source-level debugger)
+
+%description -n gdb-server
+GDB, the GNU debugger, allows you to debug programs written in C, C++,
+Java, and other languages, by executing them in a controlled fashion
+and printing their data.
+
+This package provides a program that allows you to run GDB on a different machine than the one
+which is running the program being debugged.
%prep
%setup -q -n binutils-%{version}
../configure \
--prefix=%{_prefix} --libdir=%{_libdir} \
--infodir=%{_infodir} --mandir=%{_mandir} \
- --with-bugurl=http://bugs.tizen.org/ \
+ --with-bugurl=https://bugs.tizen.org/ \
--with-sysroot=/ \
--disable-nls \
--with-separate-debug-dir=%{_prefix}/lib/debug \
--enable-plugins \
--enable-gold \
--enable-shared \
- --enable-new-dtags
+ --enable-new-dtags \
+ --with-gdb-datadir=%{_datadir}/gdb \
+ --enable-gdb-build-warnings=,-Wno-unused \
+ --with-separate-debug-dir=/usr/lib/debug \
+ --disable-sim \
+ --with-expat
make %{?_smp_mflags}
# Remove unwanted files to shut up rpm
%{remove_docs}
-rm -rf %{buildroot}%{_bindir}/gcore
-rm -rf %{buildroot}%{_bindir}/gdb*
-rm -rf %{buildroot}%{_datadir}/gdb
rm -rf %{buildroot}%{_libdir}/lib{bfd,opcodes,inproctrace}.{so,la}
%{?cross:
rm -rf %{buildroot}%{_prefix}/%{target_arch}/lib/ldscripts
%{_bindir}/*
%{_prefix}/%{target_arch}/bin/*
%{!?cross:
+%exclude %{_bindir}/gdb*
%exclude %{_bindir}/ld.gold
%exclude %{_prefix}/%{target_arch}/bin/ld.gold
%{_libdir}/*.so
%defattr(-,root,root)
%{_bindir}/ld.gold
%{_prefix}/%{target_arch}/bin/ld.gold
+
+%files -n gdb
+%{_datadir}/gdb
+%{_bindir}/gcore
+%{_bindir}/gdb
+%{_bindir}/gdb-add-index
+
+%files -n gdb-server
+%{_bindir}/gdbserver
}
%changelog
BuildRequires: makeinfo
BuildRequires: bison
BuildRequires: flex
+BuildRequires: expat-devel
BuildRequires: ncurses-devel
BuildRequires: zlib-devel
BuildRequires: gcc-c++
%if 0%{?binutils_run_tests}
BuildRequires: dejagnu
-BuildRequires: gdb
BuildRequires: glibc-devel-static
%endif
Version: 2.33.1
build programs which use the GNU BFD library, which is part of
binutils.
+%{!?cross:
+%package -n gdb
+Summary: A GNU source-level debugger for C, C++, Java and other languages
+License: GPL-3.0+
+Group: Development/Building
+Requires: python
+
+%description -n gdb
+GDB, the GNU debugger, allows you to debug programs written in C, C++,
+Java, and other languages, by executing them in a controlled fashion
+and printing their data.
+}
+%package -n gdb-server
+Summary: A standalone server for GDB (the GNU source-level debugger)
+
+%description -n gdb-server
+GDB, the GNU debugger, allows you to debug programs written in C, C++,
+Java, and other languages, by executing them in a controlled fashion
+and printing their data.
+
+This package provides a program that allows you to run GDB on a different machine than the one
+which is running the program being debugged.
%prep
%setup -q -n binutils-%{version}
../configure \
--prefix=%{_prefix} --libdir=%{_libdir} \
--infodir=%{_infodir} --mandir=%{_mandir} \
- --with-bugurl=http://bugs.tizen.org/ \
+ --with-bugurl=https://bugs.tizen.org/ \
--with-sysroot=/ \
--disable-nls \
--with-separate-debug-dir=%{_prefix}/lib/debug \
--enable-plugins \
--enable-gold \
--enable-shared \
- --enable-new-dtags
+ --enable-new-dtags \
+ --with-gdb-datadir=%{_datadir}/gdb \
+ --enable-gdb-build-warnings=,-Wno-unused \
+ --with-separate-debug-dir=/usr/lib/debug \
+ --disable-sim \
+ --with-expat
make %{?_smp_mflags}
# Remove unwanted files to shut up rpm
%{remove_docs}
-rm -rf %{buildroot}%{_bindir}/gcore
-rm -rf %{buildroot}%{_bindir}/gdb*
-rm -rf %{buildroot}%{_datadir}/gdb
rm -rf %{buildroot}%{_libdir}/lib{bfd,opcodes,inproctrace}.{so,la}
%{?cross:
rm -rf %{buildroot}%{_prefix}/%{target_arch}/lib/ldscripts
%{_bindir}/*
%{_prefix}/%{target_arch}/bin/*
%{!?cross:
+%exclude %{_bindir}/gdb*
%exclude %{_bindir}/ld.gold
%exclude %{_prefix}/%{target_arch}/bin/ld.gold
%{_libdir}/*.so
%defattr(-,root,root)
%{_bindir}/ld.gold
%{_prefix}/%{target_arch}/bin/ld.gold
+
+%files -n gdb
+%{_datadir}/gdb
+%{_bindir}/gcore
+%{_bindir}/gdb
+%{_bindir}/gdb-add-index
+
+%files -n gdb-server
+%{_bindir}/gdbserver
}
%changelog
BuildRequires: makeinfo
BuildRequires: bison
BuildRequires: flex
+BuildRequires: expat-devel
BuildRequires: ncurses-devel
BuildRequires: zlib-devel
BuildRequires: gcc-c++
%if 0%{?binutils_run_tests}
BuildRequires: dejagnu
-BuildRequires: gdb
BuildRequires: glibc-devel-static
%endif
Version: 2.33.1
build programs which use the GNU BFD library, which is part of
binutils.
+%{!?cross:
+%package -n gdb
+Summary: A GNU source-level debugger for C, C++, Java and other languages
+License: GPL-3.0+
+Group: Development/Building
+Requires: python
+
+%description -n gdb
+GDB, the GNU debugger, allows you to debug programs written in C, C++,
+Java, and other languages, by executing them in a controlled fashion
+and printing their data.
+}
+%package -n gdb-server
+Summary: A standalone server for GDB (the GNU source-level debugger)
+
+%description -n gdb-server
+GDB, the GNU debugger, allows you to debug programs written in C, C++,
+Java, and other languages, by executing them in a controlled fashion
+and printing their data.
+
+This package provides a program that allows you to run GDB on a different machine than the one
+which is running the program being debugged.
%prep
%setup -q -n binutils-%{version}
../configure \
--prefix=%{_prefix} --libdir=%{_libdir} \
--infodir=%{_infodir} --mandir=%{_mandir} \
- --with-bugurl=http://bugs.tizen.org/ \
+ --with-bugurl=https://bugs.tizen.org/ \
--with-sysroot=/ \
--disable-nls \
--with-separate-debug-dir=%{_prefix}/lib/debug \
--enable-plugins \
--enable-gold \
--enable-shared \
- --enable-new-dtags
+ --enable-new-dtags \
+ --with-gdb-datadir=%{_datadir}/gdb \
+ --enable-gdb-build-warnings=,-Wno-unused \
+ --with-separate-debug-dir=/usr/lib/debug \
+ --disable-sim \
+ --with-expat
make %{?_smp_mflags}
# Remove unwanted files to shut up rpm
%{remove_docs}
-rm -rf %{buildroot}%{_bindir}/gcore
-rm -rf %{buildroot}%{_bindir}/gdb*
-rm -rf %{buildroot}%{_datadir}/gdb
rm -rf %{buildroot}%{_libdir}/lib{bfd,opcodes,inproctrace}.{so,la}
%{?cross:
rm -rf %{buildroot}%{_prefix}/%{target_arch}/lib/ldscripts
%{_bindir}/*
%{_prefix}/%{target_arch}/bin/*
%{!?cross:
+%exclude %{_bindir}/gdb*
%exclude %{_bindir}/ld.gold
%exclude %{_prefix}/%{target_arch}/bin/ld.gold
%{_libdir}/*.so
%defattr(-,root,root)
%{_bindir}/ld.gold
%{_prefix}/%{target_arch}/bin/ld.gold
+
+%files -n gdb
+%{_datadir}/gdb
+%{_bindir}/gcore
+%{_bindir}/gdb
+%{_bindir}/gdb-add-index
+
+%files -n gdb-server
+%{_bindir}/gdbserver
}
%changelog