Blame reuse.spec

32d7ad0
%global pypi_name fsfe-reuse
4844d09
4844d09
Name:           reuse
32d7ad0
Version:        0.5.0
32d7ad0
Release:        1%{?dist}
32d7ad0
Summary:        A tool for compliance with the REUSE recommendations
32d7ad0
License:        GPLv3+ and CC-BY-SA and ASL 2.0
4844d09
Url:            https://git.fsfe.org/reuse/reuse
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
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}
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/
4844d09
%{_bindir}/%{name}
4844d09
%{python3_sitelib}/%{name}/
4844d09
%{python3_sitelib}/fsfe_reuse*egg-info/
4844d09
4844d09
%changelog
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.