File python-citeproc-py.spec of Package python-citeproc-py
#
# spec file for package python-citeproc-py
#
# Copyright (c) 2026 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/
#
Name: python-citeproc-py
Version: 0.9.0
Release: 0
Summary: Citations and bibliography formatter
License: BSD-2-Clause-Views
URL: https://github.com/brechtm/citeproc-py
Source: https://files.pythonhosted.org/packages/source/c/citeproc-py/citeproc_py-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module rnc2rng >= 2.6.1}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
# SECTION test requirements
BuildRequires: %{python_module lxml}
# /SECTION
BuildRequires: fdupes
Requires: python-lxml
Suggests: python-citeproc-py-styles
BuildArch: noarch
%python_subpackages
%description
Citations and bibliography formatter
%prep
%autosetup -p1 -n citeproc_py-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/csl_unsorted
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pyunittest -v tests/test_*.py
%post
%python_install_alternative csl_unsorted
%postun
%python_uninstall_alternative csl_unsorted
%files %{python_files}
%license LICENSE
%python_alternative %{_bindir}/csl_unsorted
%{python_sitelib}/citeproc
%{python_sitelib}/citeproc_py-%{version}.dist-info
%changelog