Disable gdb pretty printers when building for flatpak

f41
Kalev Lember 6 years ago
parent 7161975986
commit 9515addf4f

@ -2,7 +2,7 @@
Name: librevenge
Version: 0.0.4
Release: 13%{?dist}
Release: 14%{?dist}
Summary: A base library for writing document import filters
# src/lib/RVNGOLEStream.{h,cpp} are BSD
@ -36,6 +36,7 @@ BuildArch: noarch
%description doc
The %{name}-doc package contains documentation files for %{name}.
%if ! 0%{?flatpak}
%package gdb
Summary: gdb pretty printers for %{name}
Requires: gdb%{?_isa}
@ -46,12 +47,22 @@ Supplements: %{name}-debuginfo%{?_isa} = %{version}-%{release}
%description gdb
The %{name}-devel package contains gdb pretty printers that help with
debugging applications that use %{name}.
%endif
%prep
%autosetup -p1
%build
%configure --disable-silent-rules --disable-static --disable-werror --enable-pretty-printers
%configure \
--disable-silent-rules \
--disable-static \
--disable-werror \
%if 0%{?flatpak}
--disable-pretty-printers
%else
--enable-pretty-printers
%endif
sed -i \
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
@ -91,13 +102,18 @@ make %{?_smp_mflags} check
%license COPYING.*
%doc docs/doxygen/html
%if ! 0%{?flatpak}
%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
%endif
%changelog
* Wed Jun 19 2019 Kalev Lember <klember@redhat.com> - 0.0.4-14
- Disable gdb pretty printers when building for flatpak
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

Loading…
Cancel
Save