15
0
forked from pool/python-mkdocs

Accepting request 894547 from home:Mailaender:branches:devel:languages:python

fix the build on Tumbleweed

OBS-URL: https://build.opensuse.org/request/show/894547
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mkdocs?expand=0&rev=1
This commit is contained in:
2021-05-20 20:43:02 +00:00
committed by Git OBS Bridge
commit 75b5a5562b
5 changed files with 161 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
1.1.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5b37a489e3d8873d038020fb839a21f3dd9f5bbac6fcbbeec61baa7a85c9abc1
size 6987352

34
python-mkdocs.changes Normal file
View File

@@ -0,0 +1,34 @@
-------------------------------------------------------------------
Wed May 19 18:13:47 UTC 2021 - Matthias Mailänder <mailaender@opensuse.org>
- update to version 1.1.2
- unbundled font awesome
-------------------------------------------------------------------
Fri Sep 14 09:30:48 UTC 2018 - ecsos@opensuse.org
- update to 1.0.4
- Bugfix: Ignore absolute links in Markdown (#1621).
- changes from 1.0.3
- Bugfix: Warn on relative paths in navigation (#1604).
- Bugfix: Handle empty theme_config.yml files correctly (#1602).
- changes from 1.0.2
- Bugfix: Provide absolute base_url to error templates (#1598).
- changes from 1.0.1
- Bugfix: Prevent page reload when [Enter] is pressed in search
box (#1589).
- Bugfix: Avoid calling search until all assets are ready
(#1584).
- Bugfix: Exclude README.md if index.md is present (#1580).
- Bugfix: Fix readthedocs theme navigation bug with homepage
(#1576).
- changes from 1.0.0
Internal handling of pages, files and navigation has been
completely refactored. See:
https://www.mkdocs.org/about/release-notes/#version-10-2018-08-03
-------------------------------------------------------------------
Tue Jul 3 17:40:35 UTC 2018 - ecsos@opensuse.org
- initial version 0.17.4

100
python-mkdocs.spec Normal file
View File

@@ -0,0 +1,100 @@
#
# spec file for package python-mkdocs
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-mkdocs
Version: 1.1.2
Release: 0
Summary: Project documentation with Markdown
License: BSD-2-Clause
Group: Development/Languages/Python
URL: https://www.mkdocs.org
Source: https://github.com/mkdocs/mkdocs/archive/%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module tox}
BuildRequires: %{python_module click}
BuildRequires: %{python_module flake8}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: fontawesome-fonts
BuildRequires: fontawesome-fonts-web
Requires: python-Jinja2
Requires: python-Markdown
Requires: python-PyYAML
Requires: python-click
Requires: python-ghp-import
Requires: python-livereload
Requires: python-tornado
Requires: fontawesome-fonts
Requires: fontawesome-fonts-web
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
MkDocs is a fast, simple and downright gorgeous static site generator that's
geared towards building project documentation. Documentation source files are
written in Markdown, and configured with a single YAML configuration file.
%prep
%setup -q -n mkdocs-%{version}
# Get rid of shebangs.
find . -type f -name "*.py" -exec sed -i '/#!\/usr\/bin\/env/d' {} \;
find . -type f -name "*.svg" -exec chmod -x {} \;
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/mkdocs
%python_expand %fdupes -s %{buildroot}%{python_sitelib}
# unbundle where possible
%if 0%{?suse_version} <= 1500
rm %{buildroot}%{python_sitelib}/mkdocs/themes/mkdocs/fonts/fontawesome-webfont.woff
ln -sf %{_datadir}/fonts/truetype/fontawesome-webfont.woff %{buildroot}%{python_sitelib}/mkdocs/themes/mkdocs/fonts/fontawesome-webfont.woff
rm %{buildroot}%{python_sitelib}/mkdocs/themes/mkdocs/fonts/fontawesome-webfont.svg
ln -sf %{_datadir}/font-awesome-web/fontawesome-webfont.svg %{buildroot}%{python_sitelib}/mkdocs/themes/mkdocs/fonts/fontawesome-webfont.svg
rm %{buildroot}%{python_sitelib}/mkdocs/themes/readthedocs/fonts/fontawesome-webfont.svg
ln -sf %{_datadir}/font-awesome-web/fontawesome-webfont.svg %{buildroot}%{python_sitelib}/mkdocs/themes/readthedocs/fonts/fontawesome-webfont.svg
rm %{buildroot}%{python_sitelib}/mkdocs/themes/readthedocs/fonts/fontawesome-webfont.ttf
ln -sf %{_datadir}/fonts/truetype/fontawesome-webfont.ttf %{buildroot}%{python_sitelib}/mkdocs/themes/readthedocs/fonts/fontawesome-webfont.ttf
%endif
%check
# tries to download stuff at runtime
#tox
%post
%python_install_alternative mkdocs
%postun
%python_uninstall_alternative mkdocs
%files %{python_files}
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/mkdocs
%{python_sitelib}/mkdocs/
%{python_sitelib}/mkdocs-%{version}-py%{python_version}.egg-info
%changelog