forked from pool/wp-cli
- Update to version 2.8.1 * Define WP_CLI_ROOT if needed * Extract Requests out of Composer - Update to version 2.8.0 * Ignore Requests deprecations in error handling for now * Fallback to hardcoded folder when WPINC not defined * Conditionally adapt to Core Requests library * Add bootstrap step to extract default CA certificate * Use wp_cache_flush_runtime if supported. * Extract cacert from Phar for cURL * Fix some PHP 8.2 depreciation notices in behat tests * Upgrade WP-CLI to Requests v2 * Added "wp cli alias is-group" subcommand. * Use -R instead of -r for fallback pager command * Fix autocompletion notice with PHP 8.2 * fix PHP Deprecation for 8.1 * Add composer phpcbf * Use WP_CLI_FORCE_USER_LOGIN=1 to force --user=<login> * Fix --skip-themes for themes with block patterns * Fix deprecation notice triggered in WpOrgApi class in PHP 8.1 * Improve support for cases with empty --path provided to wp-cli commands * PHP 8.2: explicitly declare CompositeCommand::$longdesc to fix deprecation warning * Detect Object Cache Pro * Ensure WP_CLI_ROOT is defined before accessing it OBS-URL: https://build.opensuse.org/request/show/1095328 OBS-URL: https://build.opensuse.org/package/show/server:php:applications/wp-cli?expand=0&rev=10
55 lines
1.7 KiB
RPMSpec
55 lines
1.7 KiB
RPMSpec
#
|
|
# spec file for package wp-cli
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: wp-cli
|
|
Version: 2.8.1
|
|
Release: 0
|
|
Summary: WordPress command-line interface
|
|
License: MIT
|
|
URL: https://wp-cli.org/
|
|
Source0: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.phar
|
|
Source1: https://raw.githubusercontent.com/%{name}/%{name}/v%{version}/utils/wp-completion.bash
|
|
Requires: php >= 5.6
|
|
Requires: php-json
|
|
Requires: php-openssl
|
|
Requires: php-phar
|
|
Requires: php-zip
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
WP-CLI is the command-line interface for WordPress. You can update plugins,
|
|
configure multisite installations and much more, without using a web browser.
|
|
|
|
%prep
|
|
%setup -q -c -T
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
install -m 0755 %{SOURCE0} %{buildroot}%{_bindir}/wp
|
|
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
|
|
install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/profile.d
|
|
|
|
%files
|
|
%defattr(-,root,root,0755)
|
|
%{_bindir}/wp
|
|
%config %{_sysconfdir}/profile.d/wp-completion.bash
|
|
|
|
%changelog
|