Blame mkdocs.spec

ad73c3
Name:           mkdocs
fdddf0
Version:        0.16.1
a56187
Release:        3%{?dist}
ad73c3
Summary:        Python tool to create HTML documentation from markdown sources
ad73c3
ad73c3
License:        BSD
ad73c3
URL:            http://www.mkdocs.org/
ad73c3
Source0:        https://github.com/%{name}/%{name}/archive/%{version}.tar.gz
ad73c3
#https://github.com/mkdocs/mkdocs/pull/687
ad73c3
Source1:        mkdocs.1
ad73c3
ad73c3
BuildArch:      noarch
ad73c3
ad73c3
BuildRequires:  python3-setuptools
ad73c3
BuildRequires:  python3-devel
e5eee8
BuildRequires:  python3-tornado
e5eee8
BuildRequires:  python3-PyYAML
e5eee8
BuildRequires:  python3-markdown
e5eee8
BuildRequires:  python3-jinja2
e5eee8
BuildRequires:  python3-click
e5eee8
BuildRequires:  livereload
ad73c3
BuildRequires:  fontawesome-fonts
ad73c3
BuildRequires:  fontawesome-fonts-web
ad73c3
BuildRequires:  js-highlight
e21622
BuildRequires:  mkdocs-bootstrap
e21622
BuildRequires:  mkdocs-bootswatch
b93eef
BuildRequires:  js-jquery
b93eef
BuildRequires:  js-jquery1
e5eee8
ad73c3
Requires:       python3-tornado
ad73c3
Requires:       python3-PyYAML
ad73c3
Requires:       python3-markdown
ad73c3
Requires:       python3-jinja2
ad73c3
Requires:       python3-click
ad73c3
Requires:       livereload
ad73c3
Requires:       fontawesome-fonts
ad73c3
Requires:       fontawesome-fonts-web
ad73c3
Requires:       js-highlight
6e34ba
Requires:       mkdocs-bootstrap
6e34ba
Requires:       mkdocs-bootswatch
b93eef
Requires:       js-jquery
b93eef
Requires:       js-jquery1
b93eef
6e34ba
Enhances:       mkdocs-alabaster
6e34ba
Enhances:       mkdocs-cinder
6e34ba
Enhances:       mkdocs-material
6e34ba
fdddf0
Suggests:       mkdocs-basic-theme
ad73c3
e21622
%package docs
e21622
Summary:        Documentantion for %{name}
fdddf0
# This is the anterior version available 
d517ec
BuildRequires:  mkdocs
e21622
ad73c3
%description
ad73c3
MkDocs is a fast and simple way to create a website from source files written 
ad73c3
in Markdown, and configured with a YAML configuration file, the documentation 
ad73c3
can be hosted anywhere, even in free hosting services like Read the Docs and 
ad73c3
GitHub Pages.
ad73c3
e21622
%description docs
e21622
Documentation for %{name}.
e21622
ad73c3
%prep
ad73c3
%setup -q -n %{name}-%{version}
ad73c3
ad73c3
rm -rf %{name}.egg.info
ad73c3
ad73c3
find %{_builddir}/%{name}-%{version} -name '*.py' \
ad73c3
    -exec sed -i '1{\@^#!/usr/bin/env python@d}' {} \;
