|
Shawn Iwinski |
68d460a |
#
|
|
Shawn Iwinski |
68d460a |
# Fedora spec file for drush
|
|
Shawn Iwinski |
68d460a |
#
|
|
|
df9049e |
# Copyright (c) 2015-2020 Shawn Iwinski <shawn@iwin.ski>
|
|
Shawn Iwinski |
68d460a |
#
|
|
Shawn Iwinski |
68d460a |
# License: MIT
|
|
Shawn Iwinski |
68d460a |
# http://opensource.org/licenses/MIT
|
|
Shawn Iwinski |
68d460a |
#
|
|
Shawn Iwinski |
68d460a |
# Please preserve changelog entries
|
|
Shawn Iwinski |
68d460a |
#
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
%global github_owner drush-ops
|
|
Shawn Iwinski |
68d460a |
%global github_name drush
|
|
|
941a542 |
%global github_version 8.1.16
|
|
|
941a542 |
%global github_commit bbaff2dc725a5f3eb22006c5de3dc92a2de54b08
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
%global composer_vendor drush
|
|
Shawn Iwinski |
68d460a |
%global composer_project drush
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
ebf95d1 |
# "php": ">=5.4.5"
|
|
Shawn Iwinski |
ebf95d1 |
%global php_min_ver 5.4.5
|
|
|
941a542 |
# "consolidation/annotated-command": "^2.8.1"
|
|
|
941a542 |
%global consolidation_annotated_command_min_ver 2.8.1
|
|
|
df9049e |
%global consolidation_annotated_command_max_ver 5
|
|
|
624bb20 |
# "consolidation/output-formatters": "~3"
|
|
|
624bb20 |
%global consolidation_output_formatters_min_ver 3
|
|
|
df9049e |
%global consolidation_output_formatters_max_ver 5
|
|
|
941a542 |
# "pear/console_table": "~1.3.1"
|
|
|
941a542 |
%global pear_console_table_min_ver 1.3.1
|
|
Shawn Iwinski |
ebf95d1 |
%global pear_console_table_max_ver 2.0
|
|
Shawn Iwinski |
ebf95d1 |
# "psr/log": "~1.0"
|
|
Shawn Iwinski |
ebf95d1 |
# NOTE: Min version not 1.0 because autoloader required
|
|
|
53fdf40 |
%global psr_log_min_ver 1.0.1
|
|
Shawn Iwinski |
ebf95d1 |
%global psr_log_max_ver 2.0
|
|
Shawn Iwinski |
ebf95d1 |
# "psy/psysh": "~0.6"
|
|
Shawn Iwinski |
ebf95d1 |
%global psysh_min_ver 0.6
|
|
Shawn Iwinski |
ebf95d1 |
%global psysh_max_ver 1.0
|
|
|
941a542 |
# "symfony/console": "~2.7",
|
|
|
941a542 |
# "symfony/console": "~2.7|^3",
|
|
|
941a542 |
# "symfony/event-dispatcher": "~2.7",
|
|
|
941a542 |
# "symfony/event-dispatcher": "~2.7|^3",
|
|
|
941a542 |
# "symfony/finder": "~2.7",
|
|
|
941a542 |
# "symfony/finder": "~2.7|^3",
|
|
Shawn Iwinski |
ebf95d1 |
# "symfony/process": "2.7.*"
|
|
|
941a542 |
# "symfony/var-dumper": "~2.7",
|
|
|
941a542 |
# "symfony/yaml": "~2.3",
|
|
|
941a542 |
# "symfony/var-dumper": "~2.7|^3",
|
|
|
941a542 |
# "symfony/yaml": "~2.3|^3",
|
|
Shawn Iwinski |
ebf95d1 |
# NOTE: Min version not 2.7.0 because autoloader required
|
|
Shawn Iwinski |
ebf95d1 |
%global symfony_min_ver 2.7.1
|
|
|
941a542 |
%global symfony_max_ver 4.0
|
|
|
53fdf40 |
# "webmozart/path-util": "~2"
|
|
|
53fdf40 |
%global webmozart_path_util_min_ver 2
|
|
|
53fdf40 |
%global webmozart_path_util_max_ver 3
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
%global drush_dir %{_datadir}/drush
|
|
Shawn Iwinski |
68d460a |
%global pear_channel pear.drush.org
|
|
Shawn Iwinski |
68d460a |
%global pear_name drush
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
%global git_min_ver 1.7
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
# Build using "--with tests" to enable tests
|
|
Shawn Iwinski |
68d460a |
# TODO: Figure out test issues and enable by default
|
|
Shawn Iwinski |
68d460a |
%global with_tests 0%{?_with_tests:1}
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
%{!?phpdir: %global phpdir %{_datadir}/php}
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
Name: %{composer_project}
|
|
Shawn Iwinski |
68d460a |
Version: %{github_version}
|
|
|
1d4d223 |
Release: 7%{?github_release}%{?dist}
|
|
Shawn Iwinski |
68d460a |
Summary: Command line shell and scripting interface for Drupal
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
License: GPLv2+
|
|
Shawn Iwinski |
68d460a |
URL: http://www.drush.org/
|
|
Shawn Iwinski |
68d460a |
Source0: https://github.com/%{github_owner}/%{github_name}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
93e3e2a |
# error importing function definition for `BASH_FUNC_scl'
|
|
Shawn Iwinski |
93e3e2a |
# https://github.com/drush-ops/drush/issues/2065
|
|
Shawn Iwinski |
93e3e2a |
Patch0: %{name}-issue2065.patch
|
|
Shawn Iwinski |
93e3e2a |
|
|
Shawn Iwinski |
68d460a |
BuildArch: noarch
|
|
Shawn Iwinski |
ebf95d1 |
# %%{pear_phpdir} macro
|
|
Shawn Iwinski |
ebf95d1 |
BuildRequires: php-pear
|
|
Shawn Iwinski |
68d460a |
%if %{with_tests}
|
|
Shawn Iwinski |
68d460a |
BuildRequires: git >= %{git_min_ver}
|
|
Shawn Iwinski |
68d460a |
BuildRequires: patch
|
|
|
242a8b5 |
BuildRequires: php-cli
|
|
Shawn Iwinski |
68d460a |
# composer.json
|
|
|
941a542 |
BuildRequires: php(language) >= %{php_min_ver}
|
|
Shawn Iwinski |
6b78ee6 |
BuildRequires: php-composer(phpunit/phpunit)
|
|
|
941a542 |
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
|
|
|
941a542 |
BuildRequires: (php-composer(consolidation/annotated-command) >= %{consolidation_annotated_command_min_ver} with php-composer(consolidation/annotated-command) < %{consolidation_annotated_command_max_ver})
|
|
|
941a542 |
BuildRequires: (php-composer(consolidation/output-formatters) >= %{consolidation_output_formatters_min_ver} with php-composer(consolidation/output-formatters) < %{consolidation_output_formatters_max_ver})
|
|
|
941a542 |
BuildRequires: (php-composer(pear/console_table) >= %{pear_console_table_min_ver} with php-composer(pear/console_table) < %{pear_console_table_max_ver})
|
|
|
941a542 |
BuildRequires: (php-composer(psr/log) >= %{psr_log_min_ver} with php-composer(psr/log) < %{psr_log_max_ver})
|
|
|
941a542 |
BuildRequires: (php-composer(psy/psysh) >= %{psysh_min_ver} with php-composer(psy/psysh) < %{psysh_max_ver})
|
|
|
941a542 |
BuildRequires: (php-composer(symfony/console) >= %{symfony_min_ver} with php-composer(symfony/console) < %{symfony_max_ver})
|
|
|
941a542 |
BuildRequires: (php-composer(symfony/event-dispatcher) >= %{symfony_min_ver} with php-composer(symfony/event-dispatcher) < %{symfony_max_ver})
|
|
|
941a542 |
BuildRequires: (php-composer(symfony/finder) >= %{symfony_min_ver} with php-composer(symfony/finder) < %{symfony_max_ver})
|
|
|
941a542 |
BuildRequires: (php-composer(symfony/process) >= %{symfony_min_ver} with php-composer(symfony/process) < %{symfony_max_ver})
|
|
|
941a542 |
BuildRequires: (php-composer(symfony/var-dumper) >= %{symfony_min_ver} with php-composer(symfony/var-dumper) < %{symfony_max_ver})
|
|
|
941a542 |
BuildRequires: (php-composer(symfony/yaml) >= %{symfony_min_ver} with php-composer(symfony/yaml) < %{symfony_max_ver})
|
|
|
941a542 |
BuildRequires: (php-composer(webmozart/path-util) >= %{webmozart_path_util_min_ver} with php-composer(webmozart/path-util) < %{webmozart_path_util_max_ver})
|
|
|
941a542 |
%else
|
|
|
941a542 |
BuildRequires: php-composer(consolidation/annotated-command) < %{consolidation_annotated_command_max_ver}
|
|
|
941a542 |
BuildRequires: php-composer(consolidation/annotated-command) >= %{consolidation_annotated_command_min_ver}
|
|
|
941a542 |
BuildRequires: php-composer(consolidation/output-formatters) < %{consolidation_output_formatters_max_ver}
|
|
|
941a542 |
BuildRequires: php-composer(consolidation/output-formatters) >= %{consolidation_output_formatters_min_ver}
|
|
|
941a542 |
BuildRequires: php-composer(pear/console_table) < %{pear_console_table_max_ver}
|
|
|
941a542 |
BuildRequires: php-composer(pear/console_table) >= %{pear_console_table_min_ver}
|
|
|
941a542 |
BuildRequires: php-composer(psr/log) < %{psr_log_max_ver}
|
|
|
941a542 |
BuildRequires: php-composer(psr/log) >= %{psr_log_min_ver}
|
|
|
941a542 |
BuildRequires: php-composer(psy/psysh) < %{psysh_max_ver}
|
|
|
941a542 |
BuildRequires: php-composer(psy/psysh) >= %{psysh_min_ver}
|
|
|
941a542 |
BuildRequires: php-composer(symfony/console) < %{symfony_max_ver}
|
|
|
941a542 |
BuildRequires: php-composer(symfony/console) >= %{symfony_min_ver}
|
|
|
941a542 |
BuildRequires: php-composer(symfony/event-dispatcher) < %{symfony_max_ver}
|
|
|
941a542 |
BuildRequires: php-composer(symfony/event-dispatcher) >= %{symfony_min_ver}
|
|
|
941a542 |
BuildRequires: php-composer(symfony/finder) < %{symfony_max_ver}
|
|
|
941a542 |
BuildRequires: php-composer(symfony/finder) >= %{symfony_min_ver}
|
|
|
941a542 |
BuildRequires: php-composer(symfony/process) < %{symfony_max_ver}
|
|
|
941a542 |
BuildRequires: php-composer(symfony/process) >= %{symfony_min_ver}
|
|
|
941a542 |
BuildRequires: php-composer(symfony/var-dumper) < %{symfony_max_ver}
|
|
|
941a542 |
BuildRequires: php-composer(symfony/var-dumper) >= %{symfony_min_ver}
|
|
|
941a542 |
BuildRequires: php-composer(symfony/yaml) < %{symfony_max_ver}
|
|
|
941a542 |
BuildRequires: php-composer(symfony/yaml) >= %{symfony_min_ver}
|
|
|
941a542 |
BuildRequires: php-composer(webmozart/path-util) < %{webmozart_path_util_max_ver}
|
|
|
941a542 |
BuildRequires: php-composer(webmozart/path-util) >= %{webmozart_path_util_min_ver}
|
|
|
941a542 |
%endif
|
|
|
941a542 |
# phpcompatinfo (computed from version 8.1.16)
|
|
Shawn Iwinski |
68d460a |
BuildRequires: php-ctype
|
|
Shawn Iwinski |
68d460a |
BuildRequires: php-date
|
|
Shawn Iwinski |
68d460a |
BuildRequires: php-fileinfo
|
|
Shawn Iwinski |
68d460a |
BuildRequires: php-filter
|
|
Shawn Iwinski |
68d460a |
BuildRequires: php-hash
|
|
Shawn Iwinski |
68d460a |
BuildRequires: php-iconv
|
|
Shawn Iwinski |
68d460a |
BuildRequires: php-json
|
|
Shawn Iwinski |
ebf95d1 |
BuildRequires: php-pcntl
|
|
Shawn Iwinski |
68d460a |
BuildRequires: php-pcre
|
|
Shawn Iwinski |
68d460a |
BuildRequires: php-posix
|
|
Shawn Iwinski |
68d460a |
BuildRequires: php-reflection
|
|
Shawn Iwinski |
68d460a |
BuildRequires: php-simplexml
|
|
Shawn Iwinski |
68d460a |
BuildRequires: php-spl
|
|
Shawn Iwinski |
ebf95d1 |
## Autoloader
|
|
|
17c8052 |
BuildRequires: php-composer(fedora/autoloader)
|
|
Shawn Iwinski |
68d460a |
%endif
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
Requires: git >= %{git_min_ver}
|
|
Shawn Iwinski |
68d460a |
Requires: patch
|
|
Shawn Iwinski |
ebf95d1 |
Requires: php-cli
|
|
Shawn Iwinski |
68d460a |
# composer.json
|
|
|
941a542 |
Requires: php(language) >= %{php_min_ver}
|
|
Shawn Iwinski |
ebf95d1 |
Requires: php-composer(phpunit/phpunit)
|
|
|
941a542 |
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
|
|
|
941a542 |
Requires: (php-composer(consolidation/annotated-command) >= %{consolidation_annotated_command_min_ver} with php-composer(consolidation/annotated-command) < %{consolidation_annotated_command_max_ver})
|
|
|
941a542 |
Requires: (php-composer(consolidation/output-formatters) >= %{consolidation_output_formatters_min_ver} with php-composer(consolidation/output-formatters) < %{consolidation_output_formatters_max_ver})
|
|
|
941a542 |
Requires: (php-composer(pear/console_table) >= %{pear_console_table_min_ver} with php-composer(pear/console_table) < %{pear_console_table_max_ver})
|
|
|
941a542 |
Requires: (php-composer(psr/log) >= %{psr_log_min_ver} with php-composer(psr/log) < %{psr_log_max_ver})
|
|
|
941a542 |
Requires: (php-composer(psy/psysh) >= %{psysh_min_ver} with php-composer(psy/psysh) < %{psysh_max_ver})
|
|
|
941a542 |
Requires: (php-composer(symfony/console) >= %{symfony_min_ver} with php-composer(symfony/console) < %{symfony_max_ver})
|
|
|
941a542 |
Requires: (php-composer(symfony/event-dispatcher) >= %{symfony_min_ver} with php-composer(symfony/event-dispatcher) < %{symfony_max_ver})
|
|
|
941a542 |
Requires: (php-composer(symfony/finder) >= %{symfony_min_ver} with php-composer(symfony/finder) < %{symfony_max_ver})
|
|
|
941a542 |
Requires: (php-composer(symfony/var-dumper) >= %{symfony_min_ver} with php-composer(symfony/var-dumper) < %{symfony_max_ver})
|
|
|
941a542 |
Requires: (php-composer(symfony/yaml) >= %{symfony_min_ver} with php-composer(symfony/yaml) < %{symfony_max_ver})
|
|
|
941a542 |
Requires: (php-composer(webmozart/path-util) >= %{webmozart_path_util_min_ver} with php-composer(webmozart/path-util) < %{webmozart_path_util_max_ver})
|
|
|
941a542 |
%else
|
|
|
941a542 |
Requires: php-composer(consolidation/annotated-command) < %{consolidation_annotated_command_max_ver}
|
|
|
941a542 |
Requires: php-composer(consolidation/annotated-command) >= %{consolidation_annotated_command_min_ver}
|
|
|
941a542 |
Requires: php-composer(consolidation/output-formatters) < %{consolidation_output_formatters_max_ver}
|
|
|
941a542 |
Requires: php-composer(consolidation/output-formatters) >= %{consolidation_output_formatters_min_ver}
|
|
|
941a542 |
Requires: php-composer(pear/console_table) >= %{pear_console_table_min_ver}
|
|
|
941a542 |
Requires: php-composer(psr/log) < %{psr_log_max_ver}
|
|
|
941a542 |
Requires: php-composer(psr/log) >= %{psr_log_min_ver}
|
|
|
941a542 |
Requires: php-composer(psy/psysh) < %{psysh_max_ver}
|
|
|
941a542 |
Requires: php-composer(psy/psysh) >= %{psysh_min_ver}
|
|
|
941a542 |
Requires: php-composer(symfony/console) < %{symfony_max_ver}
|
|
|
941a542 |
Requires: php-composer(symfony/console) >= %{symfony_min_ver}
|
|
|
941a542 |
Requires: php-composer(symfony/event-dispatcher) < %{symfony_max_ver}
|
|
|
941a542 |
Requires: php-composer(symfony/event-dispatcher) >= %{symfony_min_ver}
|
|
|
941a542 |
Requires: php-composer(symfony/finder) < %{symfony_max_ver}
|
|
|
941a542 |
Requires: php-composer(symfony/finder) >= %{symfony_min_ver}
|
|
|
941a542 |
Requires: php-composer(symfony/var-dumper) < %{symfony_max_ver}
|
|
|
941a542 |
Requires: php-composer(symfony/var-dumper) >= %{symfony_min_ver}
|
|
|
941a542 |
Requires: php-composer(symfony/yaml) < %{symfony_max_ver}
|
|
|
941a542 |
Requires: php-composer(symfony/yaml) >= %{symfony_min_ver}
|
|
|
941a542 |
Requires: php-composer(webmozart/path-util) < %{webmozart_path_util_max_ver}
|
|
|
941a542 |
Requires: php-composer(webmozart/path-util) >= %{webmozart_path_util_min_ver}
|
|
|
941a542 |
%endif
|
|
|
941a542 |
# phpcompatinfo (computed from version 8.1.16)
|
|
Shawn Iwinski |
68d460a |
Requires: php-ctype
|
|
Shawn Iwinski |
68d460a |
Requires: php-date
|
|
Shawn Iwinski |
68d460a |
Requires: php-fileinfo
|
|
Shawn Iwinski |
68d460a |
Requires: php-filter
|
|
Shawn Iwinski |
68d460a |
Requires: php-hash
|
|
Shawn Iwinski |
68d460a |
Requires: php-iconv
|
|
Shawn Iwinski |
68d460a |
Requires: php-json
|
|
Shawn Iwinski |
68d460a |
Requires: php-pcre
|
|
Shawn Iwinski |
68d460a |
Requires: php-posix
|
|
Shawn Iwinski |
68d460a |
Requires: php-reflection
|
|
Shawn Iwinski |
68d460a |
Requires: php-simplexml
|
|
Shawn Iwinski |
68d460a |
Requires: php-spl
|
|
Shawn Iwinski |
ebf95d1 |
# Autoloader
|
|
|
0241bfd |
Requires: php-composer(fedora/autoloader)
|
|
Shawn Iwinski |
ebf95d1 |
|
|
Shawn Iwinski |
ebf95d1 |
# Weak dependencies
|
|
Shawn Iwinski |
ebf95d1 |
%if 0%{?fedora} >= 21
|
|
Shawn Iwinski |
ebf95d1 |
## composer.json: suggest
|
|
Shawn Iwinski |
ebf95d1 |
#Suggests: php-composer(drush/config-extra)
|
|
Shawn Iwinski |
ebf95d1 |
Suggests: php-pcntl
|
|
Shawn Iwinski |
ebf95d1 |
## phpcompatinfo
|
|
Shawn Iwinski |
ebf95d1 |
Suggests: php-pecl(apcu)
|
|
Shawn Iwinski |
ebf95d1 |
Suggests: php-pecl(Xdebug)
|
|
Shawn Iwinski |
ebf95d1 |
Suggests: php-pecl(xhprof)
|
|
Shawn Iwinski |
ebf95d1 |
%endif
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
Provides: php-composer(%{composer_vendor}/%{composer_project}) = %{version}
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
Obsoletes: php-drush-drush < %{version}-%{release}
|
|
Shawn Iwinski |
68d460a |
Provides: php-drush-drush = %{version}-%{release}
|
|
Shawn Iwinski |
68d460a |
Obsoletes: drupal6-drush < %{version}-%{release}
|
|
Shawn Iwinski |
68d460a |
Provides: drupal6-drush = %{version}-%{release}
|
|
Shawn Iwinski |
68d460a |
Obsoletes: drupal7-drush < %{version}-%{release}
|
|
Shawn Iwinski |
68d460a |
Provides: drupal7-drush = %{version}-%{release}
|
|
Shawn Iwinski |
ebf95d1 |
Provides: drupal8-drush = %{version}-%{release}
|
|
Shawn Iwinski |
68d460a |
Provides: php-pear(%{pear_channel}/%{pear_name}) = %{version}
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
# This pkg was the only one in this channel so the channel is no longer needed
|
|
Shawn Iwinski |
68d460a |
Obsoletes: php-channel-drush
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
%description
|
|
Shawn Iwinski |
68d460a |
Drush is a command line shell and Unix scripting interface for Drupal. If you
|
|
Shawn Iwinski |
68d460a |
are unfamiliar with shell scripting, reviewing the documentation for your shell
|
|
Shawn Iwinski |
68d460a |
(e.g. man bash) or reading an online tutorial (e.g. search for "bash tutorial")
|
|
Shawn Iwinski |
68d460a |
will help you get the most out of Drush.
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
Drush core ships with lots of useful commands for interacting with code like
|
|
Shawn Iwinski |
68d460a |
modules/themes/profiles. Similarly, it runs update.php, executes sql queries
|
|
Shawn Iwinski |
68d460a |
and DB migrations, and misc utilities like run cron or clear cache.
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
%prep
|
|
Shawn Iwinski |
68d460a |
%setup -qn %{github_name}-%{github_commit}
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
93e3e2a |
: Fix "error importing function definition for 'BASH_FUNC_scl'"
|
|
Shawn Iwinski |
93e3e2a |
: https://github.com/drush-ops/drush/issues/2065
|
|
Shawn Iwinski |
93e3e2a |
%patch0 -p1
|
|
Shawn Iwinski |
93e3e2a |
|
|
Shawn Iwinski |
ebf95d1 |
: Remove unneeded stuff
|
|
Shawn Iwinski |
ebf95d1 |
rm -rf drush.bat misc/windrush_build
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
: W: wrong-file-end-of-line-encoding /usr/share/doc/drush/examples/sandwich.txt
|
|
Shawn Iwinski |
68d460a |
sed -i 's/\r$//' examples/sandwich.txt
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
%build
|
|
Shawn Iwinski |
ebf95d1 |
: Create autoloader
|
|
Shawn Iwinski |
ebf95d1 |
cat <<'AUTOLOAD' | tee autoload.php
|
|
Shawn Iwinski |
ebf95d1 |
|
|
Shawn Iwinski |
ebf95d1 |
/**
|
|
Shawn Iwinski |
ebf95d1 |
* Autoloader for %{name} and its' dependencies
|
|
Shawn Iwinski |
ebf95d1 |
* (created by %{name}-%{version}-%{release}).
|
|
Shawn Iwinski |
ebf95d1 |
*/
|
|
|
17c8052 |
require_once '%{phpdir}/Fedora/Autoloader/autoload.php';
|
|
|
17c8052 |
|
|
|
d7d1c60 |
\Fedora\Autoloader\Autoload::addPsr4('Drush\\', __DIR__.'/lib/Drush');
|
|
|
17c8052 |
|
|
|
17c8052 |
\Fedora\Autoloader\Dependencies::required([
|
|
|
17c8052 |
'%{phpdir}/Consolidation/AnnotatedCommand/autoload.php',
|
|
|
17c8052 |
'%{phpdir}/Consolidation/OutputFormatters/autoload.php',
|
|
|
17c8052 |
'%{phpdir}/Psr/Log/autoload.php',
|
|
|
17c8052 |
'%{phpdir}/Psy/autoload.php',
|
|
|
941a542 |
[
|
|
|
941a542 |
'%{phpdir}/Symfony3/Component/Console/autoload.php',
|
|
|
941a542 |
'%{phpdir}/Symfony/Component/Console/autoload.php',
|
|
|
941a542 |
],
|
|
|
941a542 |
[
|
|
|
941a542 |
'%{phpdir}/Symfony3/Component/EventDispatcher/autoload.php',
|
|
|
941a542 |
'%{phpdir}/Symfony/Component/EventDispatcher/autoload.php',
|
|
|
941a542 |
],
|
|
|
941a542 |
[
|
|
|
941a542 |
'%{phpdir}/Symfony3/Component/Finder/autoload.php',
|
|
|
941a542 |
'%{phpdir}/Symfony/Component/Finder/autoload.php',
|
|
|
941a542 |
],
|
|
|
941a542 |
[
|
|
|
941a542 |
'%{phpdir}/Symfony3/Component/VarDumper/autoload.php',
|
|
|
941a542 |
'%{phpdir}/Symfony/Component/VarDumper/autoload.php',
|
|
|
941a542 |
],
|
|
|
941a542 |
[
|
|
|
941a542 |
'%{phpdir}/Symfony3/Component/Yaml/autoload.php',
|
|
|
941a542 |
'%{phpdir}/Symfony/Component/Yaml/autoload.php',
|
|
|
941a542 |
],
|
|
|
17c8052 |
'%{phpdir}/Webmozart/PathUtil/autoload.php',
|
|
|
17c8052 |
]);
|
|
|
17c8052 |
|
|
|
d7d1c60 |
\Fedora\Autoloader\Autoload::addPsr0('Console_', '%{pear_phpdir}');
|
|
Shawn Iwinski |
ebf95d1 |
AUTOLOAD
|
|
Shawn Iwinski |
ebf95d1 |
|
|
Shawn Iwinski |
ebf95d1 |
: Mock Composer autoloader
|
|
Shawn Iwinski |
ebf95d1 |
mkdir vendor
|
|
Shawn Iwinski |
ebf95d1 |
ln -s ../autoload.php vendor/autoload.php
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
%install
|
|
Shawn Iwinski |
68d460a |
mkdir -p %{buildroot}%{drush_dir}
|
|
Shawn Iwinski |
68d460a |
cp -pr * %{buildroot}%{drush_dir}/
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
: Bin
|
|
Shawn Iwinski |
68d460a |
mkdir -p %{buildroot}%{_bindir}
|
|
Shawn Iwinski |
68d460a |
ln -s %{drush_dir}/drush %{buildroot}%{_bindir}/drush
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
: Completion
|
|
Shawn Iwinski |
68d460a |
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
|
|
Shawn Iwinski |
68d460a |
install -pm 0644 drush.complete.sh %{buildroot}%{_sysconfdir}/bash_completion.d/
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
%check
|
|
Shawn Iwinski |
68d460a |
%if %{with_tests}
|
|
Shawn Iwinski |
ebf95d1 |
: Create tests bootstrap
|
|
Shawn Iwinski |
ebf95d1 |
cat <<'AUTOLOAD' | tee tests-autoload.php
|
|
Shawn Iwinski |
ebf95d1 |
|
|
|
17c8052 |
require_once '%{buildroot}%{drush_dir}/autoload.php';
|
|
|
17c8052 |
\Fedora\Autoloader\Autoload::addPsr4('Unish\\', __DIR__.'/tests');
|
|
|
17c8052 |
\Fedora\Autoloader\Dependencies::required([
|
|
|
941a542 |
[
|
|
|
941a542 |
'%{phpdir}/Symfony3/Component/Process/autoload.php',
|
|
|
941a542 |
'%{phpdir}/Symfony/Component/Process/autoload.php',
|
|
|
941a542 |
],
|
|
|
17c8052 |
]);
|
|
Shawn Iwinski |
ebf95d1 |
AUTOLOAD
|
|
Shawn Iwinski |
ebf95d1 |
|
|
Shawn Iwinski |
ebf95d1 |
: Update bootstrap.inc to use generated bootstrap
|
|
Shawn Iwinski |
ebf95d1 |
sed 's#vendor/autoload\.php#tests-autoload.php#' -i tests/bootstrap.inc
|
|
Shawn Iwinski |
ebf95d1 |
|
|
Shawn Iwinski |
ebf95d1 |
: Skip specific tests
|
|
Shawn Iwinski |
ebf95d1 |
pushd tests
|
|
Shawn Iwinski |
ebf95d1 |
#rm -f \
|
|
Shawn Iwinski |
ebf95d1 |
# pmDownloadTest.php \
|
|
Shawn Iwinski |
ebf95d1 |
# siteSshTest.php \
|
|
Shawn Iwinski |
ebf95d1 |
# sql*Test.php
|
|
Shawn Iwinski |
ebf95d1 |
popd
|
|
Shawn Iwinski |
ebf95d1 |
|
|
Shawn Iwinski |
ebf95d1 |
UNISH_DRUSH=%{buildroot}%{drush_dir}/drush \
|
|
Shawn Iwinski |
ebf95d1 |
%{_bindir}/phpunit --verbose --configuration tests
|
|
Shawn Iwinski |
68d460a |
%else
|
|
Shawn Iwinski |
68d460a |
: Tests skipped
|
|
Shawn Iwinski |
68d460a |
: Build using "--with tests" to enable tests
|
|
Shawn Iwinski |
68d460a |
%endif
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
%files
|
|
Shawn Iwinski |
68d460a |
%{!?_licensedir:%global license %%doc}
|
|
Shawn Iwinski |
68d460a |
# %%license
|
|
Shawn Iwinski |
68d460a |
# See https://github.com/drush-ops/drush/pull/319
|
|
Shawn Iwinski |
ebf95d1 |
%doc *.md
|
|
Shawn Iwinski |
ebf95d1 |
%doc composer.json
|
|
Shawn Iwinski |
68d460a |
%doc docs
|
|
Shawn Iwinski |
68d460a |
%doc examples
|
|
Shawn Iwinski |
ebf95d1 |
%doc mkdocs.yml
|
|
Shawn Iwinski |
68d460a |
%{_bindir}/drush
|
|
Shawn Iwinski |
68d460a |
%{drush_dir}
|
|
Shawn Iwinski |
ebf95d1 |
%exclude %{drush_dir}/*.md
|
|
Shawn Iwinski |
ebf95d1 |
%exclude %{drush_dir}/box.json.dist
|
|
Shawn Iwinski |
ebf95d1 |
%exclude %{drush_dir}/composer.json
|
|
Shawn Iwinski |
68d460a |
%exclude %{drush_dir}/docs
|
|
Shawn Iwinski |
ebf95d1 |
%exclude %{drush_dir}/drush.complete.sh
|
|
Shawn Iwinski |
68d460a |
%exclude %{drush_dir}/examples
|
|
Shawn Iwinski |
ebf95d1 |
%exclude %{drush_dir}/mkdocs.yml
|
|
Shawn Iwinski |
68d460a |
%exclude %{drush_dir}/tests
|
|
Shawn Iwinski |
ebf95d1 |
%exclude %{drush_dir}/unish.sh
|
|
|
242a8b5 |
%{_sysconfdir}/bash_completion.d/drush.complete.sh
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
|
|
Shawn Iwinski |
68d460a |
%changelog
|
|
|
1d4d223 |
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 8.1.16-7
|
|
|
1d4d223 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
1d4d223 |
|
|
|
df9049e |
* Mon Feb 24 2020 Shawn Iwinski <shawn@iwin.ski> - 8.1.16-6
|
|
|
df9049e |
- Bump max php-composer(consolidation/annotated-command) and
|
|
|
df9049e |
php-composer(consolidation/output-formatters) dependency versions
|
|
|
df9049e |
|
|
|
be9a1b0 |
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 8.1.16-5
|
|
|
be9a1b0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
be9a1b0 |
|
|
|
5ab0858 |
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.1.16-4
|
|
|
5ab0858 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
5ab0858 |
|
|
|
30d7893 |
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.1.16-3
|
|
|
30d7893 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
30d7893 |
|
|
|
fe76a8f |
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 8.1.16-2
|
|
|
fe76a8f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
fe76a8f |
|
|
|
941a542 |
* Fri Mar 30 2018 Shawn Iwinski <shawn@iwin.ski> - 8.1.16-1
|
|
|
941a542 |
- Update to 8.1.16
|
|
|
941a542 |
- Add range version dependencies for Fedora >= 27 || RHEL >= 8
|
|
|
941a542 |
|
|
|
500face |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 8.1.10-4
|
|
|
500face |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
500face |
|
|
|
15eb9e6 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 8.1.10-3
|
|
|
15eb9e6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
15eb9e6 |
|
|
|
c4da6c7 |
* Tue Mar 28 2017 Shawn Iwinski <shawn@iwin.ski> - 8.1.10-2
|
|
|
c4da6c7 |
- Add max versions to BuildRequires
|
|
|
f56d750 |
- Prepare for php-phpdocumentor-reflection-docblock =>
|
|
|
f56d750 |
php-phpdocumentor-reflection-docblock2 dependency rename
|
|
|
c4da6c7 |
|
|
|
be84978 |
* Tue Feb 28 2017 Shawn Iwinski <shawn@iwin.ski> - 8.1.10-1
|
|
|
be84978 |
- Update to 8.1.10 (RHBZ #1426457)
|
|
|
be84978 |
|
|
|
f56b313 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 8.1.9-2
|
|
|
f56b313 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
f56b313 |
|
|
|
624bb20 |
* Sun Jan 15 2017 Shawn Iwinski <shawn@iwin.ski> - 8.1.9-1
|
|
|
624bb20 |
- Update to 8.1.9 (RHBZ #1413321)
|
|
|
624bb20 |
|
|
|
0241bfd |
* Tue Dec 20 2016 Shawn Iwinski <shawn@iwin.ski> - 8.1.8-3
|
|
|
0241bfd |
- Add missing php-composer(fedora/autoloader) dependency (RHBZ #1406416)
|
|
|
0241bfd |
|
|
|
d7d1c60 |
* Sat Dec 03 2016 Shawn Iwinski <shawn@iwin.ski> - 8.1.8-2
|
|
|
d7d1c60 |
- Fix autoloader
|
|
|
d7d1c60 |
|
|
|
17c8052 |
* Sat Dec 03 2016 Shawn Iwinski <shawn@iwin.ski> - 8.1.8-1
|
|
|
17c8052 |
- Update to 8.1.8 (RHBZ #1400079)
|
|
|
17c8052 |
- Switch autoloader from php-composer(symfony/class-loader) to
|
|
|
17c8052 |
php-composer(fedora/autoloader)
|
|
|
17c8052 |
|
|
|
242a8b5 |
* Wed Nov 02 2016 Shawn Iwinski <shawn@iwin.ski> - 8.1.7-2
|
|
|
242a8b5 |
- Remove %%{_sysconfdir}/bash_completion.d directory ownership (RHBZ #1375595)
|
|
|
242a8b5 |
- Add php-cli build dependency
|
|
|
242a8b5 |
|
|
|
53fdf40 |
* Tue Nov 01 2016 Shawn Iwinski <shawn@iwin.ski> - 8.1.7-1
|
|
|
53fdf40 |
- Update to 8.1.7 (RHBZ #1388273)
|
|
|
53fdf40 |
|
|
Shawn Iwinski |
93e3e2a |
* Fri Aug 19 2016 Shawn Iwinski <shawn@iwin.ski> - 8.1.3-3
|
|
Shawn Iwinski |
93e3e2a |
- Add patch to fix "error importing function definition for `BASH_FUNC_scl'"
|
|
Shawn Iwinski |
93e3e2a |
|
|
Shawn Iwinski |
be1e59d |
* Wed Aug 10 2016 Shawn Iwinski <shawn@iwin.ski> - 8.1.3-2
|
|
Shawn Iwinski |
be1e59d |
- Increase "consolidation/annotated-command" max version
|
|
Shawn Iwinski |
be1e59d |
|
|
Shawn Iwinski |
ebf95d1 |
* Tue Aug 09 2016 Shawn Iwinski <shawn@iwin.ski> - 8.1.3-1
|
|
Shawn Iwinski |
ebf95d1 |
- Update to 8.1.3 (RHBZ #1357097)
|
|
Shawn Iwinski |
ebf95d1 |
|
|
Shawn Iwinski |
12c2f07 |
* Mon Jun 27 2016 Shawn Iwinski <shawn@iwin.ski> - 6.7.0-3
|
|
Shawn Iwinski |
12c2f07 |
- EPEL6 requires "php-pear-Console-Table" instead of "php-composer(pear/console_table)"
|
|
Shawn Iwinski |
12c2f07 |
|
|
Shawn Iwinski |
072f8bb |
* Sat Jun 18 2016 Shawn Iwinski <shawn@iwin.ski> - 6.7.0-2
|
|
Shawn Iwinski |
072f8bb |
- Add missing "php-composer(pear/console_table)" dependency (RHBZ #1347826)
|
|
Shawn Iwinski |
072f8bb |
|
|
Shawn Iwinski |
6b78ee6 |
* Fri May 06 2016 Shawn Iwinski <shawn@iwin.ski> - 6.7.0-1
|
|
Shawn Iwinski |
6b78ee6 |
- Update to 6.7.0
|
|
Shawn Iwinski |
6b78ee6 |
|
|
Shawn Iwinski |
6b78ee6 |
* Sun Jul 19 2015 Shawn Iwinski <shawn@iwin.ski> - 6.6.0-1
|
|
Shawn Iwinski |
68d460a |
- Initial package obsoleting php-drush-drush
|