- Update to 2.3 - Remove test_build from test skip 2.3 is the latest stable version published upstream: https://pypi.org/project/sigal/2.3/, the latest package version 2.1.1 is broken in Tumbleweed and this update will fix all issues. OBS-URL: https://build.opensuse.org/request/show/985728 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sigal?expand=0&rev=17
103 lines
3.2 KiB
RPMSpec
103 lines
3.2 KiB
RPMSpec
#
|
|
# spec file for package python-sigal
|
|
#
|
|
# Copyright (c) 2022 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-sigal
|
|
Version: 2.3
|
|
Release: 0
|
|
Summary: Static gallery generator
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/saimn/sigal
|
|
Source: https://files.pythonhosted.org/packages/source/s/sigal/sigal-%{version}.tar.gz
|
|
BuildRequires: %{python_module Brotli}
|
|
BuildRequires: %{python_module Jinja2}
|
|
BuildRequires: %{python_module Markdown}
|
|
BuildRequires: %{python_module Pillow}
|
|
BuildRequires: %{python_module blinker}
|
|
BuildRequires: %{python_module click}
|
|
BuildRequires: %{python_module cryptography}
|
|
BuildRequires: %{python_module feedgenerator}
|
|
BuildRequires: %{python_module natsort}
|
|
BuildRequires: %{python_module pilkit}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools_scm}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module zopfli}
|
|
BuildRequires: fdupes
|
|
BuildRequires: ffmpeg
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-Jinja2
|
|
Requires: python-Markdown
|
|
Requires: python-Pillow
|
|
Requires: python-blinker
|
|
Requires: python-click
|
|
Requires: python-natsort
|
|
Requires: python-pilkit
|
|
Requires(post): update-alternatives
|
|
Requires(postun):update-alternatives
|
|
Suggests: python-boto
|
|
Suggests: python-Brotli
|
|
Suggests: python-zopfli
|
|
Suggests: python-cryptography
|
|
Suggests: python-feedgenerator
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
Sigal is a static gallery generator written in Python with the following
|
|
features:
|
|
|
|
* Generates HTML pages using jinja2 templates.
|
|
* Emits relative links for a portable output.
|
|
* Supports themes, videos, EXIF tags, and ZIP downloading.
|
|
* Processes directories recursively and files in parallel.
|
|
|
|
The idea behind Sigal is to ease the use of the JavaScript libraries like
|
|
galleria_. These libraries display the images, Sigal on the other hand does
|
|
image resizing, thumbnail creation and HTML page generation.
|
|
|
|
%prep
|
|
%setup -q -n sigal-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_clone -a %{buildroot}%{_bindir}/sigal
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest tests -k "not (test_generate_video_fit_height or test_generate_video_fit_width or test_generate_video_dont_enlarge)"
|
|
|
|
%post
|
|
%python_install_alternative sigal
|
|
|
|
%postun
|
|
%python_uninstall_alternative sigal
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc AUTHORS README.rst
|
|
%python_alternative %{_bindir}/sigal
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|