summaryrefslogtreecommitdiffstats
path: root/macros-f24.pear
diff options
context:
space:
mode:
Diffstat (limited to 'macros-f24.pear')
-rw-r--r--macros-f24.pear36
1 files changed, 36 insertions, 0 deletions
diff --git a/macros-f24.pear b/macros-f24.pear
new file mode 100644
index 0000000..75143d2
--- /dev/null
+++ b/macros-f24.pear
@@ -0,0 +1,36 @@
+#
+# Define full path to pear/pecl commands to be used in scriptlets:
+#
+%@SCL@__pear @BINDIR@/pear
+%@SCL@__pecl @BINDIR@/pecl
+
+#
+# Define PEAR directories used in php-pear-* spec files
+#
+%pear_phpdir %(%{__pear} config-get php_dir 2> /dev/null || echo @PREFIX@/share/pear)
+%pear_docdir %(%{__pear} config-get doc_dir 2> /dev/null || echo @PREFIX@/share/doc/pear)
+%pear_testdir %(%{__pear} config-get test_dir 2> /dev/null || echo @PREFIX@/share/tests/pear)
+%pear_datadir %(%{__pear} config-get data_dir 2> /dev/null || echo @PREFIX@/share/pear-data)
+%pear_cfgdir %(%{__pear} config-get cfg_dir 2> /dev/null || echo @ETCDIR@/pear)
+%pear_wwwdir %(%{__pear} config-get www_dir 2> /dev/null || echo @VARDIR@/www/html)
+%@SCL@pear_metadir %(%{__pear} config-get metadata_dir 2> /dev/null || echo @VARDIR@/lib/pear)
+
+#
+# Define PECL directories used in php-pecl-* spec files:
+#
+%pecl_phpdir %(%{__pecl} config-get php_dir 2> /dev/null || echo @PREFIX@/share/pear)
+%pecl_docdir %(%{__pecl} config-get doc_dir 2> /dev/null || echo @PREFIX@/share/doc/pecl)
+%pecl_testdir %(%{__pecl} config-get test_dir 2> /dev/null || echo @PREFIX@/share/tests/pecl)
+%pecl_datadir %(%{__pecl} config-get data_dir 2> /dev/null || echo @PREFIX@/share/pear-data)
+
+#
+# Define XML directories to store PEAR package registration information:
+# pecl_xmldir is now defined in macros.php (from php-devel)
+#
+%@SCL@pear_xmldir @VARDIR@/lib/pear/pkgxml
+
+#
+# Define noop macros for old scriplets used in php-pecl-* spec files:
+#
+%pecl_install :
+%pecl_uninstall :