Revert "packaging: Add gdb packages" submit/tizen_base/20200121.014816
authorDongkyun Son <dongkyun.s@samsung.com>
Mon, 20 Jan 2020 12:18:22 +0000 (21:18 +0900)
committerDongkyun Son <dongkyun.s@samsung.com>
Mon, 20 Jan 2020 12:22:05 +0000 (21:22 +0900)
This reverts commit 1173d36d74e6a3f37e14eb74fe462b2fe21097b5.

Change-Id: Ib806f5d5937aaca855c24389e18861870e26bf81

packaging/binutils-aarch64.spec
packaging/binutils-armv7hl.spec
packaging/binutils-armv7l.spec
packaging/binutils.spec

index 4114cfe..1e0ad2d 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,28 +80,6 @@ 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}
@@ -119,7 +97,7 @@ cd build-dir
 ../configure \
        --prefix=%{_prefix} --libdir=%{_libdir} \
        --infodir=%{_infodir} --mandir=%{_mandir} \
-       --with-bugurl=https://bugs.tizen.org/ \
+       --with-bugurl=http://bugs.tizen.org/ \
        --with-sysroot=/ \
        --disable-nls \
        --with-separate-debug-dir=%{_prefix}/lib/debug \
@@ -138,12 +116,7 @@ cd build-dir
        --enable-plugins \
        --enable-gold \
        --enable-shared \
-       --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
+       --enable-new-dtags
 
 make %{?_smp_mflags}
 
@@ -173,6 +146,9 @@ 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
@@ -188,7 +164,6 @@ 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
@@ -206,15 +181,6 @@ 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 bb9823c..8431443 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,28 +80,6 @@ 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}
@@ -119,7 +97,7 @@ cd build-dir
 ../configure \
        --prefix=%{_prefix} --libdir=%{_libdir} \
        --infodir=%{_infodir} --mandir=%{_mandir} \
-       --with-bugurl=https://bugs.tizen.org/ \
+       --with-bugurl=http://bugs.tizen.org/ \
        --with-sysroot=/ \
        --disable-nls \
        --with-separate-debug-dir=%{_prefix}/lib/debug \
@@ -138,12 +116,7 @@ cd build-dir
        --enable-plugins \
        --enable-gold \
        --enable-shared \
-       --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
+       --enable-new-dtags
 
 make %{?_smp_mflags}
 
@@ -173,6 +146,9 @@ 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
@@ -188,7 +164,6 @@ 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
@@ -206,15 +181,6 @@ 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 3d72059..fb0e245 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,28 +80,6 @@ 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}
@@ -119,7 +97,7 @@ cd build-dir
 ../configure \
        --prefix=%{_prefix} --libdir=%{_libdir} \
        --infodir=%{_infodir} --mandir=%{_mandir} \
-       --with-bugurl=https://bugs.tizen.org/ \
+       --with-bugurl=http://bugs.tizen.org/ \
        --with-sysroot=/ \
        --disable-nls \
        --with-separate-debug-dir=%{_prefix}/lib/debug \
@@ -138,12 +116,7 @@ cd build-dir
        --enable-plugins \
        --enable-gold \
        --enable-shared \
-       --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
+       --enable-new-dtags
 
 make %{?_smp_mflags}
 
@@ -173,6 +146,9 @@ 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
@@ -188,7 +164,6 @@ 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
@@ -206,15 +181,6 @@ 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 78051e2..abaa2b5 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,28 +77,6 @@ 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}
@@ -116,7 +94,7 @@ cd build-dir
 ../configure \
        --prefix=%{_prefix} --libdir=%{_libdir} \
        --infodir=%{_infodir} --mandir=%{_mandir} \
-       --with-bugurl=https://bugs.tizen.org/ \
+       --with-bugurl=http://bugs.tizen.org/ \
        --with-sysroot=/ \
        --disable-nls \
        --with-separate-debug-dir=%{_prefix}/lib/debug \
@@ -135,12 +113,7 @@ cd build-dir
        --enable-plugins \
        --enable-gold \
        --enable-shared \
-       --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
+       --enable-new-dtags
 
 make %{?_smp_mflags}
 
@@ -170,6 +143,9 @@ 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
@@ -185,7 +161,6 @@ 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
@@ -203,15 +178,6 @@ 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