14
0
Files
python-pelican/python-pelican.spec
Matej Cepl 11d0d3ee8f - Update to version 4.6.0+git.1626161722.332be6e5:
* Support date format codes G, V, and u (used by ISO dates) (#2902)
  * Document how to add a new writer
  * Fix formatting of Jinja example code. Fixes #2884 (#2886)
  * typo fix
  * Update links to Jinja docs. Fixes #2883 (#2885)
  * Allow easy subclassing of Writer
  * Fix failing tests on Jinja 3+
  * Fix FILENAME_METADATA doc to render correctly
  * Add support for hidden articles
  * Add period_num var for period_archives template
  * Add progress spinner animation during generation
  * Update Pelican feature documentation
  * Update contributing docs and Poetry repository URL
  * Update to v2 of `cache` GitHub Action
  * Automatically open browser when Invoke task starts web server (#2764)
  * Strip HTML tags from `notmyidea` page template's title
  * Update tasks.py
  * Release Pelican 4.6.0
  * Prepare release
  * Make Tox & GitHub CI jobs' Python versions match
  * Relax dependency minimum versions
  * [Docs] Fix link to More Categories plugin
  * Clarify ARTICLE_ORDER_BY documentation
  * Improve consistency between Makefile targets & help
  * Update functional test output for Pygments 2.8
  * Update Pygments dev dependency to v2.8
  * Add .yaml file extension to EditorConfig
  * Change FAQ entry to new Tag Cloud plugin repo
  * Make PKG_PATH var in Invoke tasks.py more DRY

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pelican?expand=0&rev=34
2021-07-14 14:21:49 +00:00

147 lines
5.2 KiB
RPMSpec

#
# spec file for package python-pelican
#
# 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/
#
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pelican
Version: 4.6.0+git.1626161722.332be6e5
Release: 0
Summary: A tool to generate a static blog from reStructuredText or Markdown input files
License: AGPL-3.0-only
Group: Development/Languages/Python
URL: https://getpelican.com/
# Use the source instead of the pypi release for the tests
# Source: https://github.com/getpelican/pelican/archive/%%{version}.tar.gz
Source: pelican-%{version}.tar.xz
BuildRequires: %{python_module Jinja2 >= 2.11}
BuildRequires: %{python_module Markdown >= 3.1.1}
BuildRequires: %{python_module Pygments}
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module Unidecode}
BuildRequires: %{python_module beautifulsoup4}
BuildRequires: %{python_module black}
BuildRequires: %{python_module blinker >= 1.4}
BuildRequires: %{python_module docutils >= 0.16}
BuildRequires: %{python_module feedgenerator >= 1.9}
BuildRequires: %{python_module flake8-import-order}
BuildRequires: %{python_module flake8}
BuildRequires: %{python_module invoke}
BuildRequires: %{python_module isort}
BuildRequires: %{python_module livereload}
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module psutil}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest-pythonpath}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module pytz >= 0a}
BuildRequires: %{python_module rich >= 10.1}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module sphinx_rtd_theme}
BuildRequires: %{python_module typogrify}
BuildRequires: fdupes
BuildRequires: git-core
BuildRequires: pandoc
BuildRequires: python-rpm-macros
Requires: python-Jinja2 >= 2.11
Requires: python-Pygments
Requires: python-Unidecode
Requires: python-blinker
Requires: python-docutils >= 0.15
Requires: python-feedgenerator >= 1.9
Requires: python-python-dateutil
Requires: python-pytz >= 0a
Requires: python-rich >= 10.1
Requires(post): update-alternatives
Requires(postun):update-alternatives
Suggests: asciidoc
Suggests: python-Markdown >= 3.1.1
Suggests: python-typogrify
BuildArch: noarch
%python_subpackages
%description
Pelican is a static site generator, written in Python.
* Write your weblog entries directly with your editor of choice in reStructuredText, Markdown or AsciiDoc
* Includes a simple CLI tool to (re)generate the weblog
* Easy to interface with DVCSes and web hooks
* Completely static output is easy to host anywhere
Pelican currently supports:
* Blog articles and pages
* Comments, via an external service
* Theming support (themes are created using Jinja2 templates)
* PDF generation of the articles/pages (optional)
* Publication of articles in multiple languages
* Atom/RSS feeds
* Code syntax highlighting
* Asset management with webassets (optional)
* Import from WordPress, Dotclear, or RSS feeds
* Integration with external tools: Twitter, Google Analytics, etc. (optional)
%prep
%autosetup -p1 -n pelican-%{version}
# remove useless shebang
sed -i '1d' \
pelican/tools/templates/publishconf.py.jinja2 \
pelican/tools/templates/pelicanconf.py.jinja2 \
pelican/tools/pelican_import.py \
pelican/tools/pelican_themes.py \
pelican/tools/pelican_quickstart.py
# remove executable bit, this is not a script
chmod -x pelican/tools/templates/publishconf.py.jinja2
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
for p in pelican pelican-import pelican-plugins pelican-quickstart pelican-themes; do
%python_clone -a %{buildroot}%{_bindir}/$p
done
%check
export LC_ALL=C.utf8
# gh#getpelican/pelican#2846
%pytest -k 'not (test_basic_generation_works or test_custom_generation_works or test_custom_locale_generation_works)'
%post
%python_install_alternative pelican pelican-import pelican-plugins pelican-quickstart pelican-themes
%postun
%python_uninstall_alternative pelican
%files %{python_files}
%license LICENSE
%doc CONTRIBUTING.rst README.rst THANKS docs/*
%python_alternative %{_bindir}/pelican
%python_alternative %{_bindir}/pelican-import
%python_alternative %{_bindir}/pelican-plugins
%python_alternative %{_bindir}/pelican-quickstart
%python_alternative %{_bindir}/pelican-themes
%{python_sitelib}/pelican
%{python_sitelib}/pelican-*.egg-info
%changelog