Compare commits
30 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
32d96830e9 | ||
|
|
3581c48730 | ||
|
|
fe7deb9b51 | ||
|
|
255b8d7955 | ||
|
|
addb68174c | ||
|
|
39a150298a | ||
|
|
b4795cd25d | ||
|
|
d1819eb6b8 | ||
|
|
0093fbd169 | ||
|
|
a1de287c3c | ||
|
|
b294406d9b | ||
|
|
b364e99a3e | ||
|
|
334cd76a6b | ||
|
|
7a6bf8e55f | ||
|
|
87132b3dd5 | ||
|
|
7ba283169d | ||
|
|
e9d05cc10a | ||
|
|
69ec12c8a6 | ||
|
|
d5f7cb788d | ||
|
|
1d1721dab6 | ||
|
|
d3b7e56bec | ||
|
|
ab8798ed45 | ||
|
|
aa0fb31afc |
||
|
|
6778b27bed | ||
|
|
efaadb2b46 | ||
|
|
f2e28aa9f2 | ||
|
|
ae08014ae9 |
||
|
|
6f9d7f6123 |
||
|
|
49981a3cc8 |
||
|
|
4481fdb8ef |
4 changed files with 153 additions and 29 deletions
10
.gitignore
vendored
10
.gitignore
vendored
|
|
@ -1,3 +1,13 @@
|
||||||
/php-paragonie-constant-time-encoding-d96e63b.tar.gz
|
/php-paragonie-constant-time-encoding-d96e63b.tar.gz
|
||||||
/php-paragonie-constant-time-encoding-6111a38.tar.gz
|
/php-paragonie-constant-time-encoding-6111a38.tar.gz
|
||||||
/php-paragonie-constant-time-encoding-75e54b9.tar.gz
|
/php-paragonie-constant-time-encoding-75e54b9.tar.gz
|
||||||
|
/php-paragonie-constant-time-encoding-eccf915.tar.gz
|
||||||
|
/php-paragonie-constant-time-encoding-55af0dc.tar.gz
|
||||||
|
/php-paragonie-constant-time-encoding-47a1ced.tar.gz
|
||||||
|
/php-paragonie-constant-time-encoding-f34c2b1.tar.gz
|
||||||
|
/php-paragonie-constant-time-encoding-2.5.0-9229e15.tgz
|
||||||
|
/php-paragonie-constant-time-encoding-2.6.1-d6e1d5d.tgz
|
||||||
|
/php-paragonie-constant-time-encoding-2.6.2-c1b1d82.tgz
|
||||||
|
/php-paragonie-constant-time-encoding-2.6.3-58c3f47.tgz
|
||||||
|
/php-paragonie-constant-time-encoding-2.8.0-ce27936.tgz
|
||||||
|
/php-paragonie-constant-time-encoding-2.8.2-e30811f.tgz
|
||||||
|
|
|
||||||
27
makesrc.sh
Normal file
27
makesrc.sh
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
NAME=$(basename $PWD)
|
||||||
|
OWNER=$(sed -n '/^%global github_owner/{s/.* //;p}' $NAME.spec)
|
||||||
|
PROJECT=$(sed -n '/^%global github_name/{s/.* //;p}' $NAME.spec)
|
||||||
|
VERSION=$(sed -n '/^Version:/{s/.* //;p}' $NAME.spec)
|
||||||
|
COMMIT=$(sed -n '/^%global commit0/{s/.* //;p}' $NAME.spec)
|
||||||
|
SHORT=${COMMIT:0:7}
|
||||||
|
|
||||||
|
echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION\n"
|
||||||
|
|
||||||
|
echo "Cloning..."
|
||||||
|
git clone https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT
|
||||||
|
|
||||||
|
echo "Getting commit..."
|
||||||
|
pushd $PROJECT-$COMMIT
|
||||||
|
git checkout $COMMIT
|
||||||
|
cp composer.json ../composer.json
|
||||||
|
popd
|
||||||
|
|
||||||
|
echo "Archiving..."
|
||||||
|
tar czf $NAME-$VERSION-$SHORT.tgz --exclude .git $PROJECT-$COMMIT
|
||||||
|
|
||||||
|
echo "Cleaning..."
|
||||||
|
rm -rf $PROJECT-$COMMIT
|
||||||
|
|
||||||
|
echo "Done."
|
||||||
|
|
@ -5,67 +5,59 @@
|
||||||
%global github_owner paragonie
|
%global github_owner paragonie
|
||||||
%global github_name constant_time_encoding
|
%global github_name constant_time_encoding
|
||||||
|
|
||||||
%global commit0 75e54b9bc1d8eddc59bca721cd0f3d263c70503c
|
%global commit0 e30811f7bc69e4b5b6d5783e712c06c8eabf0226
|
||||||
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
|
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
|
||||||
|
|
||||||
|
|
||||||
Name: php-%{composer_vendor}-constant-time-encoding
|
Name: php-%{composer_vendor}-constant-time-encoding
|
||||||
Version: 1.0.3
|
Version: 2.8.2
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Constant-Time Character Encoding in PHP Projects
|
Summary: Constant-time Implementations of RFC 4648 Encoding
|
||||||
|
|
||||||
Group: System Environment/Libraries
|
|
||||||
License: MIT
|
License: MIT
|
||||||
|
|
||||||
URL: https://github.com/%{github_owner}/%{github_name}
|
URL: https://github.com/%{github_owner}/%{github_name}
|
||||||
Source0: %{url}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz
|
Source0: %{url}/archive/%{commit0}.tar.gz#/%{name}-%{version}-%{shortcommit0}.tgz
|
||||||
|
Source1: makesrc.sh
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: php(language) >= 5.3.0
|
# "php": "^7|^8"
|
||||||
|
BuildRequires: php(language) >= 7
|
||||||
BuildRequires: php-mbstring
|
BuildRequires: php-mbstring
|
||||||
BuildRequires: php-spl
|
BuildRequires: php-spl
|
||||||
BuildRequires: php-pcre
|
# "phpunit/phpunit": "^6|^7|^8|^9"
|
||||||
BuildRequires: php-composer(fedora/autoloader)
|
BuildRequires: phpunit9
|
||||||
BuildRequires: php-composer(paragonie/random_compat)
|
BuildRequires: php-fedora-autoloader-devel
|
||||||
BuildRequires: %{_bindir}/phpunit
|
|
||||||
|
|
||||||
Requires: php(language) >= 5.3.0
|
# "php": "^7|^8"
|
||||||
|
Requires: php(language) >= 7
|
||||||
Requires: php-mbstring
|
Requires: php-mbstring
|
||||||
Requires: php-spl
|
Requires: php-spl
|
||||||
Requires: php-composer(fedora/autoloader)
|
|
||||||
|
Suggests: php-sodium
|
||||||
|
|
||||||
Provides: php-composer(%{composer_vendor}/%{composer_project}) = %{version}
|
Provides: php-composer(%{composer_vendor}/%{composer_project}) = %{version}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Based on the constant-time base64 implementation made by Steve "Sc00bz"
|
Based on the constant-time base64 implementation made by Steve "Sc00bz"
|
||||||
Thomas, this library aims to offer character encoding functions that do not
|
Thomas, this library aims to offer character encoding functions that do
|
||||||
leak information about what you are encoding/decoding via processor cache
|
not leak information about what you are encoding/decoding via processor
|
||||||
misses.
|
cache misses.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n %{github_name}-%{commit0}
|
%setup -n %{github_name}-%{commit0}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cat <<'AUTOLOAD' | tee src/autoload.php
|
%{_bindir}/phpab -t fedora -o src/autoload.php src
|
||||||
<?php
|
|
||||||
require_once '%{_datadir}/php/Fedora/Autoloader/autoload.php';
|
|
||||||
|
|
||||||
\Fedora\Autoloader\Autoload::addPsr4('ParagonIE\\ConstantTime\\', __DIR__);
|
|
||||||
AUTOLOAD
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{_datadir}/php/%{composer_namespace}
|
mkdir -p %{buildroot}%{_datadir}/php/%{composer_namespace}
|
||||||
cp -pr src/* %{buildroot}%{_datadir}/php/%{composer_namespace}
|
cp -pr src/* %{buildroot}%{_datadir}/php/%{composer_namespace}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
mkdir vendor
|
%{_bindir}/phpab -t fedora -o tests/autoload.php src tests
|
||||||
cat << 'EOF' | tee vendor/autoload.php
|
%{_bindir}/phpunit9 tests --verbose --bootstrap=tests/autoload.php
|
||||||
<?php
|
|
||||||
require_once '%{buildroot}%{_datadir}/php/%{composer_namespace}/autoload.php';
|
|
||||||
require_once '%{_datadir}/php/random_compat/autoload.php';
|
|
||||||
EOF
|
|
||||||
phpunit --no-coverage --verbose
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%dir %{_datadir}/php/ParagonIE
|
%dir %{_datadir}/php/ParagonIE
|
||||||
|
|
@ -74,6 +66,101 @@ phpunit --no-coverage --verbose
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 01 2025 François Kooman <fkooman@tuxed.net> - 2.8.2-1
|
||||||
|
- update to 2.8.2
|
||||||
|
|
||||||
|
* Tue Sep 23 2025 François Kooman <fkooman@tuxed.net> - 2.8.0-1
|
||||||
|
- update to 2.8.0
|
||||||
|
- hard build dependency on PHPUnit 9 now
|
||||||
|
- add php-sodium extension as a suggestion
|
||||||
|
|
||||||
|
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.3-9
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.3-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.3-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.3-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.3-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.3-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.3-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.3-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jun 14 2022 François Kooman <fkooman@tuxed.net> - 2.6.3-1
|
||||||
|
- update to 2.6.3
|
||||||
|
|
||||||
|
* Mon Jun 13 2022 François Kooman <fkooman@tuxed.net> - 2.6.2-1
|
||||||
|
- update to 2.6.2 (RHBZ#1494754)
|
||||||
|
- autoload required files for tests as well
|
||||||
|
|
||||||
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jan 17 2022 François Kooman <fkooman@tuxed.net> - 2.5.0-1
|
||||||
|
- update to 2.5.0
|
||||||
|
- add makesrc.sh to download source as upstream included .gitattributes to not
|
||||||
|
export tests
|
||||||
|
|
||||||
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Dec 10 2020 François Kooman <fkooman@tuxed.net> - 2.4.0-2
|
||||||
|
- support PHPUnit 8/9 for future PHP 8 support (patch by Remi Collet)
|
||||||
|
|
||||||
|
* Mon Dec 7 2020 François Kooman <fkooman@tuxed.net> - 2.4.0-1
|
||||||
|
- update to 2.4.0
|
||||||
|
|
||||||
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Nov 06 2019 François Kooman <fkooman@tuxed.net> - 2.3.0-1
|
||||||
|
- update to 2.3.0
|
||||||
|
|
||||||
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Feb 15 2019 François Kooman <fkooman@tuxed.net> - 2.2.3-1
|
||||||
|
- update to 2.2.3
|
||||||
|
|
||||||
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu May 03 2018 François Kooman <fkooman@tuxed.net> - 2.2.2-4
|
||||||
|
- also BuildRequire phpunit7 for future EL release
|
||||||
|
|
||||||
|
* Thu May 03 2018 François Kooman <fkooman@tuxed.net> - 2.2.2-3
|
||||||
|
- simplify detection and use of PHPUnit 6 / PHPUnit 7
|
||||||
|
|
||||||
|
* Wed May 02 2018 François Kooman <fkooman@tuxed.net> - 2.2.2-2
|
||||||
|
- use Fedora template for generating autoloader
|
||||||
|
- match phpunit version with composer.json
|
||||||
|
|
||||||
|
* Tue May 01 2018 François Kooman <fkooman@tuxed.net> - 2.2.2-1
|
||||||
|
- update to 2.2.2 for PHP >= 7
|
||||||
|
- update dependencies
|
||||||
|
- switch to phpab autoload generator
|
||||||
|
|
||||||
* Mon Apr 30 2018 François Kooman <fkooman@tuxed.net> - 1.0.3-1
|
* Mon Apr 30 2018 François Kooman <fkooman@tuxed.net> - 1.0.3-1
|
||||||
- update to 1.0.3
|
- update to 1.0.3
|
||||||
|
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
SHA512 (php-paragonie-constant-time-encoding-75e54b9.tar.gz) = f13e4168dfaf1e34ae9d7c560f0814d0f4b6233ba49e9b3d714e55761340ce0c3e5a85d197bf67eb4b6edbd763a4f4f37f48ba6615609fca19236f1f95c98418
|
SHA512 (php-paragonie-constant-time-encoding-2.8.2-e30811f.tgz) = 06ed2956086022e92f95b3b30e4222a3511de7cb22de038a92c080424443f7745528c8ab916b9848e06b1312711dc32415bbcf592008bd0026ac7413651e0291
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue