Group :: Text tools
RPM: deepin-docparser
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define repo docparser
%define soname 1
Name: deepin-docparser
Version: 1.0.1
Release: alt1
Summary: Document parser library by deepin
Summary(ru): Библиотека синтаксического анализа документов от deepin
License: GPL-3.0+ and (Zlib and MIT and BSL-1.0)
Group: Text tools
Url: https://github.com/linuxdeepin/docparser
Source: %url/archive/%version/%repo-%version.tar.gz
BuildRequires: gcc-c++ qt5-base-devel libpoppler-cpp-devel
%description
The file content analysis library is provided for the full-text search function
of document management.
%description -l ru
Библиотека анализа содержимого файлов предоставляет функции полнотекстового
поиска в системе управления документами.
%package -n lib%repo%soname
Summary: Document parser library by deepin
Summary(ru): Библиотека синтаксического анализа документов от deepin
Group: System/Libraries
%description -n lib%repo%soname
The file content analysis library is provided for the full-text search function
of document management.
%description -n lib%repo%soname -l ru
Библиотека анализа содержимого файлов предоставляет функции полнотекстового
поиска в системе управления документами.
%package -n lib%repo-devel
Summary: Development package for %name
Summary(ru): Пакет разработки для %name
Group: Development/C++
%description -n lib%repo-devel
Header files and libraries for %name.
%description -n lib%repo-devel -l ru
Заголовочные файлы и библиотеки для %name.
%prep
%setup -n %repo-%version
%build
%qmake_qt5 \
CONFIG+=nostrip \
VERSION=%version \
LIB_INSTALL_DIR=%_libdir \
%nil
%make_build
%install
%makeinstall INSTALL_ROOT=%buildroot
%files -n lib%repo%soname
%doc LICENSE README.md
%_libdir/lib%repo.so.%{soname}*
%files -n lib%repo-devel
%dir %_includedir/%repo/
%_includedir/%repo/%repo.h
%_libdir/lib%repo.so
%_pkgconfigdir/%repo.pc
%changelog
…
Full changelog you can see here
%define soname 1
Name: deepin-docparser
Version: 1.0.1
Release: alt1
Summary: Document parser library by deepin
Summary(ru): Библиотека синтаксического анализа документов от deepin
License: GPL-3.0+ and (Zlib and MIT and BSL-1.0)
Group: Text tools
Url: https://github.com/linuxdeepin/docparser
Source: %url/archive/%version/%repo-%version.tar.gz
BuildRequires: gcc-c++ qt5-base-devel libpoppler-cpp-devel
%description
The file content analysis library is provided for the full-text search function
of document management.
%description -l ru
Библиотека анализа содержимого файлов предоставляет функции полнотекстового
поиска в системе управления документами.
%package -n lib%repo%soname
Summary: Document parser library by deepin
Summary(ru): Библиотека синтаксического анализа документов от deepin
Group: System/Libraries
%description -n lib%repo%soname
The file content analysis library is provided for the full-text search function
of document management.
%description -n lib%repo%soname -l ru
Библиотека анализа содержимого файлов предоставляет функции полнотекстового
поиска в системе управления документами.
%package -n lib%repo-devel
Summary: Development package for %name
Summary(ru): Пакет разработки для %name
Group: Development/C++
%description -n lib%repo-devel
Header files and libraries for %name.
%description -n lib%repo-devel -l ru
Заголовочные файлы и библиотеки для %name.
%prep
%setup -n %repo-%version
%build
%qmake_qt5 \
CONFIG+=nostrip \
VERSION=%version \
LIB_INSTALL_DIR=%_libdir \
%nil
%make_build
%install
%makeinstall INSTALL_ROOT=%buildroot
%files -n lib%repo%soname
%doc LICENSE README.md
%_libdir/lib%repo.so.%{soname}*
%files -n lib%repo-devel
%dir %_includedir/%repo/
%_includedir/%repo/%repo.h
%_libdir/lib%repo.so
%_pkgconfigdir/%repo.pc
%changelog
…
Full changelog you can see here