Skip to content

Commit bd71136

Browse files
Vitexusoz-agent
andcommitted
Modernize Debian packaging
- debhelper-compat (= 13), pkg-php-tools, phpab - Remove old compat file, composer from B-D/Depends - Standards-Version 4.7.0, Section php Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent f9cfda8 commit bd71136

6 files changed

Lines changed: 21 additions & 71 deletions

File tree

debian/changelog

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
php-spojenet-abraflexi (3.7.0) UNRELEASED; urgency=medium
1+
php-spojenet-abraflexi (3.7.0) unstable; urgency=medium
22

33
* All Commented (in Englis)
4+
* Modernize Debian packaging: debhelper-compat 13, pkg-php-tools, phpab
45

56
-- vitex <info@vitexsoftware.cz> Wed, 04 Feb 2026 09:55:39 +0100
67

debian/clean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vendor/

debian/compat

Lines changed: 0 additions & 1 deletion
This file was deleted.

debian/control

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
Source: php-spojenet-abraflexi
2-
Build-Depends: debhelper (>= 7.0.50~), composer, moreutils, jq, phpdocumentor, php-mbstring, php-curl, php-intl
3-
Standards-Version: 3.9.8
2+
Section: php
3+
Priority: optional
44
Maintainer: Vítězslav Dvořák <info@vitexsoftware.cz>
55
Uploaders: Vitex <vitex@hippy.cz>
6-
Priority: optional
6+
Build-Depends: debhelper-compat (= 13), pkg-php-tools (>= 1.7~), phpab, jq, moreutils
7+
Standards-Version: 4.7.0
78
Homepage: https://github.com/Spoje-NET/php-abraflexi
9+
Rules-Requires-Root: no
810

911
Package: php-spojenet-abraflexi
10-
Depends: ${misc:Depends}, php-curl, php-xml, php-vitexsoftware-ease-core (>=1.45), composer
12+
Architecture: all
13+
Section: php
14+
Depends: ${misc:Depends}, ${phpcomposer:Debian-require}, php-curl, php-xml
1115
Provides: php-abraflexi
1216
Conflicts: flexipeehp
1317
Suggests: abraflexi-client-config,abraflexi-client,abraflexi-contract-invoices,abraflexi-dark-gui,abraflexi-digest,abraflexi-matcher,abraflexi-reminder,abraflexi-server,abraflexi-server-backup,abraflexi-tools,multi-abraflexi-setup,abraflexi-mailer,php-vitexsoftware-ease-bootstrap4-widgets-abraflexi,php-vitexsoftware-abraflexi-bricks
14-
Architecture: all
15-
Section: web
16-
Priority: optional
1718
Description: PHP Based abraflexi RestAPI/Json library
1819
Allow you read and write operations on czech accounting system abraflexi
1920

2021
Package: php-spojenet-abraflexi-dev
21-
Depends: ${misc:Depends}, php-spojenet-abraflexi, php-vitexsoftware-ease-core-dev
2222
Architecture: all
23-
Section: web
24-
Priority: optional
23+
Section: php
24+
Depends: ${misc:Depends}, php-spojenet-abraflexi, php-vitexsoftware-ease-core-dev
2525
Description: PHP Based abraflexi RestAPI/Json library development files
2626
PHPUnit classes used for testing php-abraflexi functionality
2727

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,6 @@
11
#!/bin/sh
2-
3-
#DEBHELPER#
4-
5-
# postinst script for php-spojenet-flexibee
6-
#
7-
# see: dh_installdeb(1)
8-
92
set -e
103

11-
. /usr/share/debconf/confmodule
12-
13-
14-
# summary of how this script can be called:
15-
# * <postinst> `configure' <most-recently-configured-version>
16-
# * <old-postinst> `abort-upgrade' <new version>
17-
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
18-
# <new-version>
19-
# * <postinst> `abort-remove'
20-
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
21-
# <failed-install-package> <version> `removing'
22-
# <conflicting-package> <version>
23-
# for details, see http://www.debian.org/doc/debian-policy/ or
24-
# the debian-policy package
25-
26-
27-
case "$1" in
28-
configure)
29-
30-
composer-global-update deb/abraflexi
31-
32-
;;
33-
34-
abort-upgrade|abort-remove|abort-deconfigure)
35-
;;
36-
37-
*)
38-
echo "postinst called with unknown argument \`$1'" >&2
39-
exit 1
40-
;;
41-
esac
42-
43-
# dh_installdeb will replace this with shell code automatically
44-
# generated by other debhelper scripts.
4+
#DEBHELPER#
455

466
exit 0
47-
48-
#DEBHELPER#

debian/rules

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,18 @@
11
#!/usr/bin/make -f
22

33
%:
4-
dh $@
4+
dh $@ --with phpcomposer
55

66
override_dh_auto_test:
77
echo tests temporarly skipped for now in rules file
88

9-
#override_dh_prep:
10-
# composer install --no-dev
11-
# cd tools; ./update_all.sh ; cd ..
12-
# phpdoc run -d src
13-
# mkdir -p docs ; mv .phpdoc/build/* docs
14-
# dh_prep
15-
16-
#override_dh_auto_test:
17-
# composer update --no-ansi --no-interaction --no-progress --no-scripts --optimize-autoloader
18-
# ./vendor/bin/phpunit --bootstrap tests/Bootstrap.php
19-
# dh_auto_test
20-
21-
22-
239
override_dh_install:
24-
dh_install
10+
# Generate autoloader
11+
phpab --output src/AbraFlexi/autoload.php --basedir src/AbraFlexi src/AbraFlexi
12+
dh_install
13+
# Register with pkg-php-tools
14+
pkg-php-tools-phpcomposer install deb abraflexi AbraFlexi/autoload.php
15+
# Version stamp
2516
jq '.version = "'`dpkg-parsechangelog | sed -n 's/^Version: //p'| sed 's/~.*//' `'"' debian/composer.json |sponge debian/php-spojenet-abraflexi/usr/share/php/AbraFlexi/composer.json
2617
sed -i -e "s/\/\.\.\/\.\.\//\//g" debian/php-spojenet-abraflexi/usr/share/php/AbraFlexi/RO.php
2718
sed -i -e "s/\/\.\.\/\.\.\//\//g" debian/php-spojenet-abraflexi/usr/share/php/AbraFlexi/Functions.php

0 commit comments

Comments
 (0)