|
|
9a2f33e |
%global apiversion 0.4
|
|
|
ee2a5c8 |
|
|
supercyper |
95a5fd1 |
Name: libwps
|
|
|
bbede41 |
Version: 0.4.14
|
|
|
02bd0d1 |
Release: %autorelease
|
|
|
f7eb4e3 |
Summary: A library for import of Microsoft Works documents
|
|
cassmodiah |
fdd3f13 |
|
|
|
de61f80 |
License: LGPL-2.1-or-later OR MPL-2.0
|
|
supercyper |
95a5fd1 |
URL: http://libwps.sourceforge.net/
|
|
|
6542792 |
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
|
|
cassmodiah |
fdd3f13 |
|
|
supercyper |
95a5fd1 |
BuildRequires: doxygen
|
|
|
9e865dd |
BuildRequires: gcc-c++
|
|
|
8ac8b09 |
BuildRequires: help2man
|
|
|
0b699dc |
BuildRequires: pkgconfig(librevenge-0.0)
|
|
|
1ccaaf6 |
BuildRequires: pkgconfig(librevenge-generators-0.0)
|
|
|
1ccaaf6 |
BuildRequires: pkgconfig(librevenge-stream-0.0)
|
|
|
b240cfd |
BuildRequires: make
|
|
cassmodiah |
fdd3f13 |
|
|
cassmodiah |
fdd3f13 |
%description
|
|
|
f7eb4e3 |
%{name} is a library for import of Microsoft Works text documents,
|
|
|
2e3b8ad |
spreadsheets and (in a limited way) databases. Full list of supported
|
|
|
2e3b8ad |
formats is available at
|
|
|
2e3b8ad |
https://sourceforge.net/p/libwps/wiki/Home/#recognized-formats .
|
|
cassmodiah |
fdd3f13 |
|
|
supercyper |
95a5fd1 |
%package devel
|
|
supercyper |
95a5fd1 |
Summary: Development files for %{name}
|
|
supercyper |
7dcbe8e |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
cassmodiah |
fdd3f13 |
|
|
supercyper |
95a5fd1 |
%description devel
|
|
cassmodiah |
fdd3f13 |
The %{name}-devel package contains libraries and header files for
|
|
cassmodiah |
fdd3f13 |
developing applications that use %{name}.
|
|
cassmodiah |
fdd3f13 |
|
|
supercyper |
95a5fd1 |
%package tools
|
|
|
f7eb4e3 |
Summary: Tools to transform Microsoft Works documents into other formats
|
|
supercyper |
7dcbe8e |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
cassmodiah |
fdd3f13 |
|
|
supercyper |
95a5fd1 |
%description tools
|
|
|
f7eb4e3 |
Tools to transform Microsoft Works documents into other formats.
|
|
|
0b699dc |
Currently supported: CSV, HTML, raw, text
|
|
cassmodiah |
fdd3f13 |
|
|
supercyper |
95a5fd1 |
%package doc
|
|
supercyper |
95a5fd1 |
Summary: Documentation of %{name} API
|
|
supercyper |
95a5fd1 |
BuildArch: noarch
|
|
cassmodiah |
fdd3f13 |
|
|
supercyper |
95a5fd1 |
%description doc
|
|
cassmodiah |
fdd3f13 |
The %{name}-doc package contains documentation files for %{name}
|
|
cassmodiah |
fdd3f13 |
|
|
cassmodiah |
fdd3f13 |
%prep
|
|
|
9a2f33e |
%autosetup -p1
|
|
cassmodiah |
fdd3f13 |
|
|
cassmodiah |
fdd3f13 |
%build
|
|
|
6d77527 |
%configure --disable-silent-rules --disable-static
|
|
cassmodiah |
fdd3f13 |
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
cassmodiah |
fdd3f13 |
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
cassmodiah |
fdd3f13 |
make %{?_smp_mflags}
|
|
cassmodiah |
fdd3f13 |
|
|
cassmodiah |
fdd3f13 |
%install
|
|
cassmodiah |
fdd3f13 |
make install INSTALL="install -p" DESTDIR="%{buildroot}"
|
|
|
30ce224 |
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
a6c4e4b |
# we install API docs directly from build
|
|
|
a6c4e4b |
rm -rf %{buildroot}%{_defaultdocdir}/%{name}
|
|
cassmodiah |
fdd3f13 |
|
|
|
2e3b8ad |
export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
|
|
2e3b8ad |
for tool in wks2csv wks2raw wks2text wps2html wps2raw wps2text; do
|
|
|
e252f6d |
help2man -S '%{name} %{version}' -N -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
|
|
|
2e3b8ad |
done
|
|
|
8ac8b09 |
install -m 0755 -d %{buildroot}/%{_mandir}/man1
|
|
|
0b699dc |
install -m 0644 wks2*.1 wps2*.1 %{buildroot}/%{_mandir}/man1
|
|
|
8ac8b09 |
|
|
|
c613728 |
%ldconfig_scriptlets
|
|
cassmodiah |
fdd3f13 |
|
|
cassmodiah |
fdd3f13 |
%files
|
|
|
9d5a24d |
%doc CREDITS NEWS README
|
|
|
9d5a24d |
%license COPYING.LGPL COPYING.MPL
|
|
|
ee2a5c8 |
%{_libdir}/%{name}-%{apiversion}.so.*
|
|
cassmodiah |
fdd3f13 |
|
|
cassmodiah |
fdd3f13 |
%files devel
|
|
|
ee2a5c8 |
%{_includedir}/%{name}-%{apiversion}
|
|
|
ee2a5c8 |
%{_libdir}/%{name}-%{apiversion}.so
|
|
|
ee2a5c8 |
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
|
|
cassmodiah |
fdd3f13 |
|
|
cassmodiah |
fdd3f13 |
%files tools
|
|
|
0b699dc |
%{_bindir}/wks2csv
|
|
|
0b699dc |
%{_bindir}/wks2raw
|
|
|
0b699dc |
%{_bindir}/wks2text
|
|
|
ee2a5c8 |
%{_bindir}/wps2html
|
|
|
ee2a5c8 |
%{_bindir}/wps2raw
|
|
|
ee2a5c8 |
%{_bindir}/wps2text
|
|
|
0b699dc |
%{_mandir}/man1/wks2csv.1*
|
|
|
0b699dc |
%{_mandir}/man1/wks2raw.1*
|
|
|
0b699dc |
%{_mandir}/man1/wks2text.1*
|
|
|
8ac8b09 |
%{_mandir}/man1/wps2html.1*
|
|
|
8ac8b09 |
%{_mandir}/man1/wps2raw.1*
|
|
|
8ac8b09 |
%{_mandir}/man1/wps2text.1*
|
|
cassmodiah |
fdd3f13 |
|
|
cassmodiah |
fdd3f13 |
%files doc
|
|
|
9d5a24d |
%license COPYING.LGPL COPYING.MPL
|
|
|
a6c4e4b |
%doc docs/doxygen/html
|
|
cassmodiah |
fdd3f13 |
|
|
cassmodiah |
fdd3f13 |
%changelog
|
|
|
02bd0d1 |
%autochangelog
|