summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-09-13 10:59:08 +0000
committerCoprDistGit <infra@openeuler.org>2023-09-13 10:59:08 +0000
commit38404d121dbe1dfc4d0177d92903fe4348b678df (patch)
tree39449100f159f247873e42e5253e50bd4ddc0365
parent5f5f172e9b7391059272189b74b5be4358e8614b (diff)
automatic import of libwpsopeneuler23.03
-rw-r--r--.gitignore1
-rw-r--r--libwps.spec93
-rw-r--r--sources1
3 files changed, 95 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..80496f5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libwps-0.4.13.tar.xz
diff --git a/libwps.spec b/libwps.spec
new file mode 100644
index 0000000..a4e9188
--- /dev/null
+++ b/libwps.spec
@@ -0,0 +1,93 @@
+%global apiversion 0.4
+
+Name: libwps
+Version: 0.4.13
+Release: 1
+Summary: A library for import of Microsoft Works documents
+
+License: LGPL-2.1-or-later OR MPL-2.0
+URL: http://libwps.sourceforge.net/
+Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
+
+BuildRequires: doxygen gcc-c++ help2man make pkgconfig(librevenge-0.0)
+BuildRequires: pkgconfig(librevenge-generators-0.0) pkgconfig(librevenge-stream-0.0)
+
+%description
+%{name} is a library for import of Microsoft Works text documents,
+spreadsheets and (in a limited way) databases. Full list of supported
+formats is available at
+https://sourceforge.net/p/libwps/wiki/Home/#recognized-formats .
+
+%package devel
+Summary: Development files for %{name}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%package tools
+Summary: Tools to transform Microsoft Works documents into other formats
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description tools
+Tools to transform Microsoft Works documents into other formats.
+Currently supported: CSV, HTML, raw, text
+
+%package_help
+
+%prep
+%autosetup -p1
+
+%build
+%configure --disable-silent-rules --disable-static
+sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
+sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
+make %{?_smp_mflags}
+
+%install
+make install INSTALL="install -p" DESTDIR="%{buildroot}"
+rm -f %{buildroot}%{_libdir}/*.la
+# we install API docs directly from build
+rm -rf %{buildroot}%{_defaultdocdir}/%{name}
+
+export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
+for tool in wks2csv wks2raw wks2text wps2html wps2raw wps2text; do
+ help2man -S '%{name} %{version}' -N -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
+done
+install -m 0755 -d %{buildroot}/%{_mandir}/man1
+install -m 0644 wks2*.1 wps2*.1 %{buildroot}/%{_mandir}/man1
+
+%ldconfig_scriptlets
+
+%files
+%doc CREDITS NEWS README
+%license COPYING.LGPL COPYING.MPL
+%{_libdir}/%{name}-%{apiversion}.so.*
+
+%files devel
+%{_includedir}/%{name}-%{apiversion}
+%{_libdir}/%{name}-%{apiversion}.so
+%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
+
+%files tools
+%{_bindir}/wks2csv
+%{_bindir}/wks2raw
+%{_bindir}/wks2text
+%{_bindir}/wps2html
+%{_bindir}/wps2raw
+%{_bindir}/wps2text
+
+%files help
+%license COPYING.LGPL COPYING.MPL
+%doc docs/doxygen/html
+%{_mandir}/man1/wks2csv.1*
+%{_mandir}/man1/wks2raw.1*
+%{_mandir}/man1/wks2text.1*
+%{_mandir}/man1/wps2html.1*
+%{_mandir}/man1/wps2raw.1*
+%{_mandir}/man1/wps2text.1*
+
+%changelog
+* Wed Sep 06 2023 Darssin <2020303249@mail.nwpu.edu.cn> - 0.4.13-1
+- Package init
diff --git a/sources b/sources
new file mode 100644
index 0000000..93c2ab3
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+8138e3811e466da02b7e2cb79b6b4975 libwps-0.4.13.tar.xz