## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: docparser Version: 1.0.1 Release: %autorelease Summary: A document parser library ported from document2html # The entire source code is GPLv2+ except # src/utils/getoptpp.* which are Boost, # src/utils/json.hpp, # src/utils/miniz.c, # src/utils/pugiconfig.hpp, # src/utils/pugixml.cpp and # src/utils/pugixml.hpp # which are MIT, # /src/utils/lodepng.* which are zlib License: GPLv3+ and Boost and MIT and zlib URL: https://github.com/linuxdeepin/docparser Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: pkgconfig(poppler-cpp) BuildRequires: pkgconfig(Qt5Core) %description This file content analysis library is provided for the full-text search function of document management. %package devel Summary: Development package for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Header files and libraries for %{name}. %prep %autosetup %build export PATH=%{_qt5_bindir}:$PATH %qmake_qt5 LIB_INSTALL_DIR=%{_libdir} %make_build %install %make_install INSTALL_ROOT=%{buildroot} %files %license LICENSE %doc README.md %{_libdir}/lib%{name}.so.1* %files devel %{_includedir}/%{name}/ %{_libdir}/lib%{name}.so %{_libdir}/pkgconfig/%{name}.pc %changelog * Thu Jul 21 2022 Fedora Release Engineering 1.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Mar 09 2022 Robin Lee 1.0.1-1 - Initial import (RHBZ#2059820)