~fkooman/php-oauth2-server.rpm

ref: v3 php-oauth2-server.rpm/SPECS/php-fkooman-oauth2-server.spec -rw-r--r-- 7.4 KiB
35627f5eFrançois Kooman update spec 3 months ago
                                                                                
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
%global git d6741b2c67eeec41135194b769046af2099599ab

Name:           php-fkooman-oauth2-server
Version:        7.0.0
Release:        0.23%{?dist}
Summary:        Simple and secure OAuth 2.0 server

License:        MIT
URL:            https://git.sr.ht/~fkooman/php-oauth2-server
%if %{defined git}
Source0:        https://git.sr.ht/~fkooman/php-oauth2-server/archive/%{git}.tar.gz
%else
Source0:        https://git.sr.ht/~fkooman/php-oauth2-server/refs/download/%{version}/php-oauth2-server-%{version}.tar.xz
Source1:        https://git.sr.ht/~fkooman/php-oauth2-server/refs/download/%{version}/php-oauth2-server-%{version}.tar.xz.minisig
Source2:        minisign-8466FFE127BCDC82.pub
%endif

BuildArch:      noarch

BuildRequires:  minisign
BuildRequires:  php-fedora-autoloader-devel
BuildRequires:  %{_bindir}/phpab
#    "require-dev": {
#        "phpunit/phpunit": "^9",
#        "ext-sqlite3": "*"
#    },
BuildRequires:  phpunit9
BuildRequires:  php-sqlite3

#    "require": {
#        "ext-sodium": "*",
#        "ext-date": "*",
#        "ext-hash": "*",
#        "ext-json": "*",
#        "ext-pcre": "*",
#        "ext-pdo": "*",
#        "ext-spl": "*",
#        "php": ">=7.4"
#    },
BuildRequires:  php(language) >= 7.4
BuildRequires:  php-sodium
BuildRequires:  php-date
BuildRequires:  php-hash
BuildRequires:  php-json
BuildRequires:  php-pcre
BuildRequires:  php-pdo
BuildRequires:  php-spl

#    "require": {
#        "ext-sodium": "*",
#        "ext-date": "*",
#        "ext-hash": "*",
#        "ext-json": "*",
#        "ext-pcre": "*",
#        "ext-pdo": "*",
#        "ext-spl": "*",
#        "php": ">=7.4"
#    },
Requires:       php(language) >= 7.4
Requires:       php-sodium
Requires:       php-date
Requires:       php-hash
Requires:       php-json
Requires:       php-pcre
Requires:       php-pdo
Requires:       php-spl

Provides:       php-composer(fkooman/oauth2-server) = %{version}

%description
Opinionated, simple, easy to use OAuth 2.0 server for integrating OAuth 
2.0 in your server applications using the latest (security) recommendations.

%prep
%if %{defined git}
%autosetup -n php-oauth2-server-%{git}
%else
/usr/bin/minisign -V -m %{SOURCE0} -x %{SOURCE1} -p %{SOURCE2}
%autosetup -n php-oauth2-server-%{version}
%endif

%build
%{_bindir}/phpab -t fedora -o src/autoload.php src

