Blame SPECS/modulemd-tools.spec

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