92cc02
%global apiversion 0.0
92cc02
92cc02
Name: librevenge
92cc02
Version: 0.0.4
92cc02
Release: 13%{?dist}
92cc02
Summary: A base library for writing document import filters
92cc02
92cc02
# src/lib/RVNGOLEStream.{h,cpp} are BSD
92cc02
License: (LGPLv2+ or MPLv2.0) and BSD
92cc02
URL: http://sourceforge.net/p/libwpd/wiki/librevenge/
92cc02
Source: http://downloads.sourceforge.net/libwpd/%{name}-%{version}.tar.xz
92cc02
92cc02
BuildRequires: boost-devel
92cc02
BuildRequires: doxygen
92cc02
BuildRequires: pkgconfig(cppunit)
92cc02
BuildRequires: pkgconfig(zlib)
92cc02
92cc02
%description
92cc02
%{name} is a base library for writing document import filters. It has
92cc02
interfaces for text documents, vector graphics, spreadsheets and
92cc02
presentations.
92cc02
92cc02
%package devel
92cc02
Summary: Development files for %{name}
92cc02
Requires: %{name}%{?_isa} = %{version}-%{release}
92cc02
92cc02
%description devel
92cc02
The %{name}-devel package contains libraries and header files for
92cc02
developing applications that use %{name}.
92cc02
92cc02
%package doc
92cc02
Summary: Documentation of %{name} API
92cc02
BuildArch: noarch
92cc02
92cc02
%description doc
92cc02
The %{name}-doc package contains documentation files for %{name}.
92cc02
92cc02
%package gdb
92cc02
Summary: gdb pretty printers for %{name}
92cc02
Recommends: gdb
92cc02
Requires: python3-six
92cc02
Requires: %{name}%{?_isa} = %{version}-%{release}
92cc02
Supplements: %{name}-debuginfo%{?_isa} = %{version}-%{release}
92cc02
92cc02
%description gdb
92cc02
The %{name}-devel package contains gdb pretty printers that help with
92cc02
debugging applications that use %{name}.
92cc02
92cc02
%prep
92cc02
%autosetup -p1
92cc02
92cc02
%build
92cc02
%if 0%{?flatpak:1}
92cc02
%configure --disable-silent-rules --disable-static --disable-werror --enable-pretty-printers --with-gdb-data-dir=/app/share/gdb
92cc02
%else
92cc02
%configure --disable-silent-rules --disable-static --disable-werror --enable-pretty-printers
92cc02
%endif
92cc02
sed -i \
92cc02
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
92cc02
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
92cc02
    libtool