%install
mkdir -p %{buildroot}%{_datadir}/php/fkooman/OAuth/Server
cp -pr src/* %{buildroot}%{_datadir}/php/fkooman/OAuth/Server

%check
%{_bindir}/phpab -o tests/autoload.php tests
cat <<'AUTOLOAD' | tee -a tests/autoload.php
require_once 'src/autoload.php';
AUTOLOAD

/usr/bin/phpunit9 tests --verbose --bootstrap=tests/autoload.php

%files
%license LICENSE
%doc composer.json CHANGES.md README.md
%dir %{_datadir}/php/fkooman
%dir %{_datadir}/php/fkooman/OAuth
%{_datadir}/php/fkooman/OAuth/Server

%changelog
* Thu Aug 05 2021 François Kooman <fkooman@tuxed.net> - 7.0.0-0.23
- rebuilt

* Wed Aug 04 2021 François Kooman <fkooman@tuxed.net> - 7.0.0-0.22
- rebuilt

* Thu Jul 29 2021 François Kooman <fkooman@tuxed.net> - 7.0.0-0.21
- rebuilt

* Tue Jul 27 2021 François Kooman <fkooman@tuxed.net> - 7.0.0-0.20
- rebuilt

* Mon Jul 26 2021 François Kooman <fkooman@tuxed.net> - 7.0.0-0.19
- rebuilt

* Tue Jun 29 2021 François Kooman <fkooman@tuxed.net> - 7.0.0-0.18
- rebuilt

* Thu Jun 24 2021 François Kooman <fkooman@tuxed.net> - 7.0.0-0.17
- rebuilt

* Wed Jun 23 2021 François Kooman <fkooman@tuxed.net> - 7.0.0-0.16
- rebuilt

* Tue Jun 22 2021 François Kooman <fkooman@tuxed.net> - 7.0.0-0.15
- rebuilt

* Tue Jun 22 2021 François Kooman <fkooman@tuxed.net> - 7.0.0-0.14
- rebuilt

* Tue Jun 22 2021 François Kooman <fkooman@tuxed.net> - 7.0.0-0.13
- rebuilt

* Tue Jun 22 2021 François Kooman <fkooman@tuxed.net> - 7.0.0-0.12
- rebuilt

* Mon Jun 14 2021 François Kooman <fkooman@tuxed.net> - 7.0.0-0.11
- rebuilt

* Sat Jun 12 2021 François Kooman <fkooman@tuxed.net> - 7.0.0-0.10
- rebuilt

* Fri Jun 11 2021 François Kooman <fkooman@tuxed.net> - 7.0.0-0.9
- rebuilt

* Thu Apr 15 2021 François Kooman <fkooman@tuxed.net> - 7.0.0-0.8
- rebuilt

* Thu Apr 15 2021 François Kooman <fkooman@tuxed.net> - 7.0.0-0.7
- rebuilt

* Tue Apr 13 2021 François Kooman <fkooman@tuxed.net> - 7.0.0-0.6
- rebuilt

* Mon Apr 12 2021 François Kooman <fkooman@tuxed.net> - 7.0.0-0.5
- rebuilt

* Fri Apr 09 2021 François Kooman <fkooman@tuxed.net> - 7.0.0-0.4
- rebuilt

* Fri Apr 09 2021 François Kooman <fkooman@tuxed.net> - 7.0.0-0.3
- rebuilt

* Fri Apr 09 2021 François Kooman <fkooman@tuxed.net> - 7.0.0-0.2
- rebuilt

* Tue Mar 23 2021 François Kooman <fkooman@tuxed.net> - 7.0.0-0.1
- update to 7.0.0

* Mon Feb 22 2021 François Kooman <fkooman@tuxed.net> - 6.0.1-3
- update source download URL

* Tue Jan 19 2021 François Kooman <fkooman@tuxed.net> - 6.0.1-2
- source moved to sr.ht

* Sun Aug 09 2020 François Kooman <fkooman@tuxed.net> - 6.0.1-1
- update to 6.0.1
- release files moved to src.tuxed.net
- update URL/summary/description

* Mon Jan 20 2020 François Kooman <fkooman@tuxed.net> - 6.0.0-1
- update to 6.0.0

* Sun Aug 04 2019 François Kooman <fkooman@tuxed.net> - 5.0.1-2
- switch to minisign signature verification for release builds

* Sun Jul 21 2019 François Kooman <fkooman@tuxed.net> - 5.0.1-1
- update to 5.0.1

* Wed Mar 27 2019 François Kooman <fkooman@tuxed.net> - 5.0.0-1
- update to 5.0.0

* Wed Mar 06 2019 François Kooman <fkooman@tuxed.net> - 4.0.0-1
- update to 4.0.0

* Mon Nov 26 2018 François Kooman <fkooman@tuxed.net> - 3.0.5-1
- update to 3.0.5

* Mon Nov 26 2018 François Kooman <fkooman@tuxed.net> - 3.0.4-1
- update to 3.0.4

* Mon Nov 26 2018 François Kooman <fkooman@tuxed.net> - 3.0.3-1
- update to 3.0.3

* Fri Sep 21 2018 François Kooman <fkooman@tuxed.net> - 3.0.2-1
- update to 3.0.2

* Sun Sep 09 2018 François Kooman <fkooman@tuxed.net> - 3.0.1-7
- merge dev and prod spec files in one
- cleanup requirements

* Sat Sep 08 2018 François Kooman <fkooman@tuxed.net> - 3.0.1-6
- only autoload compat libraries on older versions of Fedora/EL
- requires php-sodium on modern OSes to make sure we do not need sodium compat

* Sun Aug 05 2018 François Kooman <fkooman@tuxed.net> - 3.0.1-5
- use phpunit7 on supported platforms

* Mon Jul 23 2018 François Kooman <fkooman@tuxed.net> - 3.0.1-4
- add missing BR

* Mon Jul 23 2018 François Kooman <fkooman@tuxed.net> - 3.0.1-3
- use fedora phpab template for generating autoloader

* Thu Jun 28 2018 François Kooman <fkooman@tuxed.net> - 3.0.1-2
- use release tarball instead of Git tarball
- verify GPG signature

* Fri Jun 08 2018 François Kooman <fkooman@tuxed.net> - 3.0.1-1
- update to 3.0.1

* Fri Jun 01 2018 François Kooman <fkooman@tuxed.net> - 3.0.0-3
- update upstream URL to git.tuxed.net

* Thu Apr 19 2018 François Kooman <fkooman@tuxed.net> - 3.0.0-2
- depend on php-pecl(libsodium)

* Mon Mar 19 2018 François Kooman <fkooman@tuxed.net> - 3.0.0-1
- update to 3.0.0

* Wed Jan 10 2018 François Kooman <fkooman@tuxed.net> - 2.2.0-1
- update to 2.2.0

* Thu Dec 07 2017 François Kooman <fkooman@tuxed.net> - 2.1.0-2
- use phpab to generate the classloader

* Thu Nov 30 2017 François Kooman <fkooman@tuxed.net> - 2.1.0-1
- update to 2.1.0

* Wed Nov 29 2017 François Kooman <fkooman@tuxed.net> - 2.0.1-1
- update to 2.0.1

* Tue Nov 14 2017 François Kooman <fkooman@tuxed.net> - 2.0.0-1
- update to 2.0.0

* Mon Sep 18 2017 François Kooman <fkooman@tuxed.net> - 1.1.0-1
- update to 1.1.0 

* Thu Jul 06 2017 François Kooman <fkooman@tuxed.net> - 1.0.0-1
- initial package