From d9b4752abe79fd1476e4284c4c62e2dc16ab0e94 Mon Sep 17 00:00:00 2001 From: Miroslav Suchý Date: Sep 05 2016 09:35:18 +0000 Subject: tune up spec * add license * add note how to generate tar file --- diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..0e7dda2 --- /dev/null +++ b/LICENSE @@ -0,0 +1,9 @@ +The MIT License (MIT) + +Copyright (c) 2016 Red Hat, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/package/modulemd.spec b/package/modulemd.spec index 45ca4b7..5430c60 100644 --- a/package/modulemd.spec +++ b/package/modulemd.spec @@ -6,6 +6,8 @@ Release: 11%{?dist} Summary: Module metadata manipulation library License: MIT URL: https://pagure.io/fm-metadata +# there is no upstream tar file, you can build SRPM directly by running: +# mock -r fedora-rawhide-x86_64 --scm-enable --scm-option method=git --scm-option package=modulemd --scm-option git_get=set --scm-option spec=package/modulemd.spec --scm-option branch=master --scm-option write_tar=True --scm-option git_get='git clone https://pagure.io/modulemd.git' Source0: modulemd.tar BuildArch: noarch BuildRequires: python2-devel @@ -24,6 +26,8 @@ Provides: python-%{name} = %{version}-%{release} %description -n python2-%{name} %{_pkgdescription} +This is python2 bindings. + %package -n python3-%{name} Summary: %{summary} Requires: python3-PyYAML @@ -31,6 +35,8 @@ Requires: python3-PyYAML %description -n python3-%{name} %{_pkgdescription} +This is python3 bindings + %package -n modlint Summary: Tool for checking common errors in modulemd files Requires: PyYAML @@ -56,14 +62,17 @@ modlint is a tool for checking common errors in modulemd files. %files -n python2-%{name} %doc README.rst spec.yaml +%license LICENSE %{python2_sitelib}/* %files -n python3-%{name} %doc README.rst spec.yaml +%license LICENSE %{python3_sitelib}/* %files -n modlint %doc README.rst spec.yaml +%license LICENSE %{_bindir}/modlint %changelog