Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F102422
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/debian/control b/debian/control
index 7d5c799..b8c8be7 100644
--- a/debian/control
+++ b/debian/control
@@ -1,25 +1,26 @@
Source: php-amqp
Section: php
Priority: optional
Maintainer: Debian PHP PECL Maintainers <pkg-php-pecl@lists.alioth.debian.org>
Uploaders: Ondřej Surý <ondrej@debian.org>,
Prach Pongpanich <prach@debian.org>
Build-Depends: debhelper (>= 9),
dh-php (>= 0.7~),
librabbitmq-dev (>= 0.7.0),
php-all-dev
Standards-Version: 3.9.6
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-php/php-amqp.git
Vcs-Git: git://anonscm.debian.org/pkg-php/php-amqp.git
Homepage: http://pecl.php.net/package/amqp
Package: php-amqp
Architecture: any
Depends: ${misc:Depends},
${php:Depends},
${shlibs:Depends}
+Provides: ${php:Provides}
Description: AMQP extension for PHP
This extension can communicate with any AMQP spec 0-9-1 compatible
server, such as RabbitMQ, OpenAMQP and Qpid, giving you the ability
to create and delete exchanges and queues, as well as publish to any
exchange and consume from any queue.
diff --git a/debian/rules b/debian/rules
index 29ab171..f1322fa 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,40 +1,60 @@
#!/usr/bin/make -f
+# See debhelper(7) (uncomment to enable)
+# output every command that modifies files on the build system.
+#DH_VERBOSE = 1
+
+# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/default.mk
+
+# see FEATURE AREAS in dpkg-buildflags(1)
+#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+# see ENVIRONMENT in dpkg-buildflags(1)
+# package maintainers to append CFLAGS
+#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
+# package maintainers to append LDFLAGS
+#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
SHELL=/bin/sh -e
-PECL_NAME := $(shell dpkg-parsechangelog -SSource | sed -e s/php-//)
+PECL_NAME := $(subst php-,,$(DEB_SOURCE))
SOURCE_DIR := $(shell ls -1d $(PECL_NAME)-*)
-INSTALL_ROOT := $(CURDIR)/debian/php-$(PECL_NAME)
+INSTALL_ROOT := $(CURDIR)/debian/$(DEB_SOURCE)
PHP_VERSIONS := $(shell /usr/sbin/phpquery -V)
%:
dh $@ --with php --sourcedirectory=$(SOURCE_DIR)
override_dh_auto_configure:
for v in $(PHP_VERSIONS); do \
cp -a $(CURDIR)/$(SOURCE_DIR) $(CURDIR)/build-$$v; \
cd $(CURDIR)/build-$$v; \
phpize$$v; \
done
cd $(SOURCE_DIR) && phpize
for v in $(PHP_VERSIONS); do \
dh_auto_configure --builddirectory=$(CURDIR)/build-$$v --sourcedirectory=$(SOURCE_DIR) -- --enable-$(PECL_NAME) --with-php-config=/usr/bin/php-config$$v; \
done
override_dh_auto_build:
for v in $(PHP_VERSIONS); do \
dh_auto_build --builddirectory=$(CURDIR)/build-$$v --sourcedirectory=$(SOURCE_DIR); \
done
override_dh_auto_install:
for v in $(PHP_VERSIONS); do \
dh_auto_install --builddirectory=$(CURDIR)/build-$$v --sourcedirectory=$(SOURCE_DIR) -- INSTALL_ROOT=$(INSTALL_ROOT); \
done
override_dh_auto_clean:
for v in $(PHP_VERSIONS); do \
dh_auto_clean --builddirectory=$(CURDIR)/build-$$v --sourcedirectory=$(SOURCE_DIR); \
rm -rf $(CURDIR)/build-$$v; \
done
cd $(SOURCE_DIR) && phpize --clean
+
+override_dh_gencontrol: ,:=,
+override_dh_gencontrol:
+ dh_gencontrol -- "-Vphp:Provides=$(addprefix php,$(addsuffix -$(PECL_NAME)$(,) ,$(PHP_VERSIONS)))"
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Jan 30, 4:23 PM (5 d, 6 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
55502
Default Alt Text
(3 KB)
Attached To
Mode
R113 php-ampqp
Attached
Detach File
Event Timeline
Log In to Comment