Organize fossil documents in fossil repository format rhbz#1839024
This commit is contained in:
parent
f00bfcf918
commit
2d26b8c7b4
2 changed files with 28 additions and 2 deletions
20
fossil.spec
20
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 <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
|
||||
|
|
|
|||
10
template.config
Normal file
10
template.config
Normal file
|
|
@ -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'
|
||||
Loading…
Add table
Add a link
Reference in a new issue