Compare commits
13 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
419b89b2ab | ||
|
|
54288f43bc | ||
|
|
f5d1ea3160 | ||
|
|
593fdc3ba3 | ||
|
|
50c08d9afe | ||
|
|
86d1ce7914 | ||
|
|
17db8577b0 | ||
| 621f167e8a | |||
|
|
5bf2a74d68 | ||
|
|
37912e83ef | ||
|
|
e48598fa70 | ||
|
|
05d0e405c2 | ||
|
|
8b14bb274c |
4 changed files with 71 additions and 15 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -14,3 +14,4 @@ php-markdown-1.0.1n.zip
|
||||||
/php-markdown-1.8.0-01ab082.tgz
|
/php-markdown-1.8.0-01ab082.tgz
|
||||||
/php-markdown-1.9.0-c83178d.tgz
|
/php-markdown-1.9.0-c83178d.tgz
|
||||||
/php-markdown-1.9.1-5024d62.tgz
|
/php-markdown-1.9.1-5024d62.tgz
|
||||||
|
/php-markdown-2.0.0.tar.gz
|
||||||
|
|
|
||||||
|
|
@ -18,12 +18,37 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.3.0"
|
"php": ">=7.4"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": { "Michelf\\": "Michelf/" }
|
"psr-4": { "Michelf\\": "Michelf/" }
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": ">=4.3 <5.8"
|
"friendsofphp/php-cs-fixer": "^3.0",
|
||||||
|
"phpunit/phpunit": "^9.5",
|
||||||
|
"phpstan/phpstan": ">=1.0",
|
||||||
|
"phpstan/phpstan-phpunit": ">=1.0"
|
||||||
|
},
|
||||||
|
|
||||||
|
"scripts": {
|
||||||
|
"tests": "vendor/bin/phpunit test/",
|
||||||
|
"phpstan": [
|
||||||
|
"vendor/bin/phpstan analyse Michelf/ --level=5",
|
||||||
|
"vendor/bin/phpstan analyse -c test/phpstan.neon test/ --level=5"
|
||||||
|
],
|
||||||
|
"codestyle": "vendor/bin/php-cs-fixer fix Michelf --dry-run --verbose --show-progress=none",
|
||||||
|
"codestyle-fix": "vendor/bin/php-cs-fixer fix Michelf"
|
||||||
|
},
|
||||||
|
|
||||||
|
"archive": {
|
||||||
|
"exclude": [
|
||||||
|
"/.github/",
|
||||||
|
"/test/",
|
||||||
|
"/.editorconfig",
|
||||||
|
"/.gitignore",
|
||||||
|
"/.scrutinizer.yml",
|
||||||
|
"/.travis.yml",
|
||||||
|
"/phpunit.xml.dist"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,13 +11,13 @@
|
||||||
%global gh_project php-markdown
|
%global gh_project php-markdown
|
||||||
|
|
||||||
Name: php-markdown
|
Name: php-markdown
|
||||||
Version: 1.9.1
|
Version: 2.0.0
|
||||||
Release: 2%{?dist}
|
Release: 7%{?dist}
|
||||||
Summary: Markdown implementation in PHP
|
Summary: Markdown implementation in PHP
|
||||||
|
|
||||||
License: BSD
|
License: BSD-3-Clause
|
||||||
URL: https://michelf.ca/projects/php-markdown/
|
URL: https://michelf.ca/projects/php-markdown/
|
||||||
Source0: %{name}-%{version}-%{gh_short}.tgz
|
Source0: https://github.com/michelf/php-markdown/archive/%{version}/%{name}-%{version}.tar.gz
|
||||||
Source1: makesrc.sh
|
Source1: makesrc.sh
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
@ -25,9 +25,9 @@ BuildRequires: php-fedora-autoloader-devel
|
||||||
# For tests
|
# For tests
|
||||||
# "require-dev": {
|
# "require-dev": {
|
||||||
# "phpunit/phpunit": ">=4.3 <5.8"
|
# "phpunit/phpunit": ">=4.3 <5.8"
|
||||||
BuildRequires: phpunit
|
BuildRequires: phpunit10
|
||||||
|
|
||||||
Requires: php(language) >= 5.3
|
Requires: php(language) >= 7.4
|
||||||
Requires: php-pcre
|
Requires: php-pcre
|
||||||
Requires: php-composer(fedora/autoloader)
|
Requires: php-composer(fedora/autoloader)
|
||||||
|
|
||||||
|
|
@ -38,14 +38,11 @@ Provides: php-composer(michelf/php-markdown) = %{version}
|
||||||
This is a PHP implementation of John Gruber's Markdown.
|
This is a PHP implementation of John Gruber's Markdown.
|
||||||
It is almost completely compliant with the reference implementation.
|
It is almost completely compliant with the reference implementation.
|
||||||
|
|
||||||
This packages provides the classic version %{classic_version} and the new
|
|
||||||
library version %{version}.
|
|
||||||
|
|
||||||
Autoloader: %{_datadir}/php/Michelf/markdown-autoload.php
|
Autoloader: %{_datadir}/php/Michelf/markdown-autoload.php
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{gh_project}-%{gh_commit}
|
%setup -q
|
||||||
mv License.md LICENSE
|
mv License.md LICENSE
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -79,11 +76,11 @@ require "test/bootstrap.php";
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
ret=0
|
ret=0
|
||||||
for php in php php74 php80 php81
|
for php in php php74 php81 php82 php83
|
||||||
do
|
do
|
||||||
if which $php
|
if which $php
|
||||||
then
|
then
|
||||||
$php %{_bindir}/phpunit --bootstrap bs.php || ret=1
|
$php %{_bindir}/phpunit10 --bootstrap bs.php || ret=1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
exit $ret
|
exit $ret
|
||||||
|
|
@ -99,6 +96,39 @@ exit $ret
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Mar 23 2025 Tim Landscheidt <tim@tim-landscheidt.de> - 2.0.0-6
|
||||||
|
- Remove outdated information from package description
|
||||||
|
|
||||||
|
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Oct 04 2023 Sérgio Basto <sergio@serjux.com> - 2.0.0-1
|
||||||
|
- Update php-markdown to 2.0.0
|
||||||
|
|
||||||
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Mar 01 2023 Gwyn Ciesla <gwync@protonmail.com> - 1.9.1-5
|
||||||
|
- migrated to SPDX license
|
||||||
|
|
||||||
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-2
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
SHA512 (php-markdown-1.9.1-5024d62.tgz) = e8a7e6e0a0c109a461abac6442b6fabbe9f3a53c7ed25dc64ed82e70e645971afc559353cd7f86202695571356aa791b7055161336cb54b5034125e4f3be27a2
|
SHA512 (php-markdown-2.0.0.tar.gz) = a848bc7374f8392d21824acbc1fb11c37f961e1780fb2c735a4d4d09949fb51a6962d8d2f6df2dfca92d00a33da82062d5e2a8b8301cb476242e1fc17af673b5
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue