Initial import (RHBZ 1842042)

This commit is contained in:
Jakub Kadlcik 2020-06-16 12:47:43 +02:00
parent 36265687ef
commit bf3f963333
3 changed files with 73 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/dir2module-0.1.tar.gz
/modulemd-tools-0.1.tar.gz

69
modulemd-tools.spec Normal file
View File

@ -0,0 +1,69 @@
Name: modulemd-tools
Version: 0.1
Release: 1%{?dist}
Summary: Collection of tools for parsing and generating modulemd YAML files
License: MIT
BuildArch: noarch
URL: https://github.com/rpm-software-management/modulemd-tools
Source0: https://github.com/rpm-software-management/modulemd-tools/archive/%{version}/%{name}-%{version}.tar.gz
# Source1 is a temporary thing until we merge it with modulemd-tools upstream
Source1: https://github.com/FrostyX/dir2module/archive/v0.1/dir2module-0.1.tar.gz
BuildRequires: python3-devel
BuildRequires: python3-click
BuildRequires: python3-dnf
BuildRequires: python3-libmodulemd
BuildRequires: python3-hawkey
BuildRequires: python3-createrepo_c
Requires: python3-click
Requires: python3-dnf
Requires: python3-libmodulemd
Requires: python3-hawkey
Requires: python3-createrepo_c
%description
Tools provided by this package:
repo2module - Takes a YUM repository on its input and creates modules.yaml
containing YAML module definitions generated for each package.
dir2module - Generates a module YAML definition based on essential module
information provided via command-line parameters. The packages provided by
the module are found in a specified directory or a text file containing
their list.
%prep
%setup -q
%setup -T -D -a 1
%build
%py3_build
%install
%py3_install
cp dir2module-0.1/dir2module.py %{buildroot}%{_bindir}/dir2module
%check
%{python3} setup.py test
%files
%doc README.md
%license LICENSE
%{python3_sitelib}/repo2module
%{python3_sitelib}/repo2module-*.egg-info/
%{_bindir}/repo2module
%{_bindir}/dir2module
%changelog
* Tue Jun 09 2020 Jakub Kadlčík <jkadlcik@redhat.com> - 0.1-1
- Initial package

2
sources Normal file
View File

@ -0,0 +1,2 @@
SHA512 (dir2module-0.1.tar.gz) = 5aa33887a208b88b0229f5a4bb99e3976e0fa5c74cd887903e773acd18f3c185251b9e0e6f825ab7ff92a9f37937b6c50339d779a3434a4c27fd7ad5e6889875
SHA512 (modulemd-tools-0.1.tar.gz) = 99e3341811be1b31ffa49e203b62f7cdc83ee29c221ff5783b6528fb10a38c674e48771bfbe6c88b9e84f0dbe75172e48ec781c658d6a4904b45d2286a170f95