|
 |
ad73c36 |
Name: mkdocs
|
|
 |
ad73c36 |
Version: 0.14.0
|
|
 |
ad73c36 |
Release: 5%{?dist}
|
|
 |
ad73c36 |
Summary: Python tool to create HTML documentation from markdown sources
|
|
 |
ad73c36 |
|
|
 |
ad73c36 |
License: BSD
|
|
 |
ad73c36 |
URL: http://www.mkdocs.org/
|
|
 |
ad73c36 |
Source0: https://github.com/%{name}/%{name}/archive/%{version}.tar.gz
|
|
 |
ad73c36 |
#https://github.com/mkdocs/mkdocs/pull/687
|
|
 |
ad73c36 |
Source1: mkdocs.1
|
|
 |
ad73c36 |
|
|
 |
ad73c36 |
BuildArch: noarch
|
|
 |
ad73c36 |
|
|
 |
ad73c36 |
BuildRequires: python3-setuptools
|
|
 |
ad73c36 |
BuildRequires: python3-devel
|
|
 |
e5eee8e |
BuildRequires: python3-tornado
|
|
 |
e5eee8e |
BuildRequires: python3-PyYAML
|
|
 |
e5eee8e |
BuildRequires: python3-markdown
|
|
 |
e5eee8e |
BuildRequires: python3-jinja2
|
|
 |
e5eee8e |
BuildRequires: python3-click
|
|
 |
e5eee8e |
BuildRequires: livereload
|
|
 |
ad73c36 |
BuildRequires: fontawesome-fonts
|
|
 |
ad73c36 |
BuildRequires: fontawesome-fonts-web
|
|
 |
ad73c36 |
BuildRequires: js-highlight
|
|
 |
e5eee8e |
|
|
 |
e5eee8e |
|
|
 |
ad73c36 |
Requires: python3-tornado
|
|
 |
ad73c36 |
Requires: python3-PyYAML
|
|
 |
ad73c36 |
Requires: python3-markdown
|
|
 |
ad73c36 |
Requires: python3-jinja2
|
|
 |
ad73c36 |
Requires: python3-click
|
|
 |
ad73c36 |
Requires: livereload
|
|
 |
ad73c36 |
Requires: fontawesome-fonts
|
|
 |
ad73c36 |
Requires: fontawesome-fonts-web
|
|
 |
ad73c36 |
Requires: js-highlight
|
|
 |
ad73c36 |
|
|
 |
ad73c36 |
%description
|
|
 |
ad73c36 |
MkDocs is a fast and simple way to create a website from source files written
|
|
 |
ad73c36 |
in Markdown, and configured with a YAML configuration file, the documentation
|
|
 |
ad73c36 |
can be hosted anywhere, even in free hosting services like Read the Docs and
|
|
 |
ad73c36 |
GitHub Pages.
|
|
 |
ad73c36 |
|
|
 |
ad73c36 |
MkDocs is Python powered, this package is built with Python 3.
|
|
 |
ad73c36 |
|
|
 |
ad73c36 |
%prep
|
|
 |
ad73c36 |
%setup -q -n %{name}-%{version}
|
|
 |
ad73c36 |
|
|
 |
ad73c36 |
rm -rf %{name}.egg.info
|
|
 |
ad73c36 |
|
|
 |
ad73c36 |
find %{_builddir}/%{name}-%{version} -name '*.py' \
|
|
 |
ad73c36 |
-exec sed -i '1{\@^#!/usr/bin/env python@d}' {} \;
|
|
 |
ad73c36 |
|
|
 |
ad73c36 |
rm -rf mkdocs/themes/*/fonts/fontawesome-webfont.*
|
|
 |
ad73c36 |
|
|
 |
ad73c36 |
rm -rf mkdocs/themes/*/js/highlight.pack.js
|
|
 |
ad73c36 |
|
|
 |
ad73c36 |
sed -i 1d %{_builddir}/%{name}-%{version}/%{name}/utils/ghp_import.py
|
|
 |
ad73c36 |
|
|
 |
ad73c36 |
%build
|
|
 |
ad73c36 |
%{__python3} setup.py build
|
|
 |
ad73c36 |
|
|
 |
ad73c36 |
%install
|
|
 |
ad73c36 |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
 |
ad73c36 |
|
|
 |
ad73c36 |
mkdir -p %{buildroot}/%{_mandir}/man1
|
|
 |
ad73c36 |
install -p -m 0644 %{SOURCE1} %{buildroot}/%{_mandir}/man1/
|
|
 |
ad73c36 |
|
|
 |
ad73c36 |
for theme in mkdocs/themes/*
|
|
 |
ad73c36 |
do
|
|
 |
ad73c36 |
mkdir -p %{buildroot}/%{python3_sitelib}/$theme/fonts/
|
|
 |
ad73c36 |
ln -sf %{_datadir}/fonts/fontawesome/FontAwesome.otf \
|
|
 |
ad73c36 |
%{buildroot}/%{python3_sitelib}/$theme/fonts/
|
|
 |
ad73c36 |
ln -sf %{_datadir}/fonts/fontawesome/fontawesome-webfont.svg \
|
|
 |
ad73c36 |
%{buildroot}/%{python3_sitelib}/$theme/fonts/
|
|
 |
ad73c36 |
ln -sf %{_datadir}/fonts/fontawesome/fontawesome-webfont.ttf \
|
|
 |
ad73c36 |
%{buildroot}/%{python3_sitelib}/$theme/fonts/
|
|
 |
ad73c36 |
ln -sf %{_datadir}/fonts/fontawesome/fontawesome-webfont.woff \
|
|
 |
ad73c36 |
%{buildroot}/%{python3_sitelib}/$theme/fonts/
|
|
 |
ad73c36 |
ln -sf %{_datadir}/javascript/highlight.js/highlight.pack.js \
|
|
 |
ad73c36 |
%{buildroot}/%{python3_sitelib}/$theme/js/
|
|
 |
ad73c36 |
done
|
|
 |
ad73c36 |
|
|
 |
ad73c36 |
%check
|
|
 |
ad73c36 |
|
|
 |
ad73c36 |
%{__python3} setup.py test
|
|
 |
ad73c36 |
|
|
 |
ad73c36 |
%files
|
|
 |
ad73c36 |
%doc README.md
|
|
 |
ad73c36 |
%license LICENSE
|
|
 |
ad73c36 |
%{_bindir}/*
|
|
 |
ad73c36 |
%{_mandir}/man1/*
|
|
 |
ad73c36 |
%{python3_sitelib}/%{name}
|
|
 |
ad73c36 |
%{python3_sitelib}/%{name}-%{version}-py?.?.egg-info
|
|
 |
ad73c36 |
|
|
 |
ad73c36 |
%changelog
|
|
 |
ad73c36 |
* Mon Jul 27 2015 William Moreno Reyes <williamjmorenor at gmail.com>
|
|
 |
ad73c36 |
- 0.14.0-5
|
|
 |
ad73c36 |
- Initial import of #1230963
|
|
 |
e5eee8e |
- Fix BuildRequires
|