xchm/xchm.spec
wangtaozhi 3e67e8c19d Package init
- 初始化提交
2023-06-26 14:14:41 +08:00

51 lines
1.6 KiB
RPMSpec

Summary: A GUI front-end to CHMlib
Name: xchm
Version: 1.35
Release: 1
License: GPL-2.0-or-later
URL: https://github.com/rzvncj/xCHM
Source0: %{url}/releases/download/%{version}/xchm-%{version}.tar.gz
Patch0: 0001-Fix-for-compiling-under-older-versions-of-wxWidgets.patch
BuildRequires: make
BuildRequires: gcc-c++
BuildRequires: gcc
BuildRequires: chmlib-devel
BuildRequires: wxGTK3-devel
BuildRequires: desktop-file-utils
BuildRequires: libappstream-glib
%description
xCHM is a wxWidgets-based .chm viewer. xCHM can show the contents tree if
one is available, print the displayed page, change fonts faces and size,
work with bookmarks, do the usual history stunts (forward, back, home),
provide a searchable index and seach for text in the whole book. The
search is a fast B-tree search, based on the internal $FIftiMain file
found inside indexed .chm archives, and it can be customized to search in
content or just the topics' titles.
%prep
%autosetup -p1
%build
%configure --disable-dependency-tracking
%make_build
%install
%make_install
desktop-file-validate %{buildroot}%{_datadir}/applications/xchm.desktop
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/xchm.appdata.xml
%find_lang %{name}
%files -f %{name}.lang
%doc ChangeLog README
%license AUTHORS COPYING
%{_bindir}/xchm
%{_datadir}/applications/xchm.desktop
%{_datadir}/icons/hicolor/*/apps/xchm*
%{_datadir}/metainfo/xchm.appdata.xml
%{_mandir}/man1/xchm.1*
%changelog
* Fri May 26 2023 wangtaozhi <wangtaozhi@kylinsec.com.cn> - 1.35-1
- Package init