packaging: Add gdb packages
authorSlava Barinov <v.barinov@samsung.com>
Mon, 16 Dec 2019 11:19:19 +0000 (14:19 +0300)
committerSlava Barinov <v.barinov@samsung.com>
Tue, 17 Dec 2019 08:27:07 +0000 (11:27 +0300)
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
packaging/binutils-aarch64.spec
packaging/binutils-armv7hl.spec
packaging/binutils-armv7l.spec
packaging/binutils.spec

index 1e0ad2d..4114cfe 100644 (file)
@@ -34,12 +34,12 @@ Name:           binutils%{?cross:-%{cross}}
 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
@@ -80,6 +80,28 @@ This package includes header files and static libraries necessary to
 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}
@@ -97,7 +119,7 @@ cd build-dir
 ../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 \
@@ -116,7 +138,12 @@ cd build-dir
        --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}
 
@@ -146,9 +173,6 @@ install -m 644 ../include/libiberty.h %{buildroot}%{_prefix}/include
 
 # 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
@@ -164,6 +188,7 @@ rm -rf %{buildroot}%{_datadir}
 %{_bindir}/*
 %{_prefix}/%{target_arch}/bin/*
 %{!?cross:
+%exclude %{_bindir}/gdb*
 %exclude %{_bindir}/ld.gold
 %exclude %{_prefix}/%{target_arch}/bin/ld.gold
 %{_libdir}/*.so
@@ -181,6 +206,15 @@ rm -rf %{buildroot}%{_datadir}
 %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
index 8431443..bb9823c 100644 (file)
@@ -34,12 +34,12 @@ Name:           binutils%{?cross:-%{cross}}
 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
@@ -80,6 +80,28 @@ This package includes header files and static libraries necessary to
 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}
@@ -97,7 +119,7 @@ cd build-dir
 ../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 \
@@ -116,7 +138,12 @@ cd build-dir
        --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}
 
@@ -146,9 +173,6 @@ install -m 644 ../include/libiberty.h %{buildroot}%{_prefix}/include
 
 # 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
@@ -164,6 +188,7 @@ rm -rf %{buildroot}%{_datadir}
 %{_bindir}/*
 %{_prefix}/%{target_arch}/bin/*
 %{!?cross:
+%exclude %{_bindir}/gdb*
 %exclude %{_bindir}/ld.gold
 %exclude %{_prefix}/%{target_arch}/bin/ld.gold
 %{_libdir}/*.so
@@ -181,6 +206,15 @@ rm -rf %{buildroot}%{_datadir}
 %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
index fb0e245..3d72059 100644 (file)
@@ -34,12 +34,12 @@ Name:           binutils%{?cross:-%{cross}}
 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
@@ -80,6 +80,28 @@ This package includes header files and static libraries necessary to
 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}
@@ -97,7 +119,7 @@ cd build-dir
 ../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 \
@@ -116,7 +138,12 @@ cd build-dir
        --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}
 
@@ -146,9 +173,6 @@ install -m 644 ../include/libiberty.h %{buildroot}%{_prefix}/include
 
 # 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
@@ -164,6 +188,7 @@ rm -rf %{buildroot}%{_datadir}
 %{_bindir}/*
 %{_prefix}/%{target_arch}/bin/*
 %{!?cross:
+%exclude %{_bindir}/gdb*
 %exclude %{_bindir}/ld.gold
 %exclude %{_prefix}/%{target_arch}/bin/ld.gold
 %{_libdir}/*.so
@@ -181,6 +206,15 @@ rm -rf %{buildroot}%{_datadir}
 %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
index abaa2b5..78051e2 100644 (file)
@@ -31,12 +31,12 @@ Name:           binutils%{?cross:-%{cross}}
 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
@@ -77,6 +77,28 @@ This package includes header files and static libraries necessary to
 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}
@@ -94,7 +116,7 @@ cd build-dir
 ../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 \
@@ -113,7 +135,12 @@ cd build-dir
        --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}
 
@@ -143,9 +170,6 @@ install -m 644 ../include/libiberty.h %{buildroot}%{_prefix}/include
 
 # 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
@@ -161,6 +185,7 @@ rm -rf %{buildroot}%{_datadir}
 %{_bindir}/*
 %{_prefix}/%{target_arch}/bin/*
 %{!?cross:
+%exclude %{_bindir}/gdb*
 %exclude %{_bindir}/ld.gold
 %exclude %{_prefix}/%{target_arch}/bin/ld.gold
 %{_libdir}/*.so
@@ -178,6 +203,15 @@ rm -rf %{buildroot}%{_datadir}
 %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