Adapt RPM and DEB tools to v2

This commit is contained in:
Alain Schlesser 2018-08-09 00:51:34 +02:00
parent 13b6caf604
commit ac3cc1f4a8
3 changed files with 6 additions and 6 deletions

View file

@ -9,7 +9,7 @@ Source1: wp.1
BuildArch: noarch

%post
echo "PHP 5.3.29 or above must be installed."
echo "PHP 5.4 or above must be installed."

%description
WP-CLI is the command-line interface for WordPress.
@ -42,7 +42,7 @@ install -p -m 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/
* Tue Dec 12 2017 Murtaza Sarıaltun <murtaza.sarialtun@ozguryazzilim.com.tr> - 0.0.0-2
- Remove php requirements.
- Update creating man page steps.
- Added output message.
- Added output message.

* Fri Jul 7 2017 Murtaza Sarıaltun <murtaza.sarialtun@ozguryazilim.com.tr> - 0.0.0-1
- First release of the spec file

View file

@ -28,10 +28,10 @@ dump_control() {
Package: php-wpcli
Version: 0.0.0
Architecture: all
Maintainer: Daniel Bachhuber <daniel@handbuilt.co>
Maintainer: Alain Schlesser <alain.schlesser@gmail.com>
Section: php
Priority: optional
Depends: php5-cli (>= 5.3.29) | php-cli | php7-cli, php5-mysql | php5-mysqlnd | php7.0-mysql | php7.1-mysql, mysql-client | mariadb-client
Depends: php5-cli (>= 5.4) | php-cli | php7-cli, php5-mysql | php5-mysqlnd | php7.0-mysql | php7.1-mysql, mysql-client | mariadb-client
Homepage: http://wp-cli.org/
Description: wp-cli is a set of command-line tools for managing
WordPress installations. You can update plugins, set up multisite

View file

@ -6,7 +6,7 @@
# DATE :2017-07-12
# AUTHOR :Viktor Szépe <viktor@szepe.net>
# LICENSE :The MIT License (MIT)
# URL :https://github.com/wp-cli/wp-cli/tree/master/utils
# URL :https://github.com/wp-cli/wp-cli-bundle/tree/master/utils
# BASH-VERSION :4.2+
# DEPENDS :apt-get install rpm rpmlint php-cli

@ -96,7 +96,7 @@ elif ([ $(type -P "rpm2cpio") ] && [ $(type -P "cpio") ]); then

if [ -f "usr/bin/wp" ] ; then
echo "RPM test succeeded"
else
else
echo "RPM test failed"
fi
rm -rfv ../rpm-test-$$