92cc02
make %{?_smp_mflags}
92cc02
92cc02
%install
92cc02
make install DESTDIR=%{buildroot}
92cc02
rm -f %{buildroot}/%{_libdir}/*.la
92cc02
# we install API docs directly from build
92cc02
rm -rf %{buildroot}/%{_docdir}/%{name}
92cc02
92cc02
%post -p /sbin/ldconfig
92cc02
%postun -p /sbin/ldconfig
92cc02
92cc02
%check
92cc02
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
92cc02
make %{?_smp_mflags} check
92cc02
92cc02
%files
92cc02
%license COPYING.*
92cc02
%doc README NEWS
92cc02
%{_libdir}/%{name}-%{apiversion}.so.*
92cc02
%{_libdir}/%{name}-generators-%{apiversion}.so.*
92cc02
%{_libdir}/%{name}-stream-%{apiversion}.so.*
92cc02
92cc02
%files devel
92cc02
%doc ChangeLog
92cc02
%{_includedir}/%{name}-%{apiversion}
92cc02
%{_libdir}/%{name}-%{apiversion}.so
92cc02
%{_libdir}/%{name}-generators-%{apiversion}.so
92cc02
%{_libdir}/%{name}-stream-%{apiversion}.so
92cc02
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
92cc02
%{_libdir}/pkgconfig/%{name}-generators-%{apiversion}.pc
92cc02
%{_libdir}/pkgconfig/%{name}-stream-%{apiversion}.pc
92cc02
92cc02
%files doc
92cc02
%license COPYING.*
92cc02
%doc docs/doxygen/html
92cc02
92cc02
%files gdb
92cc02
%{_datadir}/gdb/auto-load%{_libdir}/%{name}-%{apiversion}.py*
92cc02
%{_datadir}/gdb/auto-load%{_libdir}/%{name}-stream-%{apiversion}.py*
92cc02
%dir %{_datadir}/%{name}
92cc02
%{_datadir}/%{name}/python
92cc02
92cc02
%changelog
92cc02
* Thu Jun 04 2020 Jan Horak <jhorak@redhat.com> - 0.0.4-13
92cc02
- Fixing build for flatpak (rhbz#1840793)
92cc02
92cc02
* Fri Jan 17 2020 Sergio Durigan Junior <sergiodj@redhat.com> - 0.0.4-12
92cc02
- Resolves: rhbz#1786466 Do not use %%{?_isa} for GDB dependency. Recommend
92cc02
  GDB, instead of requiring it.
92cc02
92cc02
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-11
92cc02
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
92cc02
92cc02
* Tue Jan 23 2018 Jonathan Wakely <jwakely@redhat.com> - 0.0.4-10
92cc02
- Rebuilt for Boost 1.66
92cc02
92cc02
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-9
92cc02
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
92cc02
92cc02
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-8
92cc02
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
92cc02
92cc02
* Mon Jul 03 2017 Jonathan Wakely <jwakely@redhat.com> - 0.0.4-7
92cc02
- Rebuilt for Boost 1.64
92cc02
92cc02
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-6
92cc02
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
92cc02
92cc02
* Fri Jan 27 2017 Jonathan Wakely <jwakely@redhat.com> - 0.0.4-5
92cc02
- Rebuilt for Boost 1.63
92cc02
92cc02
* Fri Jan 27 2017 Jonathan Wakely <jwakely@redhat.com> - 0.0.4-4
92cc02
- Rebuilt for Boost 1.63
92cc02
92cc02
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-3
92cc02
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
92cc02
92cc02
* Fri Jan 15 2016 Jonathan Wakely <jwakely@redhat.com> - 0.0.4-2
92cc02
- Rebuilt for Boost 1.60
92cc02
92cc02
* Tue Jan 12 2016 David Tardon <dtardon@redhat.com> - 0.0.4-1
92cc02
- new upstream release
92cc02
92cc02
* Sat Dec 26 2015 David Tardon <dtardon@redhat.com> - 0.0.3-3
92cc02
- fix packaging
92cc02
92cc02
* Sat Dec 26 2015 David Tardon <dtardon@redhat.com> - 0.0.3-2
92cc02
- fix gdb pretty printers
92cc02
92cc02
* Fri Dec 25 2015 David Tardon <dtardon@redhat.com> - 0.0.3-1
92cc02
- new upstream release
92cc02
92cc02
* Sun Aug 30 2015 Jonathan Wakely <jwakely@redhat.com> - 0.0.2-8
92cc02
- Rebuilt for Boost 1.59
92cc02
92cc02
* Sun Aug 30 2015 David Tardon <dtardon@redhat.com> - 0.0.2-7
92cc02
- Resolves: rhbz#1258128 fix build with boost 1.59
92cc02
92cc02
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.2-6
92cc02
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
92cc02
92cc02
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 0.0.2-5
92cc02
- rebuild for Boost 1.58
92cc02
92cc02
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.2-4
92cc02
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
92cc02
92cc02
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.0.2-3
92cc02
- Rebuilt for GCC 5 C++11 ABI change
92cc02
92cc02
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 0.0.2-2
92cc02
- Rebuild for boost 1.57.0
92cc02
92cc02
* Wed Dec 24 2014 David Tardon <dtardon@redhat.com> - 0.0.2-1
92cc02
- new upstream release
92cc02
92cc02
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-3
92cc02
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
92cc02
92cc02
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-2
92cc02
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
92cc02
92cc02
* Tue Jun 03 2014 David Tardon <dtardon@redhat.com> - 0.0.1-1
92cc02
- new upstream release
92cc02
92cc02
* Tue May 27 2014 David Tardon <dtardon@redhat.com> - 0.0.0-2
92cc02
- remove extra dirs from filelist
92cc02
92cc02
* Fri May 23 2014 David Tardon <dtardon@redhat.com> - 0.0.0-1
92cc02
- initial import