From bf3f963333678b6f983a7d1544ae081e153ee5fe Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Tue, 16 Jun 2020 12:47:43 +0200 Subject: [PATCH] Initial import (RHBZ 1842042) --- .gitignore | 2 ++ modulemd-tools.spec | 69 +++++++++++++++++++++++++++++++++++++++++++++ sources | 2 ++ 3 files changed, 73 insertions(+) create mode 100644 .gitignore create mode 100644 modulemd-tools.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c8ffe2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/dir2module-0.1.tar.gz +/modulemd-tools-0.1.tar.gz diff --git a/modulemd-tools.spec b/modulemd-tools.spec new file mode 100644 index 0000000..f4c10bb --- /dev/null +++ b/modulemd-tools.spec @@ -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 - 0.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..64246ff --- /dev/null +++ b/sources @@ -0,0 +1,2 @@ +SHA512 (dir2module-0.1.tar.gz) = 5aa33887a208b88b0229f5a4bb99e3976e0fa5c74cd887903e773acd18f3c185251b9e0e6f825ab7ff92a9f37937b6c50339d779a3434a4c27fd7ad5e6889875 +SHA512 (modulemd-tools-0.1.tar.gz) = 99e3341811be1b31ffa49e203b62f7cdc83ee29c221ff5783b6528fb10a38c674e48771bfbe6c88b9e84f0dbe75172e48ec781c658d6a4904b45d2286a170f95