public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-slixmpp-omemo] rawhide: Use correct specfile
@ 2026-06-23 17:42 Benson Muite
0 siblings, 0 replies; only message in thread
From: Benson Muite @ 2026-06-23 17:42 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-slixmpp-omemo
Branch : rawhide
Commit : 20b57772665b6ae8fd20973a764019beebf4c0a7
Author : Benson Muite <fed500@fedoraproject.org>
Date : 2026-06-23T20:41:34+03:00
Stats : +54/-121 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-slixmpp-omemo/c/20b57772665b6ae8fd20973a764019beebf4c0a7?branch=rawhide
Log:
Use correct specfile
Re-reviewd in bz# 2490701
---
diff --git a/no-test-coverage.patch b/no-test-coverage.patch
new file mode 100644
index 0000000..0bf8de6
--- /dev/null
+++ b/no-test-coverage.patch
@@ -0,0 +1,9 @@
+diff -ruN slixmpp-omemo-2.2.0/pyproject.toml slixmpp-omemo-2.2.0-mod/pyproject.toml
+--- slixmpp-omemo-2.2.0/pyproject.toml 2026-05-03 15:45:46.000000000 +0300
++++ slixmpp-omemo-2.2.0-mod/pyproject.toml 2026-06-19 12:11:47.814436828 +0300
+@@ -90,4 +90,4 @@
+ ]
+
+ [tool.pytest.ini_options]
+-addopts = "--cov=slixmpp_omemo --cov-report term-missing:skip-covered"
++addopts = ""
diff --git a/python-slixmpp-omemo.spec b/python-slixmpp-omemo.spec
index 0a9d192..72e7df2 100644
--- a/python-slixmpp-omemo.spec
+++ b/python-slixmpp-omemo.spec
@@ -1,147 +1,71 @@
-# set upstream name variable
-%global srcname slixmpp_omemo
-
-
Name: python-slixmpp-omemo
Version: 2.2.0
-Release: 1%{?dist}
+Release: %autorelease
+# Fill in the actual package summary to submit package to Fedora
Summary: OMEMO plugin for Slixmpp
-# Automatically converted from old format: GPLv3 - review is highly recommended.
-License: GPL-3.0-only
+License: AGPL-3.0-only
URL: https://github.com/Syndace/slixmpp-omemo
-Source0: %{url}/archive/v%{version}/slixmpp-omemo-%{version}.tar.gz
+Source: %{url}/archive/v%{version}/slixmpp-omemo-%{version}.tar.gz
+Patch: no-test-coverage.patch
BuildArch: noarch
BuildRequires: python3-devel
-BuildRequires: python3-setuptools
-BuildRequires: python3-slixmpp
-BuildRequires: python3-omemo
-# for tests
-#BuildRequires: python3-pytest
+# Tests
+BuildRequires: python3dist(pytest)
+BuildRequires: python3dist(pytest-asyncio)
+# Additional documentation requirement
+BuildRequires: make
+BuildRequires: python3dist(installer)
+BuildRequires: texinfo
-%description
-This library provides an interface between python-omemo and
-python-slixmpp.
+%global _description %{expand:
+A plugin for slixmpp offering the OMEMO Multi-End Message and Object Encryption
+protocol, based on python-omemo.}
+%description %_description
+%package -n python3-slixmpp-omemo
+Summary: %{summary}
-%package -n python3-slixmpp-omemo
-Summary: OMEMO plugin for Slixmpp
+%description -n python3-slixmpp-omemo %_description
-%description -n python3-slixmpp-omemo
-This library provides an interface between python-omemo and
-python-slixmpp.
+%prep
+%autosetup -p1 -n slixmpp-omemo-%{version}
-%prep
-%autosetup -n slixmpp-omemo-%{version}
-# Remove shebang in 3 non-executable files
-find ./%{srcname}/ -type f '(' -name __init__.py -o -name stanza.py -o -name version.py ')' -ls -exec sed -i 's@#!/usr/bin/env python3@@' '{}' \;
+%generate_buildrequires
+%pyproject_buildrequires -x docs
%build
-%py3_build
-
+%pyproject_wheel
+pushd docs
+%python3 -m installer --destdir=tempinstall %{_pyproject_wheeldir}/*.whl
+PYTHONPATH="tempinstall/usr/lib/python%{python3_version}/site-packages/:$PYTHONPATH" \
+make texinfo
+pushd _build
+pushd texinfo
+makeinfo --docbook slixmpp-omemo.texi
+popd
+popd
+popd
%install
-%py3_install
-
+%pyproject_install
+%pyproject_save_files -l slixmpp_omemo
+mkdir -p %{buildroot}%{_datadir}/help/en/python-slixmpp-omemo
+install -m644 docs/_build/texinfo/slixmpp-omemo.xml %{buildroot}%{_datadir}/help/en/python-slixmpp-omemo
%check
-# no tests to run with pytest: Disabling.
-
-
-
-%files -n python3-slixmpp-omemo
-%license LICENSE
-%doc CONTRIBUTING.rst ChangeLog README.rst
-# For noarch packages: sitelib
-%{python3_sitelib}/%{srcname}/
-%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/
-
+%pyproject_check_import
+%pytest
+%files -n python3-slixmpp-omemo -f %{pyproject_files}
+%doc README.md
+%dir %{_datadir}/help/en/
+%doc %lang(en) %{_datadir}/help/en/python-slixmpp-omemo/
%changelog
-* Fri Jun 19 2026 Benson Muite <fed500@fedoraproject.org> - 0.10.0-1
-- Update to latest release
-- Use new packaging macros
-- Check licensing
-
-* Thu Jun 04 2026 Python Maint <python-maint@redhat.com> - 0.9.1-10
-- Rebuilt for Python 3.15
-
-* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-9
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
-
-* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 0.9.1-8
-- Rebuilt for Python 3.14.0rc3 bytecode
-
-* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 0.9.1-7
-- Rebuilt for Python 3.14.0rc2 bytecode
-
-* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-6
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
-
-* Sun Jun 22 2025 Python Maint <python-maint@redhat.com> - 0.9.1-5
-- Rebuilt for Python 3.14
-
-* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-4
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
-
-* Mon Jul 29 2024 Miroslav Suchý <msuchy@redhat.com> - 0.9.1-3
-- convert license to SPDX
-
-* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
-
-* Sat Jun 22 2024 Matthieu Saulnier <fantom@fedoraproject.org> - 0.9.1-1
-- Update to 0.9.1
-- Update URL and SourcesURL tags
-- Remove python3-omemo-backend-signal as BuildRequires
-
-* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-6
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
-
-* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-5
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
-
-* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-4
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
-
-* Thu Jun 29 2023 Python Maint <python-maint@redhat.com> - 0.9.0-3
-- Rebuilt for Python 3.12
-
-* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
-
-* Thu Oct 20 2022 Matthieu Saulnier <fantom@fedoraproject.org> - 0.9.0-1
-- Update to 0.9.0
-- Update SourcesURL
-- Fix %%autosetup in %%prep section
-
-* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
-
-* Sun Apr 24 2022 Matthieu Saulnier <fantom@fedoraproject.org> - 0.7.0-1
-- Update to 0.7.0
-
-* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
-
-* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
-
-* Mon Jul 12 2021 Matthieu Saulnier <fantom@fedoraproject.org> - 0.5.0-1
-- Update to 0.5.0
-
-* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.4.0-3
-- Rebuilt for Python 3.10
-
-* Fri Apr 2 2021 Matthieu Saulnier <fantom@fedoraproject.org> - 0.4.0-2
-- Package Review RHBZ#1928004:
- - Remove shebang in non-executable scripts in %%prep section
-
-* Thu Feb 11 2021 Matthieu Saulnier <fantom@fedoraproject.org> - 0.4.0-1
-- Initial package
+%autochangelog
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-23 17:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-23 17:42 [rpms/python-slixmpp-omemo] rawhide: Use correct specfile Benson Muite
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox