split gdb pretty printers into a separate subpackage

f41
David Tardon 9 years ago
parent ffa844ad02
commit f8aec1434a

@ -1,5 +1,8 @@
%global apiversion 0.0 %global apiversion 0.0
%global debug_package %{nil}
%global __debug_package 1
Name: librevenge Name: librevenge
Version: 0.0.3 Version: 0.0.3
Release: 2%{?dist} Release: 2%{?dist}
@ -37,6 +40,26 @@ BuildArch: noarch
%description doc %description doc
The %{name}-doc package contains documentation files for %{name}. The %{name}-doc package contains documentation files for %{name}.
%package gdb
Summary: gdb pretty printers for %{name}
Requires: gdb
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name}-debuginfo%{?_isa} = %{version}-%{release}
%description gdb
The %{name}-devel package contains gdb pretty printers that help with
debugging applications that use %{name}.
%package debuginfo
Summary: Debug information for package %{name}
AutoReqProv: 0
Recommends: %{name}-gdb%{?_isa} = %{version}-%{release}
%description debuginfo
This package provides debug information for package %{name}.
Debug information is useful when developing applications that use this
package or when debugging this package.
%prep %prep
%autosetup -p1 %autosetup -p1
@ -76,14 +99,18 @@ make %{?_smp_mflags} check
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc %{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
%{_libdir}/pkgconfig/%{name}-generators-%{apiversion}.pc %{_libdir}/pkgconfig/%{name}-generators-%{apiversion}.pc
%{_libdir}/pkgconfig/%{name}-stream-%{apiversion}.pc %{_libdir}/pkgconfig/%{name}-stream-%{apiversion}.pc
%files doc
%doc COPYING.*
%doc docs/doxygen/html
%files gdb
%{_datadir}/gdb/auto-load%{_libdir}/%{name}-%{apiversion}.py* %{_datadir}/gdb/auto-load%{_libdir}/%{name}-%{apiversion}.py*
%{_datadir}/gdb/auto-load%{_libdir}/%{name}-stream-%{apiversion}.py* %{_datadir}/gdb/auto-load%{_libdir}/%{name}-stream-%{apiversion}.py*
%dir %{_datadir}/%{name} %dir %{_datadir}/%{name}
%{_datadir}/%{name}/python %{_datadir}/%{name}/python
%files doc %files debuginfo -f debugfiles.list
%doc COPYING.*
%doc docs/doxygen/html
%changelog %changelog
* Sat Dec 26 2015 David Tardon <dtardon@redhat.com> - 0.0.3-2 * Sat Dec 26 2015 David Tardon <dtardon@redhat.com> - 0.0.3-2

Loading…
Cancel
Save