From e21622a674b9a5e186325b1b7073770f77471f30 Mon Sep 17 00:00:00 2001 From: William Moreno Reyes Date: Apr 08 2016 22:37:18 +0000 Subject: Update to v.0.15.3 Signed-off-by: William Moreno Reyes --- diff --git a/.gitignore b/.gitignore index f4be546..2bb08c7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /mkdocs-0.14.0.tar.gz /0.14.0.tar.gz +/0.15.3.tar.gz diff --git a/mkdocs.spec b/mkdocs.spec index f46f354..292795b 100644 --- a/mkdocs.spec +++ b/mkdocs.spec @@ -1,6 +1,6 @@ Name: mkdocs -Version: 0.14.0 -Release: 9%{?dist} +Version: 0.15.3 +Release: 1%{?dist} Summary: Python tool to create HTML documentation from markdown sources License: BSD @@ -22,7 +22,8 @@ BuildRequires: livereload BuildRequires: fontawesome-fonts BuildRequires: fontawesome-fonts-web BuildRequires: js-highlight - +BuildRequires: mkdocs-bootstrap +BuildRequires: mkdocs-bootswatch Requires: python3-tornado Requires: python3-PyYAML @@ -34,6 +35,10 @@ Requires: fontawesome-fonts Requires: fontawesome-fonts-web Requires: js-highlight +%package docs +Summary: Documentantion for %{name} +BuildRequires: mkdocs + %description 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 @@ -42,6 +47,9 @@ GitHub Pages. MkDocs is Python powered, this package is built with Python 3. +%description docs +Documentation for %{name}. + %prep %setup -q -n %{name}-%{version} @@ -65,23 +73,29 @@ sed -i 1d %{_builddir}/%{name}-%{version}/%{name}/utils/ghp_import.py mkdir -p %{buildroot}/%{_mandir}/man1 install -p -m 0644 %{SOURCE1} %{buildroot}/%{_mandir}/man1/ -for theme in mkdocs/themes/* +themes="mkdocs readthedocs" + +for theme in $themes do -mkdir -p %{buildroot}/%{python3_sitelib}/$theme/fonts/ +mkdir -p %{buildroot}/%{python3_sitelib}/%{name}/themes/$theme/fonts/ ln -sf %{_datadir}/fonts/fontawesome/FontAwesome.otf \ -%{buildroot}/%{python3_sitelib}/$theme/fonts/ +%{buildroot}/%{python3_sitelib}/%{name}/themes/$theme/fonts/ ln -sf %{_datadir}/fonts/fontawesome/fontawesome-webfont.svg \ -%{buildroot}/%{python3_sitelib}/$theme/fonts/ +%{buildroot}/%{python3_sitelib}/%{name}/themes/$theme/fonts/ ln -sf %{_datadir}/fonts/fontawesome/fontawesome-webfont.ttf \ -%{buildroot}/%{python3_sitelib}/$theme/fonts/ +%{buildroot}/%{python3_sitelib}/%{name}/themes/$theme/fonts/ ln -sf %{_datadir}/fonts/fontawesome/fontawesome-webfont.woff \ -%{buildroot}/%{python3_sitelib}/$theme/fonts/ +%{buildroot}/%{python3_sitelib}/%{name}/themes/$theme/fonts/ ln -sf %{_datadir}/javascript/highlight.js/highlight.pack.js \ -%{buildroot}/%{python3_sitelib}/$theme/js/ +%{buildroot}/%{python3_sitelib}/%{name}/themes/$theme/js/ done +export LC_ALL=C.UTF-8 +export LANG=C.UTF-8 +touch mkdocs.yml +mkdocs build + %check -#https://github.com/mkdocs/mkdocs/issues/751 #%{__python3} setup.py test %files @@ -92,7 +106,14 @@ done %{python3_sitelib}/%{name} %{python3_sitelib}/%{name}-%{version}-py?.?.egg-info +%files docs +%license LICENSE +%doc site/* + %changelog +* Fri Apr 08 2016 William Moreno - 0.15.3-1 +- Update to v0.15.3 + * Thu Feb 04 2016 Fedora Release Engineering - 0.14.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild diff --git a/sources b/sources index fd81004..fb182c9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -de422d15a17a5f752df7a542d6b75aa3 0.14.0.tar.gz +8d7ef937983bd7b7757d696aeaa5866a 0.15.3.tar.gz