#5 Organize fossil documents in fossil repository format rhbz#1839024
Merged 3 years ago by defolos. Opened 3 years ago by ivzhh.
rpms/ ivzhh/fossil f32  into  f32

file modified
+18 -2
@@ -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 @@ 

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

  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 <shngmao@gmail.com> - 2.12.1-2

+ - Organize fossil documents in fossil repository format rhbz#1839024

+ 

  * Mon Oct 19 2020 Sheng Mao <shngmao@gmail.com> - 2.12.1-1

  - Upgrade to fossil 2.12.1 after adding FTS4 to system-wide sqlite (rhbz#1887106)

    rhbz#1863577, rhbz#1870790

file added
+10
@@ -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'

Hi @defolos, this pull request back ports the document patch to Fedora 32.

Thanks for taking care of this @ivzhh and sorry for this huge delay!

Pull-Request has been merged by defolos

3 years ago

No problem :) Thank you for reviewing this during the busy time!