SHA256
1
0
forked from pool/docparser

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
This commit is contained in:
Hillwood Yang 2022-03-04 13:29:07 +00:00 committed by Git OBS Bridge
commit bf85657a4a
5 changed files with 114 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
docparser-1.0.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0dc09109eee0aeed23959aeff4434b266cc11e0289e11faf842b0a3798d2dede
size 428737

4
docparser.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Tue Feb 22 06:36:55 UTC 2022 - Hillwood Yang <hillwood@opensuse.org>
- Initial package for 1.0.1

83
docparser.spec Normal file
View File

@ -0,0 +1,83 @@
#
# spec file for package docparser
#
# Copyright (c) 2022 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2022 Hillwood Yang <hillwood@opensuse.org>
#
# 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