ad73c3
ad73c3
rm -rf mkdocs/themes/*/fonts/fontawesome-webfont.*
ad73c3
ad73c3
rm -rf mkdocs/themes/*/js/highlight.pack.js
ad73c3
ad73c3
sed -i 1d %{_builddir}/%{name}-%{version}/%{name}/utils/ghp_import.py
ad73c3
ad73c3
%build
c9e17c
%py3_build
ad73c3
ad73c3
%install
c9e17c
%py3_install
ad73c3
ad73c3
mkdir -p %{buildroot}/%{_mandir}/man1
ad73c3
install -p -m 0644 %{SOURCE1} %{buildroot}/%{_mandir}/man1/
ad73c3
e21622
themes="mkdocs readthedocs"
e21622
e21622
for theme in $themes
ad73c3
do 
e21622
mkdir -p %{buildroot}/%{python3_sitelib}/%{name}/themes/$theme/fonts/
ad73c3
ln -sf %{_datadir}/fonts/fontawesome/FontAwesome.otf \
e21622
%{buildroot}/%{python3_sitelib}/%{name}/themes/$theme/fonts/
ad73c3
ln -sf %{_datadir}/fonts/fontawesome/fontawesome-webfont.svg \
e21622
%{buildroot}/%{python3_sitelib}/%{name}/themes/$theme/fonts/
ad73c3
ln -sf %{_datadir}/fonts/fontawesome/fontawesome-webfont.ttf \
e21622
%{buildroot}/%{python3_sitelib}/%{name}/themes/$theme/fonts/
ad73c3
ln -sf %{_datadir}/fonts/fontawesome/fontawesome-webfont.woff \
e21622
%{buildroot}/%{python3_sitelib}/%{name}/themes/$theme/fonts/
ad73c3
ln -sf %{_datadir}/javascript/highlight.js/highlight.pack.js \
e21622
%{buildroot}/%{python3_sitelib}/%{name}/themes/$theme/js/
ad73c3
done
ad73c3
b93eef
ln -sf %{_datadir}/javascript/jquery/latest/jquery.min.js \
b93eef
%{buildroot}/%{python3_sitelib}/%{name}/themes/readthedocs/js/jquery-2.1.1.min.js
b93eef
58a9a9
ln -sf %{_datadir}/javascript/jquery/1/jquery.min.js \
b93eef
%{buildroot}/%{python3_sitelib}/%{name}/themes/mkdocs/js/jquery-1.10.2.min.js
b93eef
b93eef
aa8f53
export LC_ALL=C.UTF-8
aa8f53
export LANG=C.UTF-8
aa8f53
touch mkdocs.yml
aa8f53
mkdocs build
e21622
ad73c3
%check
de47c1
#%%{__python3} setup.py test
ad73c3
ad73c3
%files
ad73c3
%doc README.md
ad73c3
%license LICENSE
ad73c3
%{_bindir}/*
ad73c3
%{_mandir}/man1/* 
ad73c3
%{python3_sitelib}/%{name}
ad73c3
%{python3_sitelib}/%{name}-%{version}-py?.?.egg-info
ad73c3
e21622
%files docs
e21622
%license LICENSE
aa8f53
%doc site/*
e21622
ad73c3
%changelog
a56187
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.1-3
a56187
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a56187
aa8f53
* Fri Jan 20 2017 William Moreno <williamjmorenor@gmail.com> - 0.16.1-2
aa8f53
- Bootstrapping 0.16.1 in F25
aa8f53
fdddf0
* Thu Jan 12 2017 William Moreno <williamjmorenor@gmail.com> - 0.16.1-1
fdddf0
- Update to v0.16.1
fdddf0
ff56d7
* Tue Dec 20 2016 Miro Hrončok <mhroncok@redhat.com> - 0.15.3-7
ff56d7
- Build the docs with self (was disabled for bootstrapping)
ff56d7
d517ec
* Tue Dec 20 2016 Miro Hrončok <mhroncok@redhat.com> - 0.15.3-6
58a9a9
- Change so it will use the available version of jquery1
d517ec
472654
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.15.3-5
472654
- Rebuild for Python 3.6
472654
8b5014
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15.3-4
8b5014
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
8b5014
b93eef
* Fri Jun 03 2016 William Moreno <williamjmorenor@gmail.com> - 0.15.3-3
b93eef
- Unbundle jquery libs
b93eef
6e34ba
* Fri Apr 08 2016 William Moreno <williamjmorenor@gmail.com> - 0.15.3-2
6e34ba
- Updates requires
6e34ba
- List avaiables themes as enhances
6e34ba
e21622
* Fri Apr 08 2016 William Moreno <williamjmorenor@gmail.com> - 0.15.3-1
e21622
- Update to v0.15.3
e21622
9eaa9d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-9
9eaa9d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9eaa9d
6938c4
* Sun Nov 15 2015 William Moreno <williamjmorenor@gmail.com> - 0.14.0-8
b95fc4
- fedoraproject.org/wiki/FAD_Python_3_Porting_2015
b95fc4
- disable test 
6938c4
f3e70f
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.0-7
f3e70f
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
f3e70f
c9e17c
* Fri Jul 31 2015 Fedora <williamjmorenor@gmail.com> 
c9e17c
- 0.14.0-6
c9e17c
- Update Python macros
c9e17c
ad73c3
* Mon Jul 27 2015 William Moreno Reyes <williamjmorenor at gmail.com> 
ad73c3
- 0.14.0-5
ad73c3
- Initial import of #1230963
e5eee8
- Fix BuildRequires