Blame mkdocs.spec

ad73c3
Name:           mkdocs
ad73c3
Version:        0.14.0
c9e17c
Release:        6%{?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
e5eee8
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
ad73c3
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
ad73c3
MkDocs is Python powered, this package is built with Python 3.
ad73c3
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
ad73c3
for theme in mkdocs/themes/*
ad73c3
do 
ad73c3
mkdir -p %{buildroot}/%{python3_sitelib}/$theme/fonts/
ad73c3
ln -sf %{_datadir}/fonts/fontawesome/FontAwesome.otf \
ad73c3
%{buildroot}/%{python3_sitelib}/$theme/fonts/
ad73c3
ln -sf %{_datadir}/fonts/fontawesome/fontawesome-webfont.svg \
ad73c3
%{buildroot}/%{python3_sitelib}/$theme/fonts/
ad73c3
ln -sf %{_datadir}/fonts/fontawesome/fontawesome-webfont.ttf \
ad73c3
%{buildroot}/%{python3_sitelib}/$theme/fonts/
ad73c3
ln -sf %{_datadir}/fonts/fontawesome/fontawesome-webfont.woff \
ad73c3
%{buildroot}/%{python3_sitelib}/$theme/fonts/
ad73c3
ln -sf %{_datadir}/javascript/highlight.js/highlight.pack.js \
ad73c3
%{buildroot}/%{python3_sitelib}/$theme/js/
ad73c3
done
ad73c3
ad73c3
%check
ad73c3
ad73c3
%{__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
ad73c3
%changelog
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