diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..de1b1d1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/fsfe-reuse-0.3.3.tar.gz diff --git a/reuse.spec b/reuse.spec new file mode 100644 index 0000000..75cfb4f --- /dev/null +++ b/reuse.spec @@ -0,0 +1,53 @@ +%global srcname fsfe-reuse + +Name: reuse +Version: 0.3.3 +Release: 1%{?dist} +Summary: A tool for compliance with the REUSE Initiative recommendations +License: GPLv3+ and CC-BY-SA +Url: https://git.fsfe.org/reuse/reuse +Source0: %pypi_source %{srcname} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: gettext +BuildRequires: pandoc +# Tests +BuildRequires: %{py3_dist Jinja2} +BuildRequires: %{py3_dist chardet} +BuildRequires: %{py3_dist python-debian} +BuildRequires: %{py3_dist pytest} +Requires: python3 >= 3.5 +Requires: %{py3_dist chardet} +Requires: %{py3_dist python-debian} +Recommends: git +Recommends: %{py3_dist pygit2} +BuildArch: noarch + +%description +A tool for compliance with the REUSE Initiative recommendations. Essentially, +it is a linter that checks for a project's compliance, and a compiler that +generates a project's bill of materials. + +%prep +%autosetup -n %{srcname}-%{version} + +%build +%py3_build + +%install +%py3_install +%find_lang %{name} + +%check +LC_ALL=C.UTF-8 LANG=C.UTF-8 PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 tests/ + +%files -f %{name}.lang +%license LICENSES/GPL-3.0.txt LICENSES/CC-BY-SA-4.0.txt +%doc README.md +%{_bindir}/%{name} +%{python3_sitelib}/%{name}/ +%{python3_sitelib}/fsfe_reuse*egg-info/ + +%changelog +* Fri Nov 23 2018 Carmen Bianca Bakker - 0.3.3-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..be4583a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (fsfe-reuse-0.3.3.tar.gz) = b9f7ce137c7a8a529553c2a0f37a9006252c184cff492e6f91d4f1ed41986579ce2303ae29893748b8b3cb6c3bcf5b9aa812af4286624ae55672870eb99a9fc6