Blame python-signedjson.spec

1b74c8c
%bcond_without check
1b74c8c
1b74c8c
%global modname signedjson
1b74c8c
1b74c8c
Name:           python-%{modname}
1b74c8c
Version:        1.0.0
b11795f
Release:        9%{?dist}
1b74c8c
Summary:        Sign JSON with Ed25519 signatures
1b74c8c
1b74c8c
License:        ASL 2.0
1b74c8c
URL:            https://github.com/matrix-org/python-signedjson
1b74c8c
Source0:        %{url}/archive/v%{version}/%{modname}-%{version}.tar.gz
1b74c8c
1b74c8c
BuildArch:      noarch
1b74c8c
1b74c8c
%global _description \
1b74c8c
Features:\
1b74c8c
* More than one entity can sign the same object.\
1b74c8c
* Each entity can sign the object with more than one key making it easier\
1b74c8c
  to rotate keys\
1b74c8c
* ED25519 can be replaced with a different algorithm.\
1b74c8c
* Unprotected data can be added to the object under the "unsigned" key.
1b74c8c
1b74c8c
%description %{_description}
1b74c8c
1b74c8c
%package -n python3-%{modname}
1b74c8c
Summary:        %{summary}
1b74c8c
%{?python_provide:%python_provide python3-%{modname}}
1b74c8c
BuildRequires:  python3-devel
1b74c8c
BuildRequires:  python3-setuptools
1b74c8c
%if %{with check}
1b74c8c
BuildRequires:  python3-nose
b11795f
BuildRequires:  python3dist(canonicaljson) >= 1.0.0
b11795f
BuildRequires:  python3dist(unpaddedbase64) >= 1.0.1
b11795f
BuildRequires:  python3dist(pynacl) >= 0.3.0
1b74c8c
%endif
1b74c8c
1b74c8c
%description -n python3-%{modname} %{_description}
1b74c8c
1b74c8c
Python 3 version.
1b74c8c
1b74c8c
%prep
1b74c8c
%autosetup
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
1b74c8c
%files -n python3-%{modname}
1b74c8c
%license LICENSE
1b74c8c
%doc README.rst
1b74c8c
%{python3_sitelib}/%{modname}-*.egg-info/
1b74c8c
%{python3_sitelib}/%{modname}/
1b74c8c
1b74c8c
%changelog
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