summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer.json24
-rw-r--r--php-tecnickcom-tc-lib-pdf-page.spec16
2 files changed, 29 insertions, 11 deletions
diff --git a/composer.json b/composer.json
index 2080bce..5df4032 100644
--- a/composer.json
+++ b/composer.json
@@ -1,11 +1,11 @@
{
- "name": "tecnickcom/tc-lib-pdf-page",
+ "name": "tecnickcom/tc-lib-pdf-page-page",
"description": "PHP library containing PDF page formats and definitions",
"type": "library",
"homepage": "http://www.tecnick.com",
"license": "LGPL-3.0-or-later",
"keywords": [
- "tc-lib-pdf-page",
+ "tc-lib-pdf-page-page",
"PDF",
"page",
"format"
@@ -24,16 +24,18 @@
"tecnickcom/tc-lib-color": "^2.3",
"tecnickcom/tc-lib-pdf-encrypt": "^2.1"
},
+ "minimum-stability": "dev",
+ "prefer-stable": true,
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"require-dev": {
- "pdepend/pdepend": "2.16.2",
- "phpmd/phpmd": "2.15.0",
- "phpunit/phpunit": "13.1.1 || 12.5.17 || 11.5.55 || 10.5.63",
- "squizlabs/php_codesniffer": "4.0.1",
+ "pdepend/pdepend": "^2.16",
+ "phpmd/phpmd": "^2.15",
+ "phpunit/phpunit": "^13.1 || ^12.5 || ^11.5 || ^10.5",
+ "squizlabs/php_codesniffer": "^4.0",
"phpcompatibility/php-compatibility": "^10.0.0@dev"
},
"autoload": {
@@ -43,5 +45,15 @@
},
"autoload-dev": {
"psr-4": { "Test\\": "test" }
+ },
+ "support": {
+ "issues": "https://github.com/tecnickcom/tc-lib-pdf-page/issues",
+ "source": "https://github.com/tecnickcom/tc-lib-pdf-page"
+ },
+ "scripts": {
+ "test": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --stderr test",
+ "cs-check": "./vendor/bin/phpcs --standard=phpcs.xml",
+ "cs-fix": "./vendor/bin/phpcbf --ignore=\"./vendor/\" --standard=psr12 src test",
+ "analyse": "./vendor/phpstan.phar analyse"
}
}
diff --git a/php-tecnickcom-tc-lib-pdf-page.spec b/php-tecnickcom-tc-lib-pdf-page.spec
index e780a64..645c504 100644
--- a/php-tecnickcom-tc-lib-pdf-page.spec
+++ b/php-tecnickcom-tc-lib-pdf-page.spec
@@ -6,18 +6,20 @@
#
# Please, preserve the changelog entries
#
+
+%bcond_without tests
+
%global c_vendor tecnickcom
%global gh_owner tecnickcom
%global gh_project tc-lib-pdf-page
%global php_project %{_datadir}/php/Com/Tecnick/Pdf/Page
-%global with_tests 0%{!?_without_tests:1}
%global forgeurl https://github.com/%{gh_owner}/%{gh_project}
%global tag %{version}
Name: php-%{gh_owner}-%{gh_project}
Summary: PHP library containing PDF page formats and definitions
License: LGPL-3.0-or-later
-Version: 4.3.15
+Version: 4.3.17
Release: 1%{?dist}
%forgemeta
@@ -25,10 +27,10 @@ URL: %{forgeurl}
Source0: %{forgesource}
BuildArch: noarch
-%if %{with_tests}
+%if %{with tests}
# For tests
%global phpunit %{_bindir}/phpunit11
-BuildRequires: phpunit11 >= 11.5.55
+BuildRequires: phpunit11 >= 11.5
BuildRequires: php(language) >= 8.2
BuildRequires: (php-composer(%{c_vendor}/tc-lib-color) >= 2.3 with php-composer(%{c_vendor}/tc-lib-color) < 3)
BuildRequires: (php-composer(%{c_vendor}/tc-lib-pdf-encrypt) >= 2.1 with php-composer(%{c_vendor}/tc-lib-pdf-encrypt) < 3)
@@ -87,7 +89,7 @@ cp -pr src %{buildroot}%{php_project}
%check
-%if %{with_tests}
+%if %{with tests}
mkdir vendor
cat << 'EOF' | tee vendor/autoload.php
<?php
@@ -118,6 +120,10 @@ exit $ret
%changelog
+* Mon Apr 20 2026 Remi Collet <remi@remirepo.net> - 4.3.17-1
+- update to 4.3.17
+- open https://github.com/tecnickcom/tc-lib-pdf-page/pull/4 fix typo
+
* Tue Apr 14 2026 Remi Collet <remi@remirepo.net> - 4.3.15-1
- update to 4.3.15 (no change)