Commit d8573860 authored by Murtaza Sarıaltun's avatar Murtaza Sarıaltun

Merge branch 'master' into 'master'

refs #32841 - Add v2.1.0 spec file

See merge request !2
parents 2863a9f0 09a05af8
Name: wp-cli
Version: 2.1.0
Release: 1%{?dist}
Summary: The command line interface for WordPress
License: MIT
URL: http://wp-cli.org/
Source0: wp-cli-2.1.0.phar
Source1: wp.1
BuildArch: noarch
%post
echo "PHP 5.4 or above must be installed."
%description
WP-CLI is the command-line interface for WordPress.
You can update plugins, configure multisite installs
and much more, without using a web browser.
%prep
md5=$(wget -nv -O - "https://github.com/wp-cli/wp-cli/releases/download/v%{version}/wp-cli-%{version}.phar.md5")
wget -nv -O %{SOURCE0} "https://github.com/wp-cli/wp-cli/releases/download/v%{version}/wp-cli-%{version}.phar"
[[ $(md5sum %{SOURCE0} | awk '{ print $1 }') != $md5 ]] && exit 1
chmod +x %{SOURCE0}
{
echo '.TH "WP" "1"'
php %{SOURCE0} --help
} \
| sed -e 's/\x1B\[1m/.SH /g' \
| sed -e 's/\x1B\[0m//g' \
| sed -e 's/^ wp$/ wp \\- The command line interface for WordPress/' \
> %{SOURCE1}
%build
%install
mkdir -p %{buildroot}%{_bindir}
cp -a %{SOURCE0} %{buildroot}%{_bindir}/wp
mkdir -p %{buildroot}%{_mandir}/man1
cp -a %{SOURCE1} %{buildroot}%{_mandir}/man1/
%files
%attr(0755, root, root) %{_bindir}/wp
%attr(0644, root, root) %{_mandir}/man1/wp.1*
%changelog
* Thu Apr 4 2019 Çağatay Emre Bilgen <cagatayemre.bilgen@ozguryazilim.com.tr> - 2.1.0-1
- Update version 2.1.0
- Add checksum validation.
- Improve man page generation.
* Fri Aug 17 2018 Murtaza Sarıaltun <murtaza.sarialtun@ozguryazilim.com.tr> - 2.0.0-1
- Update version 2.0.0
* Wed Apr 18 2018 Murtaza Sarıaltun <murtaza.sarialtun@ozguryazilim.com.tr> - 1.5.0-1
- Update version 1.5.0
* Tue Dec 12 2017 Murtaza Sarıaltun <murtaza.sarialtun@ozguryazilim.com.tr> - 1.4.1-1
- Update version 1.4.1
- Remove php requirements.
- Update creating man page steps.
- Added output message.
* Fri Jul 7 2017 Murtaza Sarıaltun <murtaza.sarialtun@ozguryazilim.com.tr> - 1.2.1-1
- First release of the spec file
- Check the spec file with `rpmlint -i -v wp-cli-rpm.spec`
- Build the package with `rpmbuild -bb wp-cli-rpm.spec`
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment