Description of SimplePie library import into Moodle

Obtained from https://github.com/simplepie/simplepie/releases/

To upgrade this library:

1. Preserve the Moodle-owned files.
   mv public/lib/simplepie/moodle_simplepie.php ./
   mv public/lib/simplepie/readme_moodle.txt ./
   rm -rf public/lib/simplepie/*

2. Fetch the new release via composer.
   tempdir=`mktemp -d`
   cd "${tempdir}"
   composer require simplepie/simplepie
   cd - >/dev/null

3. Copy only the files/dirs Moodle vendors.
   cp -f "${tempdir}/vendor/simplepie/simplepie/CHANGELOG.md" public/lib/simplepie/
   cp -f "${tempdir}/vendor/simplepie/simplepie/composer.json" public/lib/simplepie/
   cp -f "${tempdir}/vendor/simplepie/simplepie/README.markdown" public/lib/simplepie/
   cp -rf "${tempdir}/vendor/simplepie/simplepie/src" public/lib/simplepie/src

   Upstream ships the licence text under LICENSES/ (split by SPDX identifier) since 1.9.0;
   Moodle keeps a single BSD-3-Clause licence file named LICENSE.txt.
   cp -f "${tempdir}/vendor/simplepie/simplepie/LICENSES/BSD-3-Clause.txt" public/lib/simplepie/LICENSE.txt

4. Restore the Moodle-owned files.
   mv moodle_simplepie.php public/lib/simplepie/
   mv readme_moodle.txt public/lib/simplepie/
   rm -rf "${tempdir}"
   git add public/lib/simplepie

5. Update public/lib/thirdpartylibs.xml with the new version and commit the changes.

6. Verify the upgrade:
   - Check whether the release gained any new files or dependencies that should be moved into Moodle,
     and update this doc if so.

Changes:
  * Moodle customisations are made by extending the classes in moodle_simplepie.php.
  * MDL-90781: src/IRI.php has been patched for PHP 8.5, which deprecates using null as an array offset.
    The patch backports the upstream fix (not yet in a tagged release after 1.9.0):
      - IRI::__get(): isset($this->scheme, $this->normalization[$this->scheme][$name])
      - IRI::scheme_normalization(): return early when $this->scheme is null
      - IRI::get_iri(): check $this->scheme !== null before reading $this->normalization[$this->scheme]
    Re-apply on upgrade unless the new release already contains it.
  * MDL-90781: Because of the patch above, this library is no longer required via composer
    (previously simplepie/simplepie 1.9.0 in composer.json). Re-add it to composer.json once
    a release containing the upstream fix is available and the patch can be dropped.
