From 32d7ad0eb7e7af063d3c43ad12ca4ddad68b5443 Mon Sep 17 00:00:00 2001 From: Carmen Bianca Bakker Date: Sep 06 2019 11:07:17 +0000 Subject: Update to 0.5.0 --- diff --git a/.gitignore b/.gitignore index 717c1fd..92ef0b0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /fsfe-reuse-0.3.3.tar.gz /fsfe-reuse-0.3.4.tar.gz +/fsfe-reuse-0.5.0.tar.gz diff --git a/reuse.spec b/reuse.spec index c49ffa8..4df2a44 100644 --- a/reuse.spec +++ b/reuse.spec @@ -1,54 +1,73 @@ -%global srcname fsfe-reuse +%global pypi_name fsfe-reuse Name: reuse -Version: 0.3.4 -Release: 3%{?dist} -Summary: A tool for compliance with the REUSE Initiative recommendations -License: GPLv3+ and CC-BY-SA +Version: 0.5.0 +Release: 1%{?dist} +Summary: A tool for compliance with the REUSE recommendations +License: GPLv3+ and CC-BY-SA and ASL 2.0 Url: https://git.fsfe.org/reuse/reuse -Source0: %pypi_source %{srcname} -BuildRequires: python3-devel -BuildRequires: python3-setuptools +Source0: %pypi_source +BuildRequires: python3 >= 3.6 +# Build +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: gettext -BuildRequires: pandoc -# Tests +# Test +BuildRequires: git +BuildRequires: %{py3_dist pytest} +# Dependencies BuildRequires: %{py3_dist Jinja2} -BuildRequires: %{py3_dist chardet} +BuildRequires: %{py3_dist binaryornot} +BuildRequires: %{py3_dist boolean.py} +BuildRequires: %{py3_dist license-expression} BuildRequires: %{py3_dist python-debian} -BuildRequires: %{py3_dist pytest} -Requires: python3 >= 3.5 -Requires: %{py3_dist chardet} -Requires: %{py3_dist python-debian} +BuildRequires: %{py3_dist requests} +# Documentation +BuildRequires: %{py3_dist Sphinx} +BuildRequires: %{py3_dist sphinx-autodoc-typehints} +BuildRequires: %{py3_dist sphinxcontrib-apidoc} +BuildRequires: %{py3_dist recommonmark} +Requires: python3 >= 3.6 Recommends: git -Recommends: %{py3_dist pygit2} BuildArch: noarch %description -A tool for compliance with the REUSE Initiative recommendations. Essentially, +A tool for compliance with the REUSE 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} +%autosetup -n %{pypi_name}-%{version} +# Remove this line when sphinx-autodoc-typehints is up-to-date. +sed -i "/sphinx_autodoc_typehints/d" docs/conf.py %build %py3_build +pushd docs +PBR_VERSION=%{version} sphinx-build-%{python3_version} . html +rm -rf html/.{doctrees,buildinfo} +popd %install %py3_install -%find_lang %{name} %check -LC_ALL=C.UTF-8 LANG=C.UTF-8 PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 tests/ +PYTHONDONTWRITEBYTECODE=1 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.rst +%files +%license LICENSES/*.txt +%doc README.md CHANGELOG.md docs/html/ %{_bindir}/%{name} %{python3_sitelib}/%{name}/ %{python3_sitelib}/fsfe_reuse*egg-info/ %changelog +* Fri Sep 06 2019 Carmen Bianca Bakker - 0.5.0-1 +- New upstream version. +- Now compatible with REUSE v3.0. +- Added Sphinx-generated documentation. +- Now also contains code under ASL 2.0. + * Mon Aug 19 2019 Miro HronĨok - 0.3.4-3 - Rebuilt for Python 3.8 diff --git a/sources b/sources index 6fbea5e..b1c1abd 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (fsfe-reuse-0.3.4.tar.gz) = 9b592e6eb9af21e0004056561f7d9d2deb70e251931bccd8b663080163d89a2d66b1defad50a7c1caafb4665a92b0fa5f02cc6371fb16a13979c0e8710f717d8 +SHA512 (fsfe-reuse-0.5.0.tar.gz) = 351928c41a78b9a5140575fd2f6a3030626b18e99dc9a09afb2e0b1ab47e072fb6c132076f0b1c44f45e3521f73b14b77f922ba06342d3fc017252b1c59871cc