diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 99ab7df..0000000 --- a/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -/php-firebase-php-jwt-4.0.0-dccf163dc8ed7ed6a00afc06c51ee5186a428d35.tar.gz -/php-firebase-php-jwt-5.0.0-9984a4d3a32ae7673d6971ea00bae9d0a1abba0e.tar.gz -/php-firebase-php-jwt-5.5.1-83b609028194aa042ea33b5af2d41a7427de80e6.tar.gz diff --git a/composer.json b/composer.json deleted file mode 100644 index 6146e2d..0000000 --- a/composer.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "firebase/php-jwt", - "description": "A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.", - "homepage": "https://github.com/firebase/php-jwt", - "keywords": [ - "php", - "jwt" - ], - "authors": [ - { - "name": "Neuman Vong", - "email": "neuman+pear@twilio.com", - "role": "Developer" - }, - { - "name": "Anant Narayanan", - "email": "anant@php.net", - "role": "Developer" - } - ], - "license": "BSD-3-Clause", - "require": { - "php": ">=5.3.0" - }, - "suggest": { - "paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present" - }, - "autoload": { - "psr-4": { - "Firebase\\JWT\\": "src" - } - }, - "require-dev": { - "phpunit/phpunit": ">=4.8 <=9" - } -} diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..a7e2146 --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +No dependents diff --git a/php-firebase-php-jwt-get-source.sh b/php-firebase-php-jwt-get-source.sh deleted file mode 100755 index b2ac62b..0000000 --- a/php-firebase-php-jwt-get-source.sh +++ /dev/null @@ -1,73 +0,0 @@ -#/bin/sh - -GIT=`which git` -RPM=`which rpm` - -if [ -z "$GIT" ] -then - echo "ERROR: 'git' command not found" 1>&2 - exit 1 -elif [ -z "$RPM" ] -then - echo "ERROR: 'rpm' command not found" 1>&2 - exit 1 -fi - -function print { - echo -e "\e[0;33m>>>>> ${1}\e[0m" -} - -if [ -x "$1" ] -then - SPEC=$1 -else - SPEC=`ls *.spec | head -1` -fi - -SPEC_DIR=`pwd` - -print "SPEC_DIR = $SPEC_DIR" - -NAME=`echo $SPEC | sed 's#\.spec##'` -VERSION=`egrep '%global\s*github_version' $SPEC | awk '{print $3}'` - -print "SPEC = $SPEC" -print "NAME = $NAME" - -GIT_OWNER=`egrep '%global\s*github_owner' $SPEC | awk '{print $3}'` -GIT_NAME=`egrep '%global\s*github_name' $SPEC | awk '{print $3}'` -GIT_COMMIT=`egrep '%global\s*github_commit' $SPEC | awk '{print $3}'` -GIT_REPO=https://github.com/${GIT_OWNER}/${GIT_NAME} -GIT_DIR=`echo $GIT_REPO | sed 's#.*/##'` - -print "GIT_OWNER = $GIT_OWNER" -print "GIT_NAME = $GIT_NAME" -print "GIT_COMMIT = $GIT_COMMIT" -print "GIT_REPO = $GIT_REPO" -print "GIT_DIR = $GIT_DIR" - -TEMP_DIR=$(mktemp --dir) - -pushd $TEMP_DIR - print "Cloning git repo..." - $GIT clone $GIT_REPO - - pushd $GIT_DIR - print "Checking out commit..." - $GIT checkout $GIT_COMMIT - popd - - TAR_DIR=${GIT_NAME}-${GIT_COMMIT} - print "TAR_DIR = $TAR_DIR" - - mv $GIT_DIR $TAR_DIR - - TAR_FILE=${SPEC_DIR}/${NAME}-${VERSION}-${GIT_COMMIT}.tar.gz - print "TAR_FILE = $TAR_FILE" - - [ -e $TAR_FILE ] && rm -f $TAR_FILE - tar --exclude-vcs -czf $TAR_FILE $TAR_DIR - chmod 0644 $TAR_FILE -popd - -rm -rf $TEMP_DIR diff --git a/php-firebase-php-jwt.spec b/php-firebase-php-jwt.spec deleted file mode 100644 index f415722..0000000 --- a/php-firebase-php-jwt.spec +++ /dev/null @@ -1,190 +0,0 @@ -# -# Fedora spec file for php-firebase-php-jwt -# -# Copyright (c) 2017-2022 Shawn Iwinski -# -# License: MIT -# http://opensource.org/licenses/MIT -# -# Please preserve changelog entries -# - -%global github_owner firebase -%global github_name php-jwt -%global github_version 5.5.1 -%global github_commit 83b609028194aa042ea33b5af2d41a7427de80e6 - -%global composer_vendor firebase -%global composer_project php-jwt - -# "php": ">= 5.3.0" -%global php_min_ver 5.3.0 - -# "phpunit/phpunit": ">=4.8 <=9" -%global phpunit_require phpunit8 -%global phpunit_min_ver 8 -%global phpunit_exec phpunit8 - -# Build using "--without tests" to disable tests -%global with_tests 0%{!?_without_tests:1} - -%{!?phpdir: %global phpdir %{_datadir}/php} - -Name: php-%{composer_vendor}-%{composer_project} -Version: %{github_version} -Release: 3%{?github_release}%{?dist} -Summary: A simple library to encode and decode JSON Web Tokens (JWT) - -License: BSD -URL: https://github.com/%{github_owner}/%{github_name} - -# GitHub export does not include tests. -# Run php-firebase-php-jwt-get-source.sh to create full source. -Source0: %{name}-%{github_version}-%{github_commit}.tar.gz -Source1: %{name}-get-source.sh - -BuildArch: noarch -# Tests -%if %{with_tests} -## composer.json -BuildRequires: php(language) >= %{php_min_ver} -BuildRequires: %{phpunit_require} >= %{phpunit_min_ver} -## phpcompatinfo (computed from version 5.5.1) -BuildRequires: php-date -BuildRequires: php-hash -BuildRequires: php-json -BuildRequires: php-mbstring -BuildRequires: php-openssl -BuildRequires: php-pcre -BuildRequires: php-pecl(libsodium) -BuildRequires: php-spl -## Autoloader -BuildRequires: php-composer(fedora/autoloader) -%endif - -# composer.json -Requires: php(language) >= %{php_min_ver} -# phpcompatinfo (computed from version 5.5.1) -Requires: php-date -Requires: php-hash -Requires: php-json -Requires: php-mbstring -Requires: php-openssl -Requires: php-pcre -Requires: php-pecl(libsodium) -Requires: php-spl -# Autoloader -Requires: php-composer(fedora/autoloader) - -# Composer -Provides: php-composer(%{composer_vendor}/%{composer_project}) = %{version} - -%description -A simple library to encode and decode JSON Web Tokens (JWT) in PHP, conforming -to RFC 7519 [1]. - -Autoloader: %{phpdir}/Firebase/JWT/autoload.php - -[1] https://tools.ietf.org/html/rfc7519 - - -%prep -%setup -qn %{github_name}-%{github_commit} - - -%build -: Create autoloader -cat <<'AUTOLOAD' | tee src/autoload.php - - 5.5.1-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Fri Jan 20 2023 Fedora Release Engineering - 5.5.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Fri Oct 07 2022 Shawn Iwinski - 5.5.1-1 -- Update to 5.5.1 - -* Fri Jul 22 2022 Fedora Release Engineering - 5.0.0-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Fri Jan 21 2022 Fedora Release Engineering - 5.0.0-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Fri Jul 23 2021 Fedora Release Engineering - 5.0.0-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Wed Jan 27 2021 Fedora Release Engineering - 5.0.0-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Tue Jul 28 2020 Fedora Release Engineering - 5.0.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Thu Jan 30 2020 Fedora Release Engineering - 5.0.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Fri Jul 26 2019 Fedora Release Engineering - 5.0.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Fri May 24 2019 Shawn Iwinski - 5.0.0-1 -- Update to 5.0.0 (RHBZ #1465699) - -* Sat Feb 02 2019 Fedora Release Engineering - 4.0.0-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Fri Jul 13 2018 Fedora Release Engineering - 4.0.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Fri Feb 09 2018 Fedora Release Engineering - 4.0.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Thu Jul 27 2017 Fedora Release Engineering - 4.0.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Sat Mar 11 2017 Shawn Iwinski - 4.0.0-1 -- Initial package diff --git a/sources b/sources deleted file mode 100644 index f840384..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (php-firebase-php-jwt-5.5.1-83b609028194aa042ea33b5af2d41a7427de80e6.tar.gz) = 0c855725062ca1cde61a812ad4b62a6fef00274fed5cc188ec31155d8d29aa23e5a3c9421f2ad598862faca008a98a64d0b0342807d2299f2c43523ef9e3789b