From 2d26b8c7b4e2faae76aeafd238d2cdfbf7ddd98e Mon Sep 17 00:00:00 2001 From: Sheng Mao Date: Wed, 25 Nov 2020 23:38:08 -0700 Subject: [PATCH] Organize fossil documents in fossil repository format rhbz#1839024 --- fossil.spec | 20 ++++++++++++++++++-- template.config | 10 ++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 template.config diff --git a/fossil.spec b/fossil.spec index 028bbde..2f925ec 100644 --- a/fossil.spec +++ b/fossil.spec @@ -1,12 +1,13 @@ %bcond_without tests Name: fossil Version: 2.12.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A distributed SCM with bug tracking and wiki License: BSD URL: https://www.fossil-scm.org/ Source0: %{URL}index.html/uv/fossil-src-%{version}.tar.gz +Source1: template.config BuildRequires: gcc-c++ BuildRequires: zlib-devel @@ -23,7 +24,8 @@ interface. Summary: Fossil documentation %description doc -Documentation in HTML format for %{name}. +Documentation in repository format for %{name}. Users can run `fossil ui` +in %{_docdir}/%{name}-doc folder to view documents in browser. %prep %autosetup @@ -71,15 +73,29 @@ install -D -m 0644 -t %{buildroot}%{_mandir}/man1 fossil.1 tclsh test/tester.tcl %{buildroot}%{_bindir}/%name %endif + +# create a fossil repository for documents with default settings +%{buildroot}%{_bindir}/%name init --admin-user %name %name-doc.fossil +%{buildroot}%{_bindir}/%name open --empty --force %name-doc.fossil +%{buildroot}%{_bindir}/%name configuration import %{SOURCE1} +%{buildroot}%{_bindir}/%name add www +%{buildroot}%{_bindir}/%name commit --user %name --force --comment '%name-doc initial commit' + + %files %license COPYRIGHT-BSD2.txt %{_bindir}/%name %{_mandir}/man1/%name.1* %files doc +%doc %name-doc.fossil +%doc .fslckout %doc www %changelog +* Wed Nov 25 2020 Sheng Mao - 2.12.1-2 +- Organize fossil documents in fossil repository format rhbz#1839024 + * Mon Oct 19 2020 Sheng Mao - 2.12.1-1 - Upgrade to fossil 2.12.1 after adding FTS4 to system-wide sqlite (rhbz#1887106) rhbz#1863577, rhbz#1870790 diff --git a/template.config b/template.config new file mode 100644 index 0000000..d5f1811 --- /dev/null +++ b/template.config @@ -0,0 +1,10 @@ +config /config 41 +1606368705 'timeline-plaintext' value '1' +config /config 44 +1606369015 'project-name' value 'fossil-doc' +config /config 57 +1606369069 'index-page' value '/doc/trunk/www/index.wiki' +config /config 34 +1606369257 'binary-glob' value '*' +config /config 34 +1606368705 'hash-policy' value '2'