packages: gdb/gdb.spec - python subpackage
glen
glen at pld-linux.org
Tue Dec 8 08:16:12 CET 2009
Author: glen Date: Tue Dec 8 07:16:12 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- python subpackage
---- Files affected:
packages/gdb:
gdb.spec (1.119 -> 1.120)
---- Diffs:
================================================================
Index: packages/gdb/gdb.spec
diff -u packages/gdb/gdb.spec:1.119 packages/gdb/gdb.spec:1.120
--- packages/gdb/gdb.spec:1.119 Tue Dec 8 07:55:56 2009
+++ packages/gdb/gdb.spec Tue Dec 8 08:16:07 2009
@@ -12,7 +12,7 @@
%bcond_without python # build without python support
%define snap 20090930
-%define rel 0.3
+%define rel 0.4
Summary: A GNU source-level debugger for C, C++ and Fortran
Summary(de.UTF-8): Symbolischer Debugger für C und andere Sprachen
Summary(es.UTF-8): Depurador de programas C y otras lenguajes
@@ -164,12 +164,14 @@
BuildRequires: flex
BuildRequires: libtool
BuildRequires: ncurses-devel >= 5.2
-BuildRequires: python-devel
BuildRequires: readline-devel >= 6.0
-BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
BuildRequires: texinfo >= 4.4
BuildRequires: zlib-devel
-%{?with_python:Requires: python-libs}
+%if %{with python}
+BuildRequires: python-devel
+BuildRequires: rpm-pythonprov
+%endif
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -237,6 +239,15 @@
different machine than the one which is running the program being
debugged.
+%package -n python-%{name}
+Summary: GDB Python bindings
+Summary(pl.UTF-8): Wiązania PackageKit dla Pythona
+Group: Development/Languages/Python
+Requires: python-libs
+
+%description -n python-%{name}
+GDB Python bindings.
+
%package lib
Summary: GDB in the form of a static library
Summary(pl.UTF-8): GDB w postaci biblioteki statycznej
@@ -449,9 +460,11 @@
< libstdcxxpython/hook.in \
> $LIBPATH/$(basename %{_prefix}/%{_lib}/libstdc++.so.6.*)-gdb.py
done
-test ! -e $RPM_BUILD_ROOT%{_datadir}/gdb/python/libstdcxx
-install -d $RPM_BUILD_ROOT%{_datadir}/gdb/python
-cp -a libstdcxxpython/libstdcxx $RPM_BUILD_ROOT%{_datadir}/gdb/python/libstdcxx
+cp -a libstdcxxpython/libstdcxx $RPM_BUILD_ROOT%{py_sitescriptdir}
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_postclean
%endif
# Remove the files that are part of a gdb build but that are owned and provided by other packages.
@@ -494,9 +507,23 @@
%{_infodir}/stabs.info*
%if %{with python}
-%{py_sitescriptdir}/gdb
+%files -n python-%{name}
+%defattr(644,root,root,755)
+%dir %{py_sitescriptdir}/gdb
+%{py_sitescriptdir}/gdb/*.py[co]
+%dir %{py_sitescriptdir}/gdb/command
+%{py_sitescriptdir}/gdb/command/*.py[co]
+%dir %{py_sitescriptdir}/gdb/function
+%{py_sitescriptdir}/gdb/function/*.py[co]
+
+# likely oneday gcc.spec will provide this
+%dir %{py_sitescriptdir}/libstdcxx
+%{py_sitescriptdir}/libstdcxx/*.py[co]
+%dir %{py_sitescriptdir}/libstdcxx/v6
+%{py_sitescriptdir}/libstdcxx/v6/*.py[co]
+
+# or should we include it in base package?
%{_datadir}/gdb/auto-load
-%{_datadir}/gdb/python
%endif
%files gdbserver
@@ -514,6 +541,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.120 2009/12/08 07:16:07 glen
+- python subpackage
+
Revision 1.119 2009/12/08 06:55:56 glen
- notes about updating patches
- gdbtui linked to gdb
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gdb/gdb.spec?r1=1.119&r2=1.120&f=u
More information about the pld-cvs-commit
mailing list