14
0
forked from pool/python-khard
Files
python-khard/python-khard.spec
Matej Cepl bd1a9cff0b Accepting request 1296745 from home:glaubitz:branches:devel:languages:python
- Update to 0.20.0
  * Remove support for python 3.8 (638fb2e)
  * Replace atomicwrites dependency with an inlined function (#343)
  * Allow new version of vobject (f768845)
  * Add new addressbook type "discover" (#341)
  * Use python's glibc bindings for locale aware sorting, replacing the unidecode dependency (aad8d03, #338)
  * Add support for KIND: vCard fields (#310)
  * Remove command line options --strict-search, --uid and --target-uid (946999c)
  * Allow address_book as field for list -F (512d8ce)
  * Add new man page with subcommand listing (71fb6f0)
  * Internal changes:
    * Rename default branch to main (369106c)
    * Remove setup.py (f6f0047)
    * Specify version (ranges) for dependencies (e4a3f71)
    * Replace sys.exit calls with exceptions and return values (b721246)
    * Use standard list, dict and tuple for type hints (9d17c5f)
    * Use python 3.13 in CI (17a8681, f6b7c5c)
    * Add extra opt dependency group for type checking (031682c)
- Update BuildRequires from pyproject.toml
- Use Python 3.11 on SLE-15 by default

OBS-URL: https://build.opensuse.org/request/show/1296745
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-khard?expand=0&rev=5
2025-07-31 15:40:08 +00:00

85 lines
2.5 KiB
RPMSpec

#
# spec file for package python-khard
#
# Copyright (c) 2025 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/
#
%{?sle15_python_module_pythons}
Name: python-khard
Version: 0.20.0
Release: 0
Summary: Console carddav client
License: GPL-3.0-only
URL: https://github.com/lucc/khard
Source0: https://files.pythonhosted.org/packages/source/k/khard/khard-%{version}.tar.gz
BuildArch: noarch
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test
BuildRequires: %{python_module configobj}
BuildRequires: %{python_module ruamel.yaml}
BuildRequires: %{python_module vobject}
# /SECTION
Requires: python-Unidecode
Requires: python-atomicwrites
Requires: python-configobj
Requires: python-ruamel.yaml
Requires: python-vobject
Requires(post): update-alternatives
Requires(postun): update-alternatives
Suggests: python3-vdirsyncer
%python_subpackages
%description
Khard is an address book for the Unix console.
It creates, reads, modifies and removes carddav address book entries at your local machine.
Khard is also compatible to the email clients mutt and alot and the SIP client twinkle.
%prep
%autosetup -p1 -n khard-%{version}
sed -i -e '1{/^#!\/usr\/bin\/env python/d}' khard/__main__.py
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/khard
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
%check
%pyunittest discover -v
%post
%python_install_alternative khard
%postun
%python_uninstall_alternative khard
%files %{python_files}
%license LICENSE
%doc CHANGES README.md todo.txt
%doc doc/source/examples/khard.conf.example
%{python_sitelib}/khard
%{python_sitelib}/khard-%{version}.dist-info
%python_alternative %{_bindir}/khard
%changelog