|
|
4d589e |
%global apiversion 0.0
|
|
|
4d589e |
|
|
|
4d589e |
Name: librevenge
|
|
|
4d589e |
Version: 0.0.2
|
|
|
4d589e |
Release: 2%{?dist}
|
|
|
4d589e |
Summary: A base library for writing document import filters
|
|
|
4d589e |
|
|
|
4d589e |
# src/lib/RVNGOLEStream.{h,cpp} are BSD
|
|
|
4d589e |
License: (LGPLv2+ or MPLv2.0) and BSD
|
|
|
4d589e |
URL: http://sourceforge.net/p/libwpd/wiki/librevenge/
|
|
|
4d589e |
Source: http://downloads.sourceforge.net/libwpd/%{name}-%{version}.tar.xz
|
|
|
4d589e |
|
|
|
4d589e |
BuildRequires: boost-devel
|
|
|
4d589e |
BuildRequires: doxygen
|
|
|
4d589e |
BuildRequires: pkgconfig(cppunit)
|
|
|
4d589e |
BuildRequires: pkgconfig(zlib)
|
|
|
4d589e |
|
|
|
4d589e |
Patch0: 0001-rhbz-1248443-unbounded-heap-allocation.patch
|
|
|
4d589e |
|
|
|
4d589e |
%description
|
|
|
4d589e |
%{name} is a base library for writing document import filters. It has
|
|
|
4d589e |
interfaces for text documents, vector graphics, spreadsheets and
|
|
|
4d589e |
presentations.
|
|
|
4d589e |
|
|
|
4d589e |
%package devel
|
|
|
4d589e |
Summary: Development files for %{name}
|
|
|
4d589e |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
4d589e |
|
|
|
4d589e |
%description devel
|
|
|
4d589e |
The %{name}-devel package contains libraries and header files for
|
|
|
4d589e |
developing applications that use %{name}.
|
|
|
4d589e |
|
|
|
4d589e |
%package doc
|
|
|
4d589e |
Summary: Documentation of %{name} API
|
|
|
4d589e |
BuildArch: noarch
|
|
|
4d589e |
|
|
|
4d589e |
%description doc
|
|
|
4d589e |
The %{name}-doc package contains documentation files for %{name}.
|
|
|
4d589e |
|
|
|
4d589e |
%prep
|
|
|
4d589e |
%autosetup -p1
|
|
|
4d589e |
|
|
|
4d589e |
%build
|
|
|
4d589e |
%configure --disable-silent-rules --disable-static --disable-werror --enable-pretty-printers
|
|
|
4d589e |
sed -i \
|
|
|
4d589e |
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
|
|
4d589e |
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
|
|
|
4d589e |
libtool
|
|
|
4d589e |
make %{?_smp_mflags}
|
|
|
4d589e |
|
|
|
4d589e |
%install
|
|
|
4d589e |
make install DESTDIR=%{buildroot}
|
|
|
4d589e |
rm -f %{buildroot}/%{_libdir}/*.la
|
|
|
4d589e |
# we install API docs directly from build
|
|
|
4d589e |
rm -rf %{buildroot}/%{_docdir}/%{name}
|
|
|
4d589e |
|
|
|
4d589e |
%post -p /sbin/ldconfig
|
|
|
4d589e |
%postun -p /sbin/ldconfig
|
|
|
4d589e |
|
|
|
4d589e |
%check
|
|
|
4d589e |
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
|
|
4d589e |
make %{?_smp_mflags} check
|
|
|
4d589e |
|
|
|
4d589e |
%files
|
|
|
4d589e |
%doc COPYING.* README NEWS
|
|
|
4d589e |
%{_libdir}/%{name}-%{apiversion}.so.*
|
|
|
4d589e |
%{_libdir}/%{name}-generators-%{apiversion}.so.*
|
|
|
4d589e |
%{_libdir}/%{name}-stream-%{apiversion}.so.*
|
|
|
4d589e |
|
|
|
4d589e |
%files devel
|
|
|
4d589e |
%doc ChangeLog
|
|
|
4d589e |
%{_includedir}/%{name}-%{apiversion}
|
|
|
4d589e |
%{_libdir}/%{name}-%{apiversion}.so
|
|
|
4d589e |
%{_libdir}/%{name}-generators-%{apiversion}.so
|
|
|
4d589e |
%{_libdir}/%{name}-stream-%{apiversion}.so
|
|
|
4d589e |
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
|
|
|
4d589e |
%{_libdir}/pkgconfig/%{name}-generators-%{apiversion}.pc
|
|
|
4d589e |
%{_libdir}/pkgconfig/%{name}-stream-%{apiversion}.pc
|
|
|
4d589e |
%{_datadir}/gdb/auto-load%{_libdir}/%{name}-%{apiversion}.py*
|
|
|
4d589e |
%{_datadir}/gdb/auto-load%{_libdir}/%{name}-stream-%{apiversion}.py*
|
|
|
4d589e |
%dir %{_datadir}/%{name}
|
|
|
4d589e |
%{_datadir}/%{name}/python
|
|
|
4d589e |
|
|
|
4d589e |
%files doc
|
|
|
4d589e |
%doc COPYING.*
|
|
|
4d589e |
%doc docs/doxygen/html
|
|
|
4d589e |
|
|
|
4d589e |
%changelog
|
|
|
4d589e |
* Wed Aug 05 2015 David Tardon <dtardon@redhat.com> - 0.0.2-2
|
|
|
4d589e |
- Resolves: rhbz#1248443 unbounded heap allocation
|
|
|
4d589e |
|
|
|
4d589e |
* Wed Dec 24 2014 David Tardon <dtardon@redhat.com> - 0.0.2-1
|
|
|
4d589e |
- new upstream release
|
|
|
4d589e |
|
|
|
4d589e |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-3
|
|
|
4d589e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
4d589e |
|
|
|
4d589e |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-2
|
|
|
4d589e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
4d589e |
|
|
|
4d589e |
* Tue Jun 03 2014 David Tardon <dtardon@redhat.com> - 0.0.1-1
|
|
|
4d589e |
- new upstream release
|
|
|
4d589e |
|
|
|
4d589e |
* Tue May 27 2014 David Tardon <dtardon@redhat.com> - 0.0.0-2
|
|
|
4d589e |
- remove extra dirs from filelist
|
|
|
4d589e |
|
|
|
4d589e |
* Fri May 23 2014 David Tardon <dtardon@redhat.com> - 0.0.0-1
|
|
|
4d589e |
- initial import
|