|
|
|
@@ -1,38 +1,22 @@
|
|
|
|
|
Name: fmf
|
|
|
|
|
Version: 0.16.0
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Name: fmf
|
|
|
|
|
Version: 1.7.0
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
|
|
|
|
|
Summary: Flexible Metadata Format
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Summary: Flexible Metadata Format
|
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
URL: https://github.com/psss/fmf
|
|
|
|
|
Source0: https://github.com/psss/fmf/releases/download/%{version}/fmf-%{version}.tar.gz
|
|
|
|
|
URL: https://github.com/teemtee/fmf
|
|
|
|
|
Source: %{pypi_source fmf}
|
|
|
|
|
|
|
|
|
|
# Depending on the distro, we set some defaults.
|
|
|
|
|
# Note that the bcond macros are named for the CLI option they create.
|
|
|
|
|
# "%%bcond_without" means "ENABLE by default and create a --without option"
|
|
|
|
|
# Main fmf package requires the Python module
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3dist(docutils)
|
|
|
|
|
BuildRequires: git-core
|
|
|
|
|
Requires: git-core
|
|
|
|
|
|
|
|
|
|
# Fedora or RHEL 8+
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
|
|
%bcond_with python2
|
|
|
|
|
%bcond_with oldreqs
|
|
|
|
|
%bcond_with englocale
|
|
|
|
|
# RHEL 7
|
|
|
|
|
%else
|
|
|
|
|
%bcond_without python2
|
|
|
|
|
# The automatic runtime dependency generator doesn't exist yet
|
|
|
|
|
%bcond_without oldreqs
|
|
|
|
|
# The C.UTF-8 locale doesn't exist, Python defaults to C (ASCII)
|
|
|
|
|
%bcond_without englocale
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Main tmt package requires the Python module
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
Requires: python2-%{name} == %{version}-%{release}
|
|
|
|
|
%else
|
|
|
|
|
Requires: python%{python3_pkgversion}-%{name} == %{version}-%{release}
|
|
|
|
|
%endif
|
|
|
|
|
Obsoletes: python3-fmf < %{version}-%{release}
|
|
|
|
|
%py_provides python3-fmf
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The fmf Python module and command line tool implement a flexible
|
|
|
|
@@ -40,129 +24,119 @@ format for defining metadata in plain text files which can be
|
|
|
|
|
stored close to the source code. Thanks to hierarchical structure
|
|
|
|
|
with support for inheritance and elasticity it provides an
|
|
|
|
|
efficient way to organize data into well-sized text documents.
|
|
|
|
|
This package contains the command line tool.
|
|
|
|
|
|
|
|
|
|
%?python_enable_dependency_generator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Python 2
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
%package -n python2-%{name}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
BuildRequires: python2-setuptools
|
|
|
|
|
BuildRequires: pytest
|
|
|
|
|
BuildRequires: PyYAML
|
|
|
|
|
BuildRequires: python2-filelock
|
|
|
|
|
BuildRequires: python2-six
|
|
|
|
|
BuildRequires: git-core
|
|
|
|
|
%{?python_provide:%python_provide python2-%{name}}
|
|
|
|
|
Requires: PyYAML
|
|
|
|
|
Requires: python2-filelock
|
|
|
|
|
Requires: python2-six
|
|
|
|
|
Requires: git-core
|
|
|
|
|
|
|
|
|
|
%description -n python2-%{name}
|
|
|
|
|
The fmf Python module and command line tool implement a flexible
|
|
|
|
|
format for defining metadata in plain text files which can be
|
|
|
|
|
stored close to the source code. Thanks to hierarchical structure
|
|
|
|
|
with support for inheritance and elasticity it provides an
|
|
|
|
|
efficient way to organize data into well-sized text documents.
|
|
|
|
|
This package contains the Python 2 module.
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Python 3
|
|
|
|
|
%package -n python%{python3_pkgversion}-%{name}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-PyYAML
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-filelock
|
|
|
|
|
BuildRequires: git-core
|
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}}
|
|
|
|
|
Requires: git-core
|
|
|
|
|
%if %{with oldreqs}
|
|
|
|
|
Requires: python%{python3_pkgversion}-PyYAML
|
|
|
|
|
Requires: python%{python3_pkgversion}-filelock
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description -n python%{python3_pkgversion}-%{name}
|
|
|
|
|
The fmf Python module and command line tool implement a flexible
|
|
|
|
|
format for defining metadata in plain text files which can be
|
|
|
|
|
stored close to the source code. Thanks to hierarchical structure
|
|
|
|
|
with support for inheritance and elasticity it provides an
|
|
|
|
|
efficient way to organize data into well-sized text documents.
|
|
|
|
|
This package contains the Python 3 module.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup
|
|
|
|
|
%autosetup -p1 -n fmf-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%pyproject_buildrequires -x tests %{?epel:-w}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%if %{with englocale}
|
|
|
|
|
export LANG=en_US.utf-8
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
%py2_build
|
|
|
|
|
%else
|
|
|
|
|
%py3_build
|
|
|
|
|
%endif
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
cp docs/header.txt man.rst
|
|
|
|
|
tail -n+7 README.rst >> man.rst
|
|
|
|
|
rst2man man.rst > fmf.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%if %{with englocale}
|
|
|
|
|
export LANG=en_US.utf-8
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
%py2_install
|
|
|
|
|
%else
|
|
|
|
|
%py3_install
|
|
|
|
|
%endif
|
|
|
|
|
%pyproject_install
|
|
|
|
|
%pyproject_save_files fmf
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
|
|
install -pm 644 fmf.1* %{buildroot}%{_mandir}/man1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%if %{with englocale}
|
|
|
|
|
export LANG=en_US.utf-8
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
%{__python2} -m pytest -vv -c tests/unit/pytest.ini -m 'not web'
|
|
|
|
|
%else
|
|
|
|
|
%{__python3} -m pytest -vv -c tests/unit/pytest.ini -m 'not web'
|
|
|
|
|
%endif
|
|
|
|
|
%pyproject_check_import
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%files -f %{pyproject_files}
|
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
|
%doc README.rst examples
|
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
%files -n python2-%{name}
|
|
|
|
|
%{python2_sitelib}/%{name}/
|
|
|
|
|
%{python2_sitelib}/%{name}-*.egg-info
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%else
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{name}
|
|
|
|
|
%{python3_sitelib}/%{name}/
|
|
|
|
|
%{python3_sitelib}/%{name}-*.egg-info
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Mar 07 2025 Packit <hello@packit.dev> - 1.7.0-1
|
|
|
|
|
- Update to version 1.7.0
|
|
|
|
|
|
|
|
|
|
* Fri Jan 17 2025 Packit <hello@packit.dev> - 1.6.1-1
|
|
|
|
|
- Update to version 1.6.1
|
|
|
|
|
|
|
|
|
|
* Tue Jan 07 2025 Packit <hello@packit.dev> - 1.6.0-1
|
|
|
|
|
- Update to version 1.6.0
|
|
|
|
|
|
|
|
|
|
* Wed Dec 04 2024 Packit <hello@packit.dev> - 1.5.0-1
|
|
|
|
|
- Update to version 1.5.0
|
|
|
|
|
|
|
|
|
|
* Mon Jun 17 2024 Lukáš Zachar <lzachar@redhat.com> - 1.4.1-1
|
|
|
|
|
- Use local dict instead of modifying `locals()`
|
|
|
|
|
|
|
|
|
|
* Wed Jun 05 2024 Petr Šplíchal <psplicha@redhat.com> - 1.4.0-1
|
|
|
|
|
- Introduce a new page for release notes
|
|
|
|
|
- Extend the `filter()` documentation slightly
|
|
|
|
|
- Implement the '~' merge operation
|
|
|
|
|
- Support escaping `|` and `&` in `utils.filter()`
|
|
|
|
|
- Accept additional rules in the `adjust()` call (#230)
|
|
|
|
|
- Avoid `copy()` calls in `adjust()`
|
|
|
|
|
- Directive `select` to control node selection
|
|
|
|
|
- Allow filtering based on the node name
|
|
|
|
|
- Drop epel-8
|
|
|
|
|
- Fix github action
|
|
|
|
|
- Remove travis.yaml
|
|
|
|
|
- Turn schema validation method into a stand-alone function
|
|
|
|
|
- Limit number of tests run for integration with tmt (#225)
|
|
|
|
|
- Add a `Toolbelt Catalog` entry for `fmf`
|
|
|
|
|
|
|
|
|
|
* Fri Sep 29 2023 Petr Šplíchal <psplicha@redhat.com> - 1.3.0-1
|
|
|
|
|
- Allow case-insensitive context matching
|
|
|
|
|
- Move the copr repository to the `teemtee` group
|
|
|
|
|
- Fix missing file require for unit tests
|
|
|
|
|
- Add callback to adjust() to make it observable by callers
|
|
|
|
|
- Drop support for `el-8` and `python-3.6`
|
|
|
|
|
- Fix docs building on readthedocs
|
|
|
|
|
- Install `yq` needed for `tmt` integration tests
|
|
|
|
|
- Include `srpm_build_deps` in the packit config
|
|
|
|
|
- Remove `metadata` from Packit config
|
|
|
|
|
- Add missing build job to Packit config
|
|
|
|
|
- Update pre-commit checks to the latest versions
|
|
|
|
|
- Require `fmf` in tests, remove obsolete coverage
|
|
|
|
|
- Fix a typo in the merging minus sign documentation
|
|
|
|
|
|
|
|
|
|
* Thu Jul 21 2022 Lukáš Zachar <lzachar@redhat.com> - 1.2.1-1
|
|
|
|
|
- Retry if shallow clone fails
|
|
|
|
|
|
|
|
|
|
* Tue Jul 19 2022 Lukáš Zachar <lzachar@redhat.com> - 1.2.0-1
|
|
|
|
|
- Shallow git clone if no reference is used
|
|
|
|
|
- Select by the source of object
|
|
|
|
|
- Enable the flake8 check, fix detected issues
|
|
|
|
|
- Make when in adjust optional, add true|false expr.
|
|
|
|
|
- Version as fmf flag and module attribute
|
|
|
|
|
|
|
|
|
|
* Wed Jun 08 2022 Lukáš Zachar <lzachar@redhat.com> - 1.1.0-1
|
|
|
|
|
- Implement a directive for disabling inheritance
|
|
|
|
|
- Add support for prepending items during merging
|
|
|
|
|
- Explicitly convert context value to string
|
|
|
|
|
- Workaround s390x ruamel read issue
|
|
|
|
|
- Support reference schemas in validation function
|
|
|
|
|
- Add JSON Schema validation method
|
|
|
|
|
- Fixes blocking with symbolic link loops
|
|
|
|
|
- Use a better way to detect the default git branch
|
|
|
|
|
- Add unit tests for comma operator in context rules
|
|
|
|
|
- Add examples demonstrating the context syntax
|
|
|
|
|
|
|
|
|
|
* Thu Nov 11 2021 Petr Šplíchal <psplicha@redhat.com> - 1.0.0-1
|
|
|
|
|
- Migrate yaml parsing to ruamel.yaml
|
|
|
|
|
- Drop support for Python 2
|
|
|
|
|
- Add extra requires and enable readthedocs config (#143)
|
|
|
|
|
- Filter accept value with a colon
|
|
|
|
|
- Adjust style to fix issues revealed by pre-commit
|
|
|
|
|
- Enable pre-commit, update contribution docs
|
|
|
|
|
- Disable integration testing with tmt for centos-7
|
|
|
|
|
|
|
|
|
|
* Thu Apr 15 2021 Petr Šplíchal <psplicha@redhat.com> - 0.16.0-1
|
|
|
|
|
- Add support for empty files and virtual nodes
|
|
|
|
|
- Change outcome of CannotDecide operations
|
|
|
|
|