14
0
2020-11-16 08:02:28 +00:00
committed by Git OBS Bridge
parent 4c1ebd2118
commit 063f3ae6f4

View File

@@ -24,7 +24,7 @@ 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: http://getpelican.com/
URL: https://getpelican.com/
Source: https://files.pythonhosted.org/packages/source/p/pelican/pelican-%{version}.tar.gz
BuildRequires: %{python_module Jinja2 >= 2.11}
BuildRequires: %{python_module Pygments}
@@ -50,9 +50,7 @@ Requires(postun): update-alternatives
Suggests: asciidoc
Suggests: python-Markdown >= 3.1.1
Suggests: python-typogrify
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
@@ -88,6 +86,8 @@ sed -i '1d' \
pelican/tools/pelican_quickstart.py
# remove executable bit, this is not a script
chmod -x pelican/tools/templates/publishconf.py.jinja2
# remove macos hidden temporary files
rm pelican/themes/.DS_Store pelican/themes/notmyidea/.DS_Store
%build
%python_build
@@ -106,10 +106,9 @@ done
%postun
%python_uninstall_alternative pelican
%files %python_files
%defattr(-,root,root,-)
%files %{python_files}
%license LICENSE
%doc README.rst
%doc CONTRIBUTING.rst README.rst THANKS docs/*
%python_alternative %{_bindir}/pelican
%python_alternative %{_bindir}/pelican-import
%python_alternative %{_bindir}/pelican-plugins