|
|
a324cd |
%global apiversion 0.0
|
|
|
a324cd |
|
|
|
a324cd |
Name: libstaroffice
|
|
|
a324cd |
Version: 0.0.6
|
|
|
a324cd |
Release: 1%{?dist}
|
|
|
a324cd |
Summary: A library for import of binary StarOffice documents
|
|
|
a324cd |
|
|
|
a324cd |
License: MPLv2.0 or LGPLv2+
|
|
|
a324cd |
URL: https://github.com/fosnola/libstaroffice/wiki
|
|
|
a324cd |
Source: https://github.com/fosnola/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
|
|
|
a324cd |
|
|
|
a324cd |
BuildRequires: doxygen
|
|
|
a324cd |
BuildRequires: gcc-c++
|
|
|
a324cd |
BuildRequires: help2man
|
|
|
a324cd |
BuildRequires: pkgconfig(librevenge-0.0)
|
|
|
a324cd |
BuildRequires: pkgconfig(librevenge-generators-0.0)
|
|
|
a324cd |
BuildRequires: pkgconfig(librevenge-stream-0.0)
|
|
|
a324cd |
BuildRequires: pkgconfig(zlib)
|
|
|
a324cd |
|
|
|
a324cd |
%description
|
|
|
a324cd |
%{name} is a library for import of binary StarOffice documents.
|
|
|
a324cd |
|
|
|
a324cd |
%package devel
|
|
|
a324cd |
Summary: Development files for %{name}
|
|
|
a324cd |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
a324cd |
|
|
|
a324cd |
%description devel
|
|
|
a324cd |
The %{name}-devel package contains libraries and header files for
|
|
|
a324cd |
developing applications that use %{name}.
|
|
|
a324cd |
|
|
|
a324cd |
%package doc
|
|
|
a324cd |
Summary: Documentation of %{name} API
|
|
|
a324cd |
BuildArch: noarch
|
|
|
a324cd |
|
|
|
a324cd |
%description doc
|
|
|
a324cd |
The %{name}-doc package contains documentation files for %{name}.
|
|
|
a324cd |
|
|
|
a324cd |
%package tools
|
|
|
a324cd |
Summary: Tools to transform StarOffice documents into other formats
|
|
|
a324cd |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
a324cd |
|
|
|
a324cd |
%description tools
|
|
|
a324cd |
Tools to transform StarOffice documents into other formats. Currently
|
|
|
a324cd |
supported: CSV, HTML, plain text, SVG, raw.
|
|
|
a324cd |
|
|
|
a324cd |
%prep
|
|
|
a324cd |
%autosetup -p1
|
|
|
a324cd |
|
|
|
a324cd |
%build
|
|
|
a324cd |
%configure --disable-static --disable-werror --disable-silent-rules \
|
|
|
a324cd |
--enable-zip
|
|
|
a324cd |
sed -i \
|
|
|
a324cd |
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
|
|
a324cd |
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
|
|
|
a324cd |
libtool
|
|
|
a324cd |
make %{?_smp_mflags}
|
|
|
a324cd |
|
|
|
a324cd |
%install
|
|
|
a324cd |
%make_install
|
|
|
a324cd |
rm -f %{buildroot}/%{_libdir}/*.la
|
|
|
a324cd |
# rhbz#1001245 we install API docs directly from build
|
|
|
a324cd |
rm -rf %{buildroot}/%{_docdir}/%{name}
|
|
|
a324cd |
|
|
|
a324cd |
# generate and install man pages
|
|
|
a324cd |
export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
|
|
a324cd |
for tool in sd2raw sd2svg sd2text sdc2csv sdw2html; do
|
|
|
a324cd |
help2man -N -S '%{name} %{version}' -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
|
|
|
a324cd |
done
|
|
|
a324cd |
install -m 0755 -d %{buildroot}/%{_mandir}/man1
|
|
|
a324cd |
install -m 0644 sd2*.1 sd?2*.1 %{buildroot}/%{_mandir}/man1
|
|
|
a324cd |
|
|
|
a324cd |
%post -p /sbin/ldconfig
|
|
|
a324cd |
%postun -p /sbin/ldconfig
|
|
|
a324cd |
|
|
|
a324cd |
%files
|
|
|
a324cd |
%doc CREDITS NEWS README
|
|
|
a324cd |
%license COPYING.LGPL COPYING.MPL
|
|
|
a324cd |
%{_libdir}/%{name}-%{apiversion}.so.*
|
|
|
a324cd |
|
|
|
a324cd |
%files devel
|
|
|
a324cd |
%doc ChangeLog
|
|
|
a324cd |
%{_includedir}/%{name}-%{apiversion}
|
|
|
a324cd |
%{_libdir}/%{name}-%{apiversion}.so
|
|
|
a324cd |
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
|
|
|
a324cd |
|
|
|
a324cd |
%files doc
|
|
|
a324cd |
%license COPYING.LGPL COPYING.MPL
|
|
|
a324cd |
%doc docs/doxygen/html
|
|
|
a324cd |
|
|
|
a324cd |
%files tools
|
|
|
a324cd |
%{_bindir}/sdw2html
|
|
|
a324cd |
%{_bindir}/sd2raw
|
|
|
a324cd |
%{_bindir}/sd2svg
|
|
|
a324cd |
%{_bindir}/sd2text
|
|
|
a324cd |
%{_bindir}/sdc2csv
|
|
|
a324cd |
%{_mandir}/man1/sdw2html.1*
|
|
|
a324cd |
%{_mandir}/man1/sd2raw.1*
|
|
|
a324cd |
%{_mandir}/man1/sd2svg.1*
|
|
|
a324cd |
%{_mandir}/man1/sd2text.1*
|
|
|
a324cd |
%{_mandir}/man1/sdc2csv.1*
|
|
|
a324cd |
|
|
|
a324cd |
%changelog
|
|
|
a324cd |
* Thu Apr 26 2018 David Tardon <dtardon@redhat.com> - 0.0.6-1
|
|
|
a324cd |
- new upstream release
|
|
|
a324cd |
|
|
|
a324cd |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.5-2
|
|
|
a324cd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
a324cd |
|
|
|
a324cd |
* Tue Nov 07 2017 David Tardon <dtardon@redhat.com> - 0.0.5-1
|
|
|
a324cd |
- new upstream release
|
|
|
a324cd |
|
|
|
a324cd |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-3
|
|
|
a324cd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
a324cd |
|
|
|
a324cd |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-2
|
|
|
a324cd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
a324cd |
|
|
|
a324cd |
* Sun Jul 16 2017 David Tardon <dtardon@redhat.com> - 0.0.4-1
|
|
|
a324cd |
- new upstream release
|
|
|
a324cd |
|
|
|
a324cd |
* Tue Jun 06 2017 David Tardon <dtardon@redhat.com> - 0.0.3-3
|
|
|
a324cd |
- Resolves: rhbz#1458800 CVE-2017-9432 Stack-buffer overflow in the
|
|
|
a324cd |
StarWriterStruct::DatabaseName::read
|
|
|
a324cd |
|
|
|
a324cd |
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.3-2
|
|
|
a324cd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
|
|
|
a324cd |
|
|
|
a324cd |
* Wed Feb 22 2017 David Tardon <dtardon@redhat.com> - 0.0.3-1
|
|
|
a324cd |
- new upstream release
|
|
|
a324cd |
|
|
|
a324cd |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.2-2
|
|
|
a324cd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
a324cd |
|
|
|
a324cd |
* Thu Aug 11 2016 David Tardon <dtardon@redhat.com> - 0.0.2-1
|
|
|
a324cd |
- new upstream release
|
|
|
a324cd |
|
|
|
a324cd |
* Thu Feb 11 2016 David Tardon <dtardon@redhat.com> - 0.0.1-1
|
|
|
a324cd |
- initial import
|