ad73c36
Name:           mkdocs
0eb382f
Version:        0.16.3
0eb382f
Release:        1%{?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
e21622a
BuildRequires:  mkdocs-bootstrap
e21622a
BuildRequires:  mkdocs-bootswatch
b93eef9
BuildRequires:  js-jquery
b93eef9
BuildRequires:  js-jquery1
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
6e34bae
Requires:       mkdocs-bootstrap
6e34bae
Requires:       mkdocs-bootswatch
b93eef9
Requires:       js-jquery
b93eef9
Requires:       js-jquery1
b93eef9
6e34bae
Enhances:       mkdocs-alabaster
6e34bae
Enhances:       mkdocs-cinder
6e34bae
Enhances:       mkdocs-material
6e34bae
fdddf0e
Suggests:       mkdocs-basic-theme
ad73c36
e21622a
%package docs
e21622a
Summary:        Documentantion for %{name}
fdddf0e
# This is the anterior version available 
d517ece
BuildRequires:  mkdocs
e21622a
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
e21622a
%description docs
e21622a
Documentation for %{name}.
e21622a
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
c9e17cf
%py3_build
ad73c36
ad73c36
%install
c9e17cf
%py3_install
ad73c36
ad73c36
mkdir -p %{buildroot}/%{_mandir}/man1
ad73c36
install -p -m 0644 %{SOURCE1} %{buildroot}/%{_mandir}/man1/
ad73c36
e21622a
themes="mkdocs readthedocs"
e21622a
e21622a
for theme in $themes
ad73c36
do 
e21622a
mkdir -p %{buildroot}/%{python3_sitelib}/%{name}/themes/$theme/fonts/
ad73c36
ln -sf %{_datadir}/fonts/fontawesome/FontAwesome.otf \
e21622a
%{buildroot}/%{python3_sitelib}/%{name}/themes/$theme/fonts/
ad73c36
ln -sf %{_datadir}/fonts/fontawesome/fontawesome-webfont.svg \
e21622a
%{buildroot}/%{python3_sitelib}/%{name}/themes/$theme/fonts/
ad73c36
ln -sf %{_datadir}/fonts/fontawesome/fontawesome-webfont.ttf \
e21622a
%{buildroot}/%{python3_sitelib}/%{name}/themes/$theme/fonts/
ad73c36
ln -sf %{_datadir}/fonts/fontawesome/fontawesome-webfont.woff \
e21622a
%{buildroot}/%{python3_sitelib}/%{name}/themes/$theme/fonts/
ad73c36
ln -sf %{_datadir}/javascript/highlight.js/highlight.pack.js \
e21622a
%{buildroot}/%{python3_sitelib}/%{name}/themes/$theme/js/
ad73c36
done
ad73c36
b93eef9
ln -sf %{_datadir}/javascript/jquery/latest/jquery.min.js \
b93eef9
%{buildroot}/%{python3_sitelib}/%{name}/themes/readthedocs/js/jquery-2.1.1.min.js
b93eef9
58a9a99
ln -sf %{_datadir}/javascript/jquery/1/jquery.min.js \
b93eef9
%{buildroot}/%{python3_sitelib}/%{name}/themes/mkdocs/js/jquery-1.10.2.min.js
b93eef9
b93eef9
aa8f536
export LC_ALL=C.UTF-8
aa8f536
export LANG=C.UTF-8
aa8f536
touch mkdocs.yml
aa8f536
mkdocs build
e21622a
ad73c36
%check
de47c1a
#%%{__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
e21622a
%files docs
e21622a
%license LICENSE
aa8f536
%doc site/*
e21622a
ad73c36
%changelog
0eb382f
* Tue Jun 06 2017 William Moreno <williamjmorenor@gmail.com> - 0.16.3-1
0eb382f
- Update to 0.16.3 upstream release
0eb382f
a561870
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.1-3
a561870
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a561870
aa8f536
* Fri Jan 20 2017 William Moreno <williamjmorenor@gmail.com> - 0.16.1-2
aa8f536
- Bootstrapping 0.16.1 in F25
aa8f536
fdddf0e
* Thu Jan 12 2017 William Moreno <williamjmorenor@gmail.com> - 0.16.1-1
fdddf0e
- Update to v0.16.1
fdddf0e
ff56d73
* Tue Dec 20 2016 Miro Hrončok <mhroncok@redhat.com> - 0.15.3-7
ff56d73
- Build the docs with self (was disabled for bootstrapping)
ff56d73
d517ece
* Tue Dec 20 2016 Miro Hrončok <mhroncok@redhat.com> - 0.15.3-6
58a9a99
- Change so it will use the available version of jquery1
d517ece
472654d
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.15.3-5
472654d
- Rebuild for Python 3.6
472654d
8b50144
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15.3-4
8b50144
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
8b50144
b93eef9
* Fri Jun 03 2016 William Moreno <williamjmorenor@gmail.com> - 0.15.3-3
b93eef9
- Unbundle jquery libs
b93eef9
6e34bae
* Fri Apr 08 2016 William Moreno <williamjmorenor@gmail.com> - 0.15.3-2
6e34bae
- Updates requires
6e34bae
- List avaiables themes as enhances
6e34bae
e21622a
* Fri Apr 08 2016 William Moreno <williamjmorenor@gmail.com> - 0.15.3-1
e21622a
- Update to v0.15.3
e21622a
9eaa9da
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-9
9eaa9da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9eaa9da
6938c49
* Sun Nov 15 2015 William Moreno <williamjmorenor@gmail.com> - 0.14.0-8
b95fc42
- fedoraproject.org/wiki/FAD_Python_3_Porting_2015
b95fc42
- disable test 
6938c49
f3e70fc
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.0-7
f3e70fc
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
f3e70fc
c9e17cf
* Fri Jul 31 2015 Fedora <williamjmorenor@gmail.com> 
c9e17cf
- 0.14.0-6
c9e17cf
- Update Python macros
c9e17cf
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