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