Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37765765
en ru br
ALT Linux repos
S:0.15-alt1

Group :: Text tools
RPM: hotdoc

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_enable snapshot
%define ver_major 0.15

%def_disable bootstrap_theme
%def_enable check

Name: hotdoc
Version: %ver_major
Release: alt1

Summary: Hotdoc is a documentation framework
License: LGPL-2.1-or-later
Group: Text tools
Url: https://github.com/%name/%name

%if_disabled snapshot
Source: %url/archive/%version/%name-%version.tar.gz
%else
Source: %name-%version.tar
%endif
Source1: %name-%version-bootstrap_theme.tar

# provided by hotdoc/parsers/c_comment_scanner/c_comment_scanner.cpython-3*.so

%py3_provides hotdoc.parsers.c_comment_scanner.c_comment_scanner

Requires: clang-devel llvm-devel
Requires: bison flex
Requires: python3-module-appdirs >= 1.4.4
Requires: python3-module-contextlib2 >= 0.6.0
Requires: python3-module-charset-normalizer >= 2.1.1
Requires: python3-module-faust-cchardet >= 2.1.18
Requires: python3-module-wheezy.template >= 3.0.3
Requires: python3-module-contextlib2 >= 0.5.5
Requires: python3-module-dateutil >= 2.8.2
Requires: python3-module-dbus-deviation >= 0.6.1
Requires: python3-module-feedgen >= 0.9.0
Requires: python3-module-lxml >= 4.9.1
Requires: python3-module-pkgconfig >= 1.5.1
Requires: python3-module-toposort >= 1.6
Requires: python3-module-yaml >= 5.4.1
Requires: python3-module-schema >= 0.7.2
Requires: python3-module-six >= 1.16.0
Requires: python3-module-networkx-core >= 2.8.8

BuildRequires(pre): rpm-build-gir rpm-build-python3
BuildRequires: python3-module-setuptools python3-module-wheel
BuildRequires: cmake gcc-c++ bison flex
BuildRequires: pkgconfig(libxml-2.0) pkgconfig(gio-2.0) pkgconfig(json-glib-1.0)
# for hotdoc_bootstrap_theme
BuildRequires: meson npm node-gyp
%{?_enable_check:
BuildRequires: python3-module-appdirs python3-module-contextlib2
BuildRequires: python3-module-lxml python3-module-charset-normalizer
BuildRequires: python3-module-dateutil python3-module-feedgen
BuildRequires: python3-module-schema python3-module-toposort
BuildRequires: python3-module-wheezy.template python3-module-six
BuildRequires: python3-module-yaml python3-module-dbus-deviation
BuildRequires: python3-module-networkx-core}

%description
Hotdoc is a documentation micro-framework. It provides an interface for
extensions to plug upon, along with some base objects (formatters, ...)
See https://hotdoc.github.io for more unformation.

%prep
%setup %{?_disable_bootstrap_theme:-a1}
%if_enabled bootstrap_theme
pushd %name/%{name}_bootstrap_theme
npm install || npm audit fix --force &&
./node_modules/bower/bin/bower install &&
popd
tar -cf %name-%version-bootstrap_theme.tar hotdoc/hotdoc_bootstrap_theme/{node_modules,bower_components}/ && \
mv %name-%version-bootstrap_theme.tar %_sourcedir/
%endif

%build
%python3_build

%install
%python3_install

%check
%__python3 setup.py test

%files
%_bindir/%name
%_bindir/%{name}_dep_printer
%python3_sitelibdir/*
%doc README.md

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin