forked from pool/python-apns2
- Add unpackaged LICENSE and test/eckey.pem file
(gh#Pr0Ger/PyAPNs2#110 and gh#Pr0Ger/PyAPNs2#111) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-apns2?expand=0&rev=2
This commit is contained in:
21
LICENSE
Normal file
21
LICENSE
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 Sergey Petrov
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
8
eckey.pem
Normal file
8
eckey.pem
Normal file
@@ -0,0 +1,8 @@
|
||||
-----BEGIN EC PARAMETERS-----
|
||||
BggqhkjOPQMBBw==
|
||||
-----END EC PARAMETERS-----
|
||||
-----BEGIN EC PRIVATE KEY-----
|
||||
MHcCAQEEIM0scFXkVBBc7d8DSL9rfFB1PvET/dWQa9eWfxpgaqaBoAoGCCqGSM49
|
||||
AwEHoUQDQgAEnVxQ41VKMN6uSsSYCCdOUhCms+HT2VpUhFGML5SzYGoodKtRD/6J
|
||||
YI9Rxq1lPGHMwECSaPtPf9kVDCUM6UHvhA==
|
||||
-----END EC PRIVATE KEY-----
|
||||
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 30 09:26:41 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Add unpackaged LICENSE and test/eckey.pem file
|
||||
(gh#Pr0Ger/PyAPNs2#110 and gh#Pr0Ger/PyAPNs2#111)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 7 06:29:24 AM UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-apns2
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,7 +12,8 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
@@ -20,26 +21,31 @@
|
||||
Name: python-apns2
|
||||
Version: 0.7.1
|
||||
Release: 0
|
||||
License: MIT
|
||||
Summary: Python library for the HTTP/2 Apple Push Notification Service
|
||||
Url: https://github.com/Pr0Ger/PyAPNs2
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Source: https://files.pythonhosted.org/packages/source/a/apns2/apns2-%{version}.tar.gz
|
||||
BuildRequires: python-rpm-macros
|
||||
URL: https://github.com/Pr0Ger/PyAPNs2
|
||||
Source0: https://files.pythonhosted.org/packages/source/a/apns2/apns2-%{version}.tar.gz
|
||||
# LICENSE gh#Pr0Ger/PyAPNs2#110 mcepl@suse.com
|
||||
# Missing LICENSE file
|
||||
Source1: https://raw.githubusercontent.com/Pr0Ger/PyAPNs2/master/LICENSE
|
||||
# eckey.pem gh#Pr0Ger/PyAPNs2#111 mcepl@suse.com
|
||||
# Unpackaged file breaks test_token_expiration test
|
||||
Source2: https://raw.githubusercontent.com/Pr0Ger/PyAPNs2/master/test/eckey.pem
|
||||
BuildRequires: %{python_module setuptools}
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module cryptography >= 1.7.2}
|
||||
BuildRequires: %{python_module hyper >= 0.7}
|
||||
BuildRequires: %{python_module PyJWT >= 1.4.0}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module freezegun}
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-PyJWT >= 1.4.0
|
||||
Requires: python-cryptography >= 1.7.2
|
||||
Requires: python-hyper >= 0.7
|
||||
Requires: python-PyJWT >= 1.4.0
|
||||
BuildArch: noarch
|
||||
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module PyJWT >= 1.4.0}
|
||||
BuildRequires: %{python_module cryptography >= 1.7.2}
|
||||
BuildRequires: %{python_module freezegun}
|
||||
BuildRequires: %{python_module hyper >= 0.7}
|
||||
BuildRequires: %{python_module pytest}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -48,6 +54,8 @@ via HTTP/2 protocol.
|
||||
|
||||
%prep
|
||||
%setup -q -n apns2-%{version}
|
||||
cp %{SOURCE1} .
|
||||
cp %{SOURCE2} test/
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -57,10 +65,10 @@ via HTTP/2 protocol.
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# test_token_expiration depends on missing test data
|
||||
%pytest -k 'not test_token_expiration'
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{python_sitelib}/*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user