| |
@@ -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
|
| |
Hi @defolos, this pull request back ports the document patch to Fedora 32.