diff --git a/librevenge.spec b/librevenge.spec index 70ac2e5..209c5e8 100644 --- a/librevenge.spec +++ b/librevenge.spec @@ -1,5 +1,8 @@ %global apiversion 0.0 +%global debug_package %{nil} +%global __debug_package 1 + Name: librevenge Version: 0.0.3 Release: 2%{?dist} @@ -37,6 +40,26 @@ BuildArch: noarch %description doc 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 %autosetup -p1 @@ -76,14 +99,18 @@ make %{?_smp_mflags} check %{_libdir}/pkgconfig/%{name}-%{apiversion}.pc %{_libdir}/pkgconfig/%{name}-generators-%{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}-stream-%{apiversion}.py* %dir %{_datadir}/%{name} %{_datadir}/%{name}/python -%files doc -%doc COPYING.* -%doc docs/doxygen/html +%files debuginfo -f debugfiles.list %changelog * Sat Dec 26 2015 David Tardon - 0.0.3-2