## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # the 0.9.11 is old without a release, so packaging recent snapshot # see https://github.com/logpai/Drain3/issues/98 %global commit 76d12defdeec14da3794d451875b781669f62acf %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global project Drain3 Name: python-drain3 Version: 0.9.11 Release: 20240424git%{shortcommit}.%autorelease Summary: Persistent & streaming log template miner # drain3/simple_profiler.py is Apache-2.0 License: MIT AND Apache-2.0 URL: https://github.com/IBM/Drain3 Source: https://github.com/logpai/%{project}/archive/%{commit}/%{project}-%{shortcommit}.tar.gz #Source: %%{pypi_source drain3} BuildArch: noarch BuildRequires: python3-devel #tests BuildRequires: python3-kafka BuildRequires: python3-redis # Fill in the actual package description to submit package to Fedora %global _description %{expand: Drain3 is an online log template miner that can extract templates (clusters) from a stream of log messages in a timely manner. It employs a parse tree with fixed depth to guide the log group search process, which effectively avoids constructing a very deep and unbalanced tree.} %description %_description %package -n python3-drain3 Summary: %{summary} Suggests: python3-kafka Suggests: python3-redis %description -n python3-drain3 %_description %prep %autosetup -n %{project}-%{commit} #%%autosetup -p1 -n drain3-%%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files 'drain3' %check %pyproject_check_import %files -n python3-drain3 -f %{pyproject_files} %license LICENSE.txt %doc README.md %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 0.9.11-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Tue Jun 18 2024 Python Maint - 0.9.11-2 - Rebuilt for Python 3.13 * Fri May 03 2024 Miroslav Suchý - 0.9.11-1 - initial packaging ## END: Generated by rpmautospec