Blame SPECS/modulemd-tools.spec

2fb1a4
Name: modulemd-tools
2fb1a4
Version: 0.7
2fb1a4
Release: 6%{?dist}
2fb1a4
Summary: Collection of tools for parsing and generating modulemd YAML files
2fb1a4
License: MIT
2fb1a4
BuildArch: noarch
2fb1a4
2fb1a4
URL: https://github.com/rpm-software-management/modulemd-tools
2fb1a4
Source0: https://github.com/rpm-software-management/modulemd-tools/archive/%{version}/%{name}-%{version}.tar.gz
2fb1a4
Patch0: modulemd-tools-0.7-1-to-modulemd-tools-0.7-6.patch
2fb1a4
2fb1a4
BuildRequires: createrepo_c
2fb1a4
BuildRequires: python3-devel
2fb1a4
BuildRequires: python3-setuptools
2fb1a4
BuildRequires: python3-libmodulemd >= 2.9.3
2fb1a4
BuildRequires: python3-dnf
2fb1a4
BuildRequires: python3-hawkey
2fb1a4
BuildRequires: python3-createrepo_c
2fb1a4
BuildRequires: python3-pyyaml
2fb1a4
BuildRequires: python3-pytest
2fb1a4
2fb1a4
Requires: createrepo_c
2fb1a4
Requires: python3-dnf
2fb1a4
Requires: python3-hawkey
2fb1a4
Requires: python3-createrepo_c
2fb1a4
Requires: python3-pyyaml
2fb1a4
Requires: python3-libmodulemd >= 2.9.3
2fb1a4
2fb1a4
2fb1a4
%description
2fb1a4
Tools provided by this package:
2fb1a4
2fb1a4
repo2module - Takes a YUM repository on its input and creates modules.yaml
2fb1a4
    containing YAML module definitions generated for each package.
2fb1a4
2fb1a4
dir2module - Generates a module YAML definition based on essential module
2fb1a4
    information provided via command-line parameters. The packages provided by
2fb1a4
    the module are found in a specified directory or a text file containing
2fb1a4
    their list.
2fb1a4
2fb1a4
createrepo_mod - A small wrapper around createrepo_c and modifyrepo_c to provide
2fb1a4
    an easy tool for generating module repositories.
2fb1a4
2fb1a4
modulemd-merge - Merge several modules.yaml files into one. This is useful for
2fb1a4
    example if you have several yum repositories and want to merge them into one.
2fb1a4
2fb1a4
modulemd-generate-macros - Generate module-build-macros SRPM package, which is
2fb1a4
    a central piece for building modules. It should be present in the buildroot
2fb1a4
    before any other module packages are submitted to be built.
2fb1a4
2fb1a4
bld2repo - Simple tool for dowloading build required RPMs of a modular build from koji.
2fb1a4
2fb1a4
2fb1a4
%prep
2fb1a4
%setup -q
2fb1a4
%patch0 -p1
2fb1a4
2fb1a4
2fb1a4
%build
2fb1a4
cd repo2module
2fb1a4
%py3_build
2fb1a4
cd ..
2fb1a4
2fb1a4
cd dir2module
2fb1a4
%py3_build
2fb1a4
cd ..
2fb1a4
2fb1a4
cd createrepo_mod
2fb1a4
%py3_build
2fb1a4
cd ..
2fb1a4
2fb1a4
cd modulemd-merge
2fb1a4
%py3_build
2fb1a4
cd ..
2fb1a4
2fb1a4
cd modulemd_tools
2fb1a4
%py3_build
2fb1a4
cd ..
2fb1a4
2fb1a4
2fb1a4
%install
2fb1a4
cd repo2module
2fb1a4
%py3_install
2fb1a4
cd ..
2fb1a4
2fb1a4
cd dir2module
2fb1a4
%py3_install
2fb1a4
cd ..
2fb1a4
2fb1a4
cd createrepo_mod
2fb1a4
%py3_install
2fb1a4
cd ..
2fb1a4
2fb1a4
cd modulemd-merge
2fb1a4
%py3_install
2fb1a4
cd ..
2fb1a4
2fb1a4
cd modulemd_tools
2fb1a4
%py3_install
2fb1a4
cd ..
2fb1a4
2fb1a4
cp modulemd-generate-macros/modulemd-generate-macros.py \
2fb1a4
    %{buildroot}%{_bindir}/modulemd-generate-macros
2fb1a4
2fb1a4
install -d %{buildroot}%{_mandir}/man1
2fb1a4
cp man/*.1 %{buildroot}%{_mandir}/man1/
2fb1a4
2fb1a4
2fb1a4
%check
2fb1a4
export PATH={buildroot}%{_bindir}:$PATH
2fb1a4
2fb1a4
cd repo2module
2fb1a4
%{python3} -m pytest -vv
2fb1a4
cd ..
2fb1a4
2fb1a4
cd dir2module
2fb1a4
%{python3} -m pytest -vv
2fb1a4
cd ..
2fb1a4
2fb1a4
cd createrepo_mod
2fb1a4
%{python3} -m pytest -vv
2fb1a4
cd ..
2fb1a4
2fb1a4
cd modulemd-merge
2fb1a4
%{python3} -m pytest -vv -s
2fb1a4
cd ..
2fb1a4
2fb1a4
cd modulemd_tools
2fb1a4
%{python3} -m pytest -vv
2fb1a4
cd ..
2fb1a4
2fb1a4
2fb1a4
%files
2fb1a4
%doc README.md
2fb1a4
%license LICENSE
2fb1a4
%{python3_sitelib}/repo2module
2fb1a4
%{python3_sitelib}/repo2module-*.egg-info/
2fb1a4
%{python3_sitelib}/dir2module
2fb1a4
%{python3_sitelib}/dir2module-*.egg-info/
2fb1a4
%{python3_sitelib}/createrepo_mod
2fb1a4
%{python3_sitelib}/createrepo_mod-*.egg-info/
2fb1a4
%{python3_sitelib}/modulemd_merge
2fb1a4
%{python3_sitelib}/modulemd_merge-*.egg-info/
2fb1a4
%{python3_sitelib}/modulemd_tools
2fb1a4
%{python3_sitelib}/modulemd_tools-*.egg-info/
2fb1a4
%{_bindir}/repo2module
2fb1a4
%{_bindir}/dir2module
2fb1a4
%{_bindir}/createrepo_mod
2fb1a4
%{_bindir}/modulemd-merge
2fb1a4
%{_bindir}/modulemd-generate-macros
2fb1a4
2fb1a4
%{_mandir}/man1/repo2module.1*
2fb1a4
%{_mandir}/man1/dir2module.1*
2fb1a4
%{_mandir}/man1/createrepo_mod.1*
2fb1a4
%{_mandir}/man1/modulemd-merge.1*
2fb1a4
%{_mandir}/man1/modulemd-generate-macros.1.*
2fb1a4
%{_mandir}/man1/bld2repo.1.*
2fb1a4
2fb1a4
2fb1a4
%changelog
2fb1a4
* Fri Aug 27 2021 Jakub Kadlcik <jkadlcik@redhat.com> 0.7-6
2fb1a4
- Do not install bld2repo as RHEL8 doesn't have python3-koji
2fb1a4
  (jkadlcik@redhat.com)
2fb1a4
- Drop the Patch1 and make the change directly in this repository
2fb1a4
  (jkadlcik@redhat.com)
2fb1a4
- Use UpstreamBuilder instead of DistributionBuilder (jkadlcik@redhat.com)
2fb1a4
- Skip some tests because they require binary files (jkadlcik@redhat.com)
2fb1a4
2fb1a4
* Thu Aug 26 2021 Jakub Kadlcik <jkadlcik@redhat.com> 0.7-5
2fb1a4
- Update to new upstream version
2fb1a4
2fb1a4
* Mon Aug 23 2021 Jakub Kadlcik <frostyx@email.cz> 0.11-1
2fb1a4
- modulemd_tools: compatibility for upgrade_ext on EPEL8 (frostyx@email.cz)
2fb1a4
- modulemd_tools: compatibility for read_packager_string on EPEL8
2fb1a4
  (frostyx@email.cz)
2fb1a4
- dir2module: generate also profiles and modulemd-defaults file
2fb1a4
  (frostyx@email.cz)
2fb1a4
- modulemd_tools: use upgrade_ext instead of upgrade (frostyx@email.cz)
2fb1a4
- modulemd_tools: use read_packager_string instead of read_string
2fb1a4
  (frostyx@email.cz)
2fb1a4
- Add installation instructions (frostyx@email.cz)
2fb1a4
- bld2repo: do not create empty repos when --result-dir is used
2fb1a4
  (kdudka@redhat.com)
2fb1a4
- bld2repo: print status in a more intuitive format (kdudka@redhat.com)
2fb1a4
- tito: stop releasing for Fedora 32 (frostyx@email.cz)
2fb1a4
2fb1a4
* Mon Jun 14 2021 Jakub Kadlcik <frostyx@email.cz> 0.10-1
2fb1a4
- Added bld2repo (mcurlej@redhat.com)
2fb1a4
2fb1a4
* Fri Apr 09 2021 Jakub Kadlcik <frostyx@email.cz> 0.9-1
2fb1a4
- repo2module: drop python-click dependency (frostyx@email.cz)
2fb1a4
2fb1a4
* Tue Apr 06 2021 Jakub Kadlcik <frostyx@email.cz> 0.8-1
2fb1a4
- modulemd_tools: drop python3-parameterized dependency (frostyx@email.cz)
2fb1a4
- Package modulemd_tools helper lib (fvalder@redhat.com)
2fb1a4
- Add modulemd-merge tests (fvalder@redhat.com)
2fb1a4
- Add createrepo_mod tests (fvalder@redhat.com)
2fb1a4
- Replace master in fedora releaser to rawhide (frostyx@email.cz)
2fb1a4
2fb1a4
* Tue Mar 02 2021 Jakub Kadlčík <jkadlcik@redhat.com> - 0.7-4
2fb1a4
- Rebuild for 8.5.0
2fb1a4
2fb1a4
* Thu Feb 11 2021 Jakub Kadlčík <jkadlcik@redhat.com> - 0.7-3
2fb1a4
- Bump spec to rebuild with gating enabled
2fb1a4
2fb1a4
* Tue Feb 09 2021 Jakub Kadlčík <jkadlcik@redhat.com> - 0.7-2
2fb1a4
- Do not generate manpages on the fly
2fb1a4
- Drop python-parameterized dependency
2fb1a4
- Fix python3 macro for running tests
2fb1a4
2fb1a4
* Tue Feb 09 2021 Jakub Kadlcik <frostyx@email.cz> 0.7-1
2fb1a4
- Generate manpages on the fly
2fb1a4
- Automated test builds incl. Docker/Travis
2fb1a4
- Fix PEP8 in all tools
2fb1a4
- modulemd_tools: temporarily skip some tests on EPEL8 or Fedora
2fb1a4
- Drop libmodulemd dependency in favor of python3-libmodulemd
2fb1a4
2fb1a4
* Sun Nov 22 2020 Jakub Kadlcik <frostyx@email.cz> 0.6-1
2fb1a4
- Generate manpages for all tools in this repository
2fb1a4
- modulemd-generate-macros: add a tool for generating module-build-macros
2fb1a4
- modulemd_tools: add the first pieces of a python library (for internal usage only)
2fb1a4
2fb1a4
* Thu Nov 05 2020 Jakub Kadlcik <frostyx@email.cz> 0.5-1
2fb1a4
- Release for epel8 as well (frostyx@email.cz)
2fb1a4
- Require createrepo_c for the createrepo_mod package (frostyx@email.cz)
2fb1a4
- modulemd-merge: improve README.md file (frostyx@email.cz)
2fb1a4
- repo2module: improve README.md file (frostyx@email.cz)
2fb1a4
- dir2module: improve README.md file (frostyx@email.cz)
2fb1a4
- Improve README.md file (frostyx@email.cz)
2fb1a4
- createrepo_mod: improve README.md file (frostyx@email.cz)
2fb1a4
- Loosen the python3-libmodulemd dependency to just libmodulemd
2fb1a4
  (frostyx@email.cz)
2fb1a4
- createrepo_mod: use just createrepo_c if it has built-in module support
2fb1a4
  (frostyx@email.cz)
2fb1a4
- Explicitly depend on python3-setuptools (frostyx@email.cz)
2fb1a4
- createrepo_mod: dump modules.yaml into the correct directory
2fb1a4
  (frostyx@email.cz)
2fb1a4
2fb1a4
* Mon Aug 10 2020 Jakub Kadlcik <frostyx@email.cz> 0.4-1
2fb1a4
- createrepo_mod: support also non-module repositories (frostyx@email.cz)
2fb1a4
2fb1a4
* Wed Jul 29 2020 Jakub Kadlcik <frostyx@email.cz> 0.3-1
2fb1a4
- Add createrepo_mod and modulemd-merge scripts
2fb1a4
2fb1a4
* Sun Jul 26 2020 Jakub Kadlčík <jkadlcik@redhat.com> - 0.2-1
2fb1a4
- Add createrepo_mod tool
2fb1a4
- Add modulemd-merge tool
2fb1a4
- Drop Source1, it is not needed anymore
2fb1a4
2fb1a4
* Tue Jun 09 2020 Jakub Kadlčík <jkadlcik@redhat.com> - 0.1-1
2fb1a4
- Initial package