Blob Blame History Raw
Name:           mkdocs
Version:        0.14.0
Release:        5%{?dist}
Summary:        Python tool to create HTML documentation from markdown sources

License:        BSD
Source1:        mkdocs.1

BuildArch:      noarch

BuildRequires:  python3-setuptools
BuildRequires:  python3-devel
BuildRequires:  python3-tornado
BuildRequires:  python3-PyYAML
BuildRequires:  python3-markdown
BuildRequires:  python3-jinja2
BuildRequires:  python3-click
BuildRequires:  livereload
BuildRequires:  fontawesome-fonts
BuildRequires:  fontawesome-fonts-web
BuildRequires:  js-highlight

Requires:       python3-tornado
Requires:       python3-PyYAML
Requires:       python3-markdown
Requires:       python3-jinja2
Requires:       python3-click
Requires:       livereload
Requires:       fontawesome-fonts
Requires:       fontawesome-fonts-web
Requires:       js-highlight

MkDocs is a fast and simple way to create a website from source files written 
in Markdown, and configured with a YAML configuration file, the documentation 
can be hosted anywhere, even in free hosting services like Read the Docs and 
GitHub Pages.

MkDocs is Python powered, this package is built with Python 3.

%setup -q -n %{name}-%{version}

rm -rf %{name}

find %{_builddir}/%{name}-%{version} -name '*.py' \
    -exec sed -i '1{\@^#!/usr/bin/env python@d}' {} \;

rm -rf mkdocs/themes/*/fonts/fontawesome-webfont.*

rm -rf mkdocs/themes/*/js/highlight.pack.js

sed -i 1d %{_builddir}/%{name}-%{version}/%{name}/utils/

%{__python3} build

%{__python3} install --skip-build --root %{buildroot}

mkdir -p %{buildroot}/%{_mandir}/man1
install -p -m 0644 %{SOURCE1} %{buildroot}/%{_mandir}/man1/

for theme in mkdocs/themes/*
mkdir -p %{buildroot}/%{python3_sitelib}/$theme/fonts/
ln -sf %{_datadir}/fonts/fontawesome/FontAwesome.otf \
ln -sf %{_datadir}/fonts/fontawesome/fontawesome-webfont.svg \
ln -sf %{_datadir}/fonts/fontawesome/fontawesome-webfont.ttf \
ln -sf %{_datadir}/fonts/fontawesome/fontawesome-webfont.woff \
ln -sf %{_datadir}/javascript/highlight.js/highlight.pack.js \


%{__python3} test

%license LICENSE

* Mon Jul 27 2015 William Moreno Reyes <williamjmorenor at> 
- 0.14.0-5
- Initial import of #1230963
- Fix BuildRequires