-
Notifications
You must be signed in to change notification settings - Fork 0
/
python-dciauth.spec
151 lines (112 loc) · 4.27 KB
/
python-dciauth.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
%if 0%{?rhel} && 0%{?rhel} < 8
%global is_EL7 1
%endif
%global srcname dciauth
%global summary DCI authentication module used by dci-control-server and python-dciclient
Name: python-%{srcname}
Version: 4.0.1
Release: 1.VERS%{?dist}
Summary: %{summary}
License: ASL 2.0
URL: https://github.com/redhat-cip/python-%{srcname}
Source0: %{srcname}-%{version}.postDATE.tar.gz
BuildArch: noarch
%description
%{summary}
%if 0%{?is_EL7}
%package -n python2-%{srcname}
Summary: %{summary}
BuildRequires: python2-devel
BuildRequires: python2-setuptools
%{?python_provide:%python_provide python2-%{srcname}}
%description -n python2-%{srcname}
%{summary}
%endif
%package -n python3-%{srcname}
Summary: %{summary}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%{?python_provide:%python_provide python3-%{srcname}}
%description -n python3-%{srcname}
%{summary}
%prep
%autosetup -n %{srcname}-%{version}.postDATE
%build
%if 0%{?is_EL7}
%py2_build
%endif
%py3_build
%install
%py3_install
%if 0%{?is_EL7}
%py2_install
%files -n python2-%{srcname}
%license LICENSE
%doc README.md
%{python2_sitelib}/*.egg-info
%dir %{python2_sitelib}/%{srcname}
%{python2_sitelib}/%{srcname}/*
%endif
%files -n python3-%{srcname}
%license LICENSE
%doc README.md
%{python3_sitelib}/*.egg-info
%dir %{python3_sitelib}/%{srcname}
%{python3_sitelib}/%{srcname}/*
%changelog
* Tue Nov 05 2024 Guillaume Vincent <[email protected]> 4.0.1-1
- Fix query string to encode space character as "%20" (and not as "+")
* Wed Oct 23 2024 Guillaume Vincent <[email protected]> 4.0.0-1
- Add a new implementation for generating headers and validating requests
- v1 has been migrated to the new
* Tue Nov 07 2023 Frederic Lepied <[email protected]> 3.0.2-1
- use the new build process compatible with PEP-0440
* Fri Oct 27 2023 Guillaume Vincent <[email protected]> 3.0.1-2
- Add missing version in package name
* Tue Mar 21 2023 Guillaume Vincent <[email protected]> 3.0.1-1
- Unquote endpoint in generate headers function
* Fri Jan 06 2023 Guillaume Vincent <[email protected]> 3.0.0-1
- Build also python3-dciauth on EL7
* Thu Aug 25 2022 Frederic Lepied <[email protected]> 2.1.7-3
- Rebuild for RHEL 9 (2nd try)
* Wed Aug 24 2022 Frederic Lepied <[email protected]> - 2.1.7-2
- Rebuild for RHEL 9
* Mon Feb 08 2021 Guillaume Vincent <[email protected]> - 2.1.7-1
- Use the same timestamp to generate the signature
* Mon Feb 08 2021 Guillaume Vincent <[email protected]> - 2.1.6-1
- Add logging
* Fri Dec 04 2020 Yassine Lamgarchal <[email protected] > - 2.1.5-1
- Transform data in is_valid method into binary string
* Tue Jun 16 2020 Haïkel Guémar <[email protected]> - 2.1.4-3
- Make it a single-stack package on EL7/EL8
* Mon Jun 08 2020 Bill Peck <[email protected]> 2.1.4-2
- Rebuild for RHEL-8
- Rebase to python36 on EL8
* Wed Apr 8 2020 Guillaume Vincent <[email protected]> 2.1.4-1
- Fix payload to string transformation
* Mon Oct 21 2019 Guillaume Vincent <[email protected]> 2.1.3-1
- Fix signature calculation for POST request
* Tue Oct 15 2019 Guillaume Vincent <[email protected]> 2.1.2-1
- Fix missing v2 module in dist
* Mon Oct 14 2019 Guillaume Vincent <[email protected]> 2.1.1-1
- Fix setup.py for pypi upload
* Tue Oct 8 2019 Guillaume Vincent <[email protected]> 2.1.0-1
- Add DCI2-HMAC-SHA256 algorithm
- Support AWS4-HMAC-SHA256 algorithm
* Fri Jan 12 2018 Guillaume Vincent <[email protected]> 2.0.2-1
- Fix error in signature validation due to time used
- Lower case header request
* Mon Jan 8 2018 Guillaume Vincent <[email protected]> 2.0.1-1
- Fix error in signature validation due to uppercase headers
* Mon Dec 18 2017 Guillaume Vincent <[email protected]> 2.0.0-1
- Revamp signature mechanism and copy AWS HMAC version 4 mechanism
* Thu Nov 16 2017 Guillaume Vincent <[email protected]> 1.0.1-1
- Fix error in payload order
* Wed Nov 15 2017 Guillaume Vincent <[email protected]> 1.0.0-1
- change calculate_signature API using params instead of query string
* Mon Nov 13 2017 Guillaume Vincent <[email protected]> 0.1.2-1
- dummy patch
* Thu Nov 9 2017 Guillaume Vincent <[email protected]> 0.1.1-1
- Fix signatures comparison on python 2
* Mon Nov 6 2017 Guillaume Vincent <[email protected]> 0.1.0-1
- Initial commit