From e9c0f033bb66003c0c3f026aa9dc7d91ba0d08b77552ce39f6acce1b6b8be342 Mon Sep 17 00:00:00 2001 From: Hillwood Yang Date: Fri, 4 Mar 2022 13:29:07 +0000 Subject: [PATCH] Accepting request 959420 from X11:Deepin:Factory OBS-URL: https://build.opensuse.org/request/show/959420 OBS-URL: https://build.opensuse.org/package/show/X11:Deepin/docparser?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ docparser-1.0.1.tar.gz | 3 ++ docparser.changes | 4 ++ docparser.spec | 83 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 113 insertions(+) create mode 100644 .gitattributes create mode 100644 docparser-1.0.1.tar.gz create mode 100644 docparser.changes create mode 100644 docparser.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/docparser-1.0.1.tar.gz b/docparser-1.0.1.tar.gz new file mode 100644 index 0000000..308c18a --- /dev/null +++ b/docparser-1.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0dc09109eee0aeed23959aeff4434b266cc11e0289e11faf842b0a3798d2dede +size 428737 diff --git a/docparser.changes b/docparser.changes new file mode 100644 index 0000000..5a25dca --- /dev/null +++ b/docparser.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Feb 22 06:36:55 UTC 2022 - Hillwood Yang + +- Initial package for 1.0.1 diff --git a/docparser.spec b/docparser.spec new file mode 100644 index 0000000..d3e48b2 --- /dev/null +++ b/docparser.spec @@ -0,0 +1,83 @@ +# +# spec file for package docparser +# +# Copyright (c) 2022 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2022 Hillwood Yang +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define libver 1 + +Name: docparser +Version: 1.0.1 +Release: 0 +Summary: A document parser library +License: GPL-3.0+ +Group: Productivity/Publishing/HTML/Tools +Url: https://github.com/linuxdeepin/docparser +Source0: https://github.com/linuxdeepin/docparser/archive/%{version}/%{name}-%{version}.tar.gz +BuildRequires: fdupes +BuildRequires: gtest +BuildRequires: dtkcommon +BuildRequires: pkgconfig(poppler-cpp) +BuildRequires: pkgconfig(Qt5Core) +BuildRequires: pkgconfig(Qt5Gui) +BuildRequires: libqt5-qtbase-common-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +docparser is a document parser library.It is ported from document2html. + +%package -n lib%{name}%{libver} +Summary: A document parser library +Group: System/Libraries + +%description -n lib%{name}%{libver} +docparser is a document parser library.It is ported from document2html. + +%package devel +Summary: Development tools for docparser +Group: Development/Libraries/Other +Requires: lib%{name}%{libver} = %{version} + +%description devel +The docparser-devel package contains the header files and developer docs for +docparser. + +%prep +%autosetup -p1 + +%build +%qmake5 DEFINES+=QT_NO_DEBUG_OUTPUT \ + PREFIX=%{_prefix} \ + LIB_INSTALL_DIR=%{_libdir} + +%install +%qmake5_install + +%post -n lib%{name}%{libver} -p /sbin/ldconfig +%postun -n lib%{name}%{libver} -p /sbin/ldconfig + +%files -n lib%{name}%{libver} +%{_libdir}/lib%{name}.so.* + +%files devel +%doc README.md +%license LICENSE +%{_includedir}/%{name} +%{_libdir}/lib%{name}.so +%{_libdir}/pkgconfig/%{name}.pc + +%changelog +