File xlsxgrep.spec of Package xlsxgrep
#
# spec file for package xlsxgrep
#
# Copyright (c) 2025, Martin Hauke <mardnh@gmx.de>
#
# 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 pythons python3
Name: xlsxgrep
Version: 0.0.30
Release: 0
Summary: A grep like cli tool for XLSX, XLS, XLSM, CSV, TSV and ODS files
License: MIT
URL: https://github.com/zazuum/xlsxgrep
#Git-Clone: https://github.com/zazuum/xlsxgrep.git
Source: https://github.com/zazuum/xlsxgrep/archive/refs/tags/v.%{version}.tar.gz
BuildRequires: python3-pip
BuildRequires: python3-setuptools
BuildRequires: python3-wheel
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python3-pyexcel
Requires: python3-pyexcel-xls
Requires: python3-pyexcel-xlsx
Requires: python3-pyexcel-odsr
BuildArch: noarch
%description
xlsxgrep is a CLI tool to search text in XLSX, XLS, XLSM, CSV, TSV
and ODS files. It works similarly to Unix/GNU Linux grep.
%prep
%autosetup -n %{name}-v.%{version}
%build
%pyproject_wheel
%check
# no tests yet
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files
%license LICENSE
%doc README.md
%{_bindir}/xlsxgrep
%{python_sitelib}/xlsxgrep
%{python_sitelib}/xlsxgrep-%{version}.dist-info
%changelog