%global _python_dist_allow_version_zero 1 %global srcname inigrep %global vdk_pylib_req vdk-pylib >= 0.2.0, vdk-pylib < 0.3.0 Name: python-inigrep Version: 0.5.7 Release: 1%{?dist} Summary: inigrep - grep for (some) INIs URL: https://gitlab.com/vornet/python/python-inigrep License: LGPLv2 Source0: %{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: %{vdk_pylib_req} %description inigrep is designed to read a particular simplistic dialect of INI configuration files. In a sense, it can be considered as a "grep for INIs", in that rather than parsing the file into a typed memory structure for later access, it passes file each time a query is done, and spits out relevant parts; treating everything as text. Hence, it's not intended as replacement for a full-blown configuration system but rather a quick & dirty "swiss axe" for quick & dirty scripts. Built with vdk-pylib-0.2.2 %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3 BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-hoover Requires: python3 %description -n python3-%{srcname} inigrep is designed to read a particular simplistic dialect of INI configuration files. In a sense, it can be considered as a "grep for INIs", in that rather than parsing the file into a typed memory structure for later access, it passes file each time a query is done, and spits out relevant parts; treating everything as text. Hence, it's not intended as replacement for a full-blown configuration system but rather a quick & dirty "swiss axe" for quick & dirty scripts. %prep %setup -q %build make %{?_smp_mflags} PREFIX=/usr pystuff %py3_build %install %py3_install %check export VDK_TEST__DEBUG=true export VDK_TEST__PYLIB_MODNAME=%{srcname} %{_vdk_utildir}/vdk_test mypy \ && %{_vdk_utildir}/vdk_test doctest \ && %{_vdk_utildir}/vdk_test unittest \ && %{_vdk_utildir}/vdk_test pytest %files -n python3-%{srcname} %{python3_sitelib}/%{srcname}-*.egg-info %{python3_sitelib}/%{srcname}/ %changelog # vim: syntax=spec: # specfile built with MKit 0.1.3 and vdk-pylib-0.2.2