Luis M. Segundo e37efdd
%define name2 wp
Luis M. Segundo b030d08
Luis M. Segundo 2d5a23a
Name:       wp-cli
Luis M. Segundo be9237f
Version:    2.4.0
e1eb582
Release:    3%{?dist}
Luis M. Segundo 2d5a23a
Summary:    The command line interface for WordPress
Luis M. Segundo 2d5a23a
License:    MIT
Luis M. Segundo 2d5a23a
URL:        http://%{name}.org/
Luis M. Segundo 0db1349
Source0:    https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.phar
Luis M. Segundo 2d5a23a
Source1:    LICENSE
Luis M. Segundo e37efdd
Source2:    wp.1
Luis M. Segundo 2d5a23a
BuildArch:  noarch
Luis M. Segundo 2d5a23a
Luis M. Segundo 2d5a23a
%description
Luis M. Segundo 2d5a23a
WP-CLI is the command-line interface for WordPress.
Luis M. Segundo 2d5a23a
You can update plugins, configure multisite installations
Luis M. Segundo 2d5a23a
and much more, without using a web browser.
Luis M. Segundo 2d5a23a
Luis M. Segundo e37efdd
%prep
Luis M. Segundo e37efdd
chmod +x %{SOURCE0}
Luis M. Segundo e37efdd
{
Luis M. Segundo e37efdd
    echo '.TH "WP" "1"'
Luis M. Segundo e37efdd
    php %{SOURCE0} --help
Luis M. Segundo e37efdd
} \
Luis M. Segundo e37efdd
    | sed -e 's/^\([A-Z ]\+\)$/.SH "\1"/' \
Luis M. Segundo e37efdd
    | sed -e 's/^  wp$/wp \\- The command line interface for WordPress/' \
Luis M. Segundo e37efdd
> %{SOURCE2}
Luis M. Segundo e37efdd
Luis M. Segundo 2d5a23a
%build
Luis M. Segundo 2d5a23a
Luis M. Segundo 2d5a23a
%install
Luis M. Segundo 2d5a23a
mkdir -p %{buildroot}%{_bindir}
Luis M. Segundo e37efdd
install -p -m 0755 %{SOURCE0} %{buildroot}%{_bindir}/%{name2}
Luis M. Segundo 2d5a23a
cp -f %SOURCE1 LICENSE
Luis M. Segundo e37efdd
mkdir -p %{buildroot}%{_mandir}/man1
Luis M. Segundo e37efdd
install -p -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/
Luis M. Segundo e37efdd
Luis M. Segundo 2d5a23a
Luis M. Segundo 2d5a23a
%files
Luis M. Segundo 2d5a23a
%license LICENSE
Luis M. Segundo e37efdd
%{_bindir}/%{name2}
Luis M. Segundo e37efdd
%{_mandir}/man1/wp.1*
Luis M. Segundo 2d5a23a
Luis M. Segundo 2d5a23a
%changelog
e1eb582
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-3
e1eb582
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e1eb582
Luis M. Segundo 76758c7
* Fri Nov 22 2019 Luis M. Segundo <blackfile@fedoraproject.org> - 2.4.0-2
Luis M. Segundo 76758c7
- update release.
Luis M. Segundo 76758c7
Luis M. Segundo 9f50774
* Fri Nov 22 2019 Luis M. Segundo <blackfile@fedoraproject.org> - 2.4.0-1
Luis M. Segundo be9237f
- update to 2.4.0.
Luis M. Segundo be9237f
Luis M. Segundo 6eace3a
* Tue Aug 20 2019 Luis M. Segundo <blackfile@fedoraproject.org> - 2.3.0-1
Luis M. Segundo 6eace3a
- update to 2.3.0.
Luis M. Segundo 6eace3a
bd0e23c
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-3
bd0e23c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
bd0e23c
Luis M. Segundo e37efdd
* Sun Jun 23 2019 Luis M. Segundo <blackfile@fedoraproject.org> - 2.2.0-2
Luis M. Segundo e37efdd
- include man
Luis M. Segundo e37efdd
- change bindir wp-cli to wp
Luis M. Segundo e37efdd
Luis M. Segundo 0db1349
* Sat Jun 8 2019 Luis M. Segundo <blackfile@fedoraproject.org> - 2.2.0-1
Luis M. Segundo 0db1349
- update to 2.2.0.
Luis M. Segundo 0db1349
Luis M. Segundo 2d5a23a
* Sun Feb 24 2019 Luis M. Segundo <blackfile@fedoraproject.org> - 2.1.0-1
Luis M. Segundo 2d5a23a
- Initial package for Fedora, based on upstream SPEC file (dated Dec 2017).
Luis M. Segundo e37efdd