Группа :: Система/Настройка/Пакеты
Пакет: wp-cli
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%if_feature php80 8.0.0
%def_with php80
%define defphp php8.0
%endif
%if_feature php81 8.1.0
%def_with php81
%define defphp php8.1
%endif
%if_feature php7 7.4.3
%def_with php7
%define defphp php7
%endif
Name: wp-cli
Version: 2.8.1
Release: alt2
Summary: WP-CLI is a set of command-line tools for managing WordPress installations.
License: MIT
Group: System/Configuration/Packaging
Url: https://github.com/wp-cli/wp-cli
# Source-url: https://github.com/wp-cli/wp-cli-bundle/archive/v%version.tar.gz
Source: %name-%version.tar
Source1: %name-vendor-%version.tar
Packager: Vitaly Lipatov <lav at altlinux.ru>
BuildArch: noarch
BuildRequires(pre): rpm-macros-features
BuildRequires: %defphp %defphp-openssl %defphp-readline
%define wpcli %_datadir/wp-cli
%description
WP-CLI is a set of command-line tools for managing WordPress installations.
%prep
%setup -a1
%build
echo "Generating PHAR ..."
%defphp -dphar.readonly=0 utils/make-phar.php wp-cli.phar --quiet --version=%version --store-version
%install
mkdir -p %buildroot/%_bindir/
install wp-cli.phar %buildroot%_bindir/%name
ln -s %name %buildroot/%_bindir/wp
%check
test "$(%buildroot%_bindir/wp cli version)" = "WP-CLI %version"
%files
%_bindir/%name
%_bindir/wp
%changelog
…
Полный changelog можно просмотреть здесь
%def_with php80
%define defphp php8.0
%endif
%if_feature php81 8.1.0
%def_with php81
%define defphp php8.1
%endif
%if_feature php7 7.4.3
%def_with php7
%define defphp php7
%endif
Name: wp-cli
Version: 2.8.1
Release: alt2
Summary: WP-CLI is a set of command-line tools for managing WordPress installations.
License: MIT
Group: System/Configuration/Packaging
Url: https://github.com/wp-cli/wp-cli
# Source-url: https://github.com/wp-cli/wp-cli-bundle/archive/v%version.tar.gz
Source: %name-%version.tar
Source1: %name-vendor-%version.tar
Packager: Vitaly Lipatov <lav at altlinux.ru>
BuildArch: noarch
BuildRequires(pre): rpm-macros-features
BuildRequires: %defphp %defphp-openssl %defphp-readline
%define wpcli %_datadir/wp-cli
%description
WP-CLI is a set of command-line tools for managing WordPress installations.
%prep
%setup -a1
%build
echo "Generating PHAR ..."
%defphp -dphar.readonly=0 utils/make-phar.php wp-cli.phar --quiet --version=%version --store-version
%install
mkdir -p %buildroot/%_bindir/
install wp-cli.phar %buildroot%_bindir/%name
ln -s %name %buildroot/%_bindir/wp
%check
test "$(%buildroot%_bindir/wp cli version)" = "WP-CLI %version"
%files
%_bindir/%name
%_bindir/wp
%changelog
…
Полный changelog можно просмотреть здесь