change bindir wp-cli to wp
This commit is contained in:
parent
0db1349a4b
commit
e37efdd1ab
1 changed files with 25 additions and 3 deletions
28
wp-cli.spec
28
wp-cli.spec
|
|
@ -1,11 +1,14 @@
|
|||
|
||||
%define name2 wp
|
||||
Name: wp-cli
|
||||
Version: 2.2.0
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: The command line interface for WordPress
|
||||
License: MIT
|
||||
URL: http://%{name}.org/
|
||||
Source0: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.phar
|
||||
Source1: LICENSE
|
||||
Source2: wp.1
|
||||
BuildArch: noarch
|
||||
Requires: php-cli, php-common, php, php-json
|
||||
|
||||
|
|
@ -14,20 +17,39 @@ 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
|
||||
chmod +x %{SOURCE0}
|
||||
{
|
||||
echo '.TH "WP" "1"'
|
||||
php %{SOURCE0} --help
|
||||
} \
|
||||
| sed -e 's/^\([A-Z ]\+\)$/.SH "\1"/' \
|
||||
| sed -e 's/^ wp$/wp \\- The command line interface for WordPress/' \
|
||||
> %{SOURCE2}
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
install -p -m 0755 %{SOURCE0} %{buildroot}%{_bindir}/%{name}
|
||||
install -p -m 0755 %{SOURCE0} %{buildroot}%{_bindir}/%{name2}
|
||||
cp -f %SOURCE1 LICENSE
|
||||
mkdir -p %{buildroot}%{_mandir}/man1
|
||||
install -p -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/
|
||||
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%{_bindir}/%{name}
|
||||
%{_bindir}/%{name2}
|
||||
%{_mandir}/man1/wp.1*
|
||||
|
||||
%changelog
|
||||
* Sun Jun 23 2019 Luis M. Segundo <blackfile@fedoraproject.org> - 2.2.0-2
|
||||
- include man
|
||||
- change bindir wp-cli to wp
|
||||
|
||||
* Sat Jun 8 2019 Luis M. Segundo <blackfile@fedoraproject.org> - 2.2.0-1
|
||||
- update to 2.2.0.
|
||||
|
||||
* Sun Feb 24 2019 Luis M. Segundo <blackfile@fedoraproject.org> - 2.1.0-1
|
||||
- Initial package for Fedora, based on upstream SPEC file (dated Dec 2017).
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue