Blame reuse.spec

932af6f
%global pypi_name reuse
4844d09
4844d09
Name:           reuse
669490a
Version:        0.11.1
669490a
Release:        1%{?dist}
32d7ad0
Summary:        A tool for compliance with the REUSE recommendations
32d7ad0
License:        GPLv3+ and CC-BY-SA and ASL 2.0
51e26a7
Url:            https://github.com/fsfe/reuse-tool
32d7ad0
Source0:        %pypi_source
32d7ad0
BuildRequires:  python3 >= 3.6
32d7ad0
# Build
32d7ad0
BuildRequires:  python%{python3_pkgversion}-devel
32d7ad0
BuildRequires:  python%{python3_pkgversion}-setuptools
4844d09
BuildRequires:  gettext
7d3d238
BuildRequires:  %{py3_dist setuptools-scm}
32d7ad0
# Test
32d7ad0
BuildRequires:  git
32d7ad0
BuildRequires:  %{py3_dist pytest}
32d7ad0
# Dependencies
4844d09
BuildRequires:  %{py3_dist Jinja2}
32d7ad0
BuildRequires:  %{py3_dist binaryornot}
32d7ad0
BuildRequires:  %{py3_dist boolean.py}
32d7ad0
BuildRequires:  %{py3_dist license-expression}
4844d09
BuildRequires:  %{py3_dist python-debian}
32d7ad0
BuildRequires:  %{py3_dist requests}
32d7ad0
# Documentation
32d7ad0
BuildRequires:  %{py3_dist Sphinx}
28f1587
BuildRequires:  %{py3_dist sphinx_rtd_theme}
32d7ad0
BuildRequires:  %{py3_dist sphinx-autodoc-typehints}
32d7ad0
BuildRequires:  %{py3_dist sphinxcontrib-apidoc}
32d7ad0
BuildRequires:  %{py3_dist recommonmark}
32d7ad0
Requires:       python3 >= 3.6
4844d09
Recommends:     git
4844d09
BuildArch:      noarch
4844d09
4844d09
%description
32d7ad0
A tool for compliance with the REUSE recommendations. Essentially,
4844d09
it is a linter that checks for a project's compliance, and a compiler that
4844d09
generates a project's bill of materials.
4844d09
4844d09
%prep
32d7ad0
%autosetup -n %{pypi_name}-%{version}
32d7ad0
# Remove this line when sphinx-autodoc-typehints is up-to-date.
32d7ad0
sed -i "/sphinx_autodoc_typehints/d" docs/conf.py
4844d09
4844d09
%build
4844d09
%py3_build
32d7ad0
pushd docs
32d7ad0
PBR_VERSION=%{version} sphinx-build-%{python3_version} . html
32d7ad0
rm -rf html/.{doctrees,buildinfo}
32d7ad0
popd
4844d09
4844d09
%install
4844d09
%py3_install
4844d09
4844d09
%check
32d7ad0
PYTHONDONTWRITEBYTECODE=1 LC_ALL=C.UTF-8 LANG=C.UTF-8 PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 tests/
4844d09
32d7ad0
%files
32d7ad0
%license LICENSES/*.txt
32d7ad0
%doc README.md CHANGELOG.md docs/html/
932af6f
%{_bindir}/%{pypi_name}
932af6f
%{python3_sitelib}/%{pypi_name}/
932af6f
%{python3_sitelib}/%{pypi_name}*egg-info/
4844d09
4844d09
%changelog
669490a
* Thu Jun 25 2020 Carmen Bianca Bakker <carmenbianca@fedoraproject.org> - 0.11.1-1
669490a
- new version
669490a
ef4694f
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.8.0-3
ef4694f
- Rebuilt for Python 3.9
ef4694f
98520c1
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-2
98520c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
98520c1
7d3d238
* Tue Jan 21 2020 Carmen Bianca Bakker <carmenbianca@fedoraproject.org> - 0.8.0-1
7d3d238
- New version
7d3d238
- Additional build dependency on setuptools-scm.
7d3d238
- Performance increase.
7d3d238
- Many additional translations.
7d3d238
- Deprecated licenses are now recognised.
7d3d238
- lint no longer accepts path arguments. Where previously one could do reuse
7d3d238
lint SUBDIRECTORY, this is no longer possible. When linting, you must always
7d3d238
lint the entire project. To change the project's root, use --root. 
7d3d238
932af6f
* Thu Nov 28 2019 Carmen Bianca Bakker <carmenbianca@fedoraproject.org> - 0.7.0-1
932af6f
- New version.
932af6f
- Upstream PyPI package renamed from fsfe-reuse to reuse.
932af6f
- No other changes.
932af6f
bce9919
* Fri Nov 22 2019 Carmen Bianca Bakker <carmenbianca@fedoraproject.org> - 0.6.0-1
bce9919
- New upstream version.
bce9919
- Git submodules are now ignored by default. `--include-submodules` reverses
bce9919
  this behaviour.
bce9919
68c51e6
* Mon Oct 28 2019 Carmen Bianca Bakker <carmenbianca@fedoraproject.org> - 0.5.2-1
68c51e6
- new version
68c51e6
32d7ad0
* Fri Sep 06 2019 Carmen Bianca Bakker <carmenbianca@fedoraproject.org> - 0.5.0-1
32d7ad0
- New upstream version.
32d7ad0
- Now compatible with REUSE v3.0.
32d7ad0
- Added Sphinx-generated documentation.
32d7ad0
- Now also contains code under ASL 2.0.
32d7ad0
c25b6b0
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.4-3
c25b6b0
- Rebuilt for Python 3.8
c25b6b0
30257e2
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-2
30257e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
30257e2
f677e98
* Mon Apr 22 2019 Carmen Bianca Bakker <carmenbianca@fedoraproject.org> - 0.3.4-1
f677e98
- New upstream version.
f677e98
- Copyright lines can now start with © in addition to Copyright.
f677e98
4844d09
* Fri Nov 23 2018 Carmen Bianca Bakker <carmenbianca@fedoraproject.org> - 0.3.3-1
4844d09
- Initial package.