|
|
7d499d |
%global apiversion 0.0
|
|
|
7d499d |
|
|
|
7d499d |
Name: libstaroffice
|
|
|
7d499d |
Version: 0.0.4
|
|
|
7d499d |
Release: 1%{?dist}
|
|
|
7d499d |
Summary: A library for import of binary StarOffice documents
|
|
|
7d499d |
|
|
|
7d499d |
License: MPLv2.0 or LGPLv2+
|
|
|
7d499d |
URL: https://github.com/fosnola/libstaroffice/wiki
|
|
|
7d499d |
Source: https://github.com/fosnola/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
|
|
|
7d499d |
|
|
|
7d499d |
BuildRequires: doxygen
|
|
|
7d499d |
BuildRequires: help2man
|
|
|
7d499d |
BuildRequires: pkgconfig(librevenge-0.0)
|
|
|
7d499d |
BuildRequires: pkgconfig(zlib)
|
|
|
7d499d |
|
|
|
7d499d |
%description
|
|
|
7d499d |
%{name} is a library for import of binary StarOffice documents.
|
|
|
7d499d |
|
|
|
7d499d |
%package devel
|
|
|
7d499d |
Summary: Development files for %{name}
|
|
|
7d499d |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
7d499d |
|
|
|
7d499d |
%description devel
|
|
|
7d499d |
The %{name}-devel package contains libraries and header files for
|
|
|
7d499d |
developing applications that use %{name}.
|
|
|
7d499d |
|
|
|
7d499d |
%package doc
|
|
|
7d499d |
Summary: Documentation of %{name} API
|
|
|
7d499d |
BuildArch: noarch
|
|
|
7d499d |
|
|
|
7d499d |
%description doc
|
|
|
7d499d |
The %{name}-doc package contains documentation files for %{name}.
|
|
|
7d499d |
|
|
|
7d499d |
%package tools
|
|
|
7d499d |
Summary: Tools to transform StarOffice documents into other formats
|
|
|
7d499d |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
7d499d |
|
|
|
7d499d |
%description tools
|
|
|
7d499d |
Tools to transform StarOffice documents into other formats. Currently
|
|
|
7d499d |
supported: CSV, HTML, plain text, SVG, raw.
|
|
|
7d499d |
|
|
|
7d499d |
%prep
|
|
|
7d499d |
%autosetup -p1
|
|
|
7d499d |
|
|
|
7d499d |
%build
|
|
|
7d499d |
%configure --disable-static --disable-werror --disable-silent-rules \
|
|
|
7d499d |
--enable-zip --with-sharedptr=c++11
|
|
|
7d499d |
sed -i \
|
|
|
7d499d |
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
|
|
7d499d |
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
|
|
|
7d499d |
libtool
|
|
|
7d499d |
make %{?_smp_mflags}
|
|
|
7d499d |
|
|
|
7d499d |
%install
|
|
|
7d499d |
%make_install
|
|
|
7d499d |
rm -f %{buildroot}/%{_libdir}/*.la
|
|
|
7d499d |
# rhbz#1001245 we install API docs directly from build
|
|
|
7d499d |
rm -rf %{buildroot}/%{_docdir}/%{name}
|
|
|
7d499d |
|
|
|
7d499d |
# generate and install man pages
|
|
|
7d499d |
export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
|
|
7d499d |
for tool in sd2raw sd2svg sd2text sdc2csv sdw2html; do
|
|
|
7d499d |
help2man -N -S '%{name} %{version}' -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
|
|
|
7d499d |
done
|
|
|
7d499d |
install -m 0755 -d %{buildroot}/%{_mandir}/man1
|
|
|
7d499d |
install -m 0644 sd2*.1 sd?2*.1 %{buildroot}/%{_mandir}/man1
|
|
|
7d499d |
|
|
|
7d499d |
%post -p /sbin/ldconfig
|
|
|
7d499d |
%postun -p /sbin/ldconfig
|
|
|
7d499d |
|
|
|
7d499d |
%files
|
|
|
7d499d |
%doc CREDITS NEWS README
|
|
|
7d499d |
%license COPYING.LGPL COPYING.MPL
|
|
|
7d499d |
%{_libdir}/%{name}-%{apiversion}.so.*
|
|
|
7d499d |
|
|
|
7d499d |
%files devel
|
|
|
7d499d |
%doc ChangeLog
|
|
|
7d499d |
%{_includedir}/%{name}-%{apiversion}
|
|
|
7d499d |
%{_libdir}/%{name}-%{apiversion}.so
|
|
|
7d499d |
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
|
|
|
7d499d |
|
|
|
7d499d |
%files doc
|
|
|
7d499d |
%license COPYING.LGPL COPYING.MPL
|
|
|
7d499d |
%doc docs/doxygen/html
|
|
|
7d499d |
|
|
|
7d499d |
%files tools
|
|
|
7d499d |
%{_bindir}/sdw2html
|
|
|
7d499d |
%{_bindir}/sd2raw
|
|
|
7d499d |
%{_bindir}/sd2svg
|
|
|
7d499d |
%{_bindir}/sd2text
|
|
|
7d499d |
%{_bindir}/sdc2csv
|
|
|
7d499d |
%{_mandir}/man1/sdw2html.1*
|
|
|
7d499d |
%{_mandir}/man1/sd2raw.1*
|
|
|
7d499d |
%{_mandir}/man1/sd2svg.1*
|
|
|
7d499d |
%{_mandir}/man1/sd2text.1*
|
|
|
7d499d |
%{_mandir}/man1/sdc2csv.1*
|
|
|
7d499d |
|
|
|
7d499d |
%changelog
|
|
|
7d499d |
* Sun Sep 17 2017 David Tardon <dtardon@redhat.com> - 0.0.4-1
|
|
|
7d499d |
- Resolves: rhbz#1477086 import package
|