1b74c8c
%bcond_without check
1b74c8c
7ff7072
%global srcname signedjson
1b74c8c
7ff7072
Name:           python-%{srcname}
7ff7072
Version:        1.1.1
8c81584
Release:        3%{?dist}
1b74c8c
Summary:        Sign JSON with Ed25519 signatures
1b74c8c
1b74c8c
License:        ASL 2.0
1b74c8c
URL:            https://github.com/matrix-org/python-signedjson
7ff7072
Source0:        %{pypi_source}
1b74c8c
1b74c8c
BuildArch:      noarch
1b74c8c
7ff7072
%global _description %{expand:
7ff7072
Features:
7ff7072
* More than one entity can sign the same object.
7ff7072
* Each entity can sign the object with more than one key making it easier
7ff7072
  to rotate keys
7ff7072
* ED25519 can be replaced with a different algorithm.
7ff7072
* Unprotected data can be added to the object under the "unsigned" key.}
1b74c8c
1b74c8c
%description %{_description}
1b74c8c
7ff7072
%package -n python3-%{srcname}
1b74c8c
Summary:        %{summary}
1b74c8c
BuildRequires:  python3-devel
7ff7072
BuildRequires:  python3dist(setuptools)
7ff7072
BuildRequires:  python3dist(setuptools-scm)
1b74c8c
%if %{with check}
1b74c8c
BuildRequires:  python3-nose
2e7f9e2
BuildRequires:  python3dist(canonicaljson) >= 1
b11795f
BuildRequires:  python3dist(unpaddedbase64) >= 1.0.1
2e7f9e2
BuildRequires:  python3dist(pynacl) >= 0.3
e7d8fa9
BuildRequires:  python3dist(typing-extensions) >= 3.5
1b74c8c
%endif
1b74c8c
7ff7072
%description -n python3-%{srcname} %{_description}
1b74c8c
1b74c8c
Python 3 version.
1b74c8c
1b74c8c
%prep
7ff7072
%autosetup -n %{srcname}-%{version}
7ff7072
rm -vr *.egg-info
7ff7072
# This is standard thing in 3.8+
7ff7072
sed -i -e "/importlib_metadata/d" setup.py
7ff7072
sed -i -e "s/importlib_metadata/importlib.metadata/" %{srcname}/__init__.py
1b74c8c
1b74c8c
%build
1b74c8c
%py3_build
1b74c8c
1b74c8c
%install
1b74c8c
%py3_install
1b74c8c
1b74c8c
%if %{with check}
1b74c8c
%check
1b74c8c
nosetests-%{python3_version} -v
1b74c8c
%endif
1b74c8c
7ff7072
%files -n python3-%{srcname}
1b74c8c
%license LICENSE
7ff7072
%doc README.rst CHANGELOG.md
7ff7072
%{python3_sitelib}/%{srcname}-*.egg-info/
7ff7072
%{python3_sitelib}/%{srcname}/
1b74c8c
1b74c8c
%changelog
8c81584
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-3
8c81584
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
8c81584
62179c9
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-2
62179c9
- Rebuilt for Python 3.9
62179c9
7ff7072
* Thu Apr 16 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 1.1.1-1
7ff7072
- Update to 1.1.1
7ff7072
e7d8fa9
* Wed Feb 19 2020 Dan Callaghan <djc@djc.id.au> - 1.1.0-1
e7d8fa9
- Upstream release 1.1.0 (RHBZ#1796270)
e7d8fa9
4e78617
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-14
4e78617
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
4e78617
cafc9b4
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-13
cafc9b4
- Rebuilt for Python 3.8.0rc1 (#1748018)
cafc9b4
34921d0
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-12
34921d0
- Rebuilt for Python 3.8
34921d0
f98eaea
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-11
f98eaea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
f98eaea
79c1666
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-10
79c1666
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
79c1666
b11795f
* Mon Dec 31 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.0-9
b11795f
- Drop python2 subpackage
b11795f
fdbf0b5
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-8
fdbf0b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
fdbf0b5
c94db00
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-7
c94db00
- Rebuilt for Python 3.7
c94db00
1c068a2
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-6
1c068a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
1c068a2
3550cab
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-5
3550cab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3550cab
c536272
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4
c536272
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c536272
faf301b
* Wed Dec 28 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.0.0-3
faf301b
- Fix typo in Requires
faf301b
6b95a14
* Thu Dec 22 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-2
6b95a14
- Rebuild for Python 3.6
6b95a14
1b74c8c
* Mon Dec 19 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.0.0-1
1b74c8c
- Initial package