From a95835cf8fe04bbe831e3d0b9f317a1cbe3bf01d Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 19:29:44 +0100 Subject: [PATCH] package created using the webbuild interface [release 2.5.0-1mamba;Mon Sep 13 2021] --- README.md | 2 ++ wp-cli.spec | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 wp-cli.spec diff --git a/README.md b/README.md index 9134104..7fff808 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # wp-cli +A command-line tool for managing WordPress. + diff --git a/wp-cli.spec b/wp-cli.spec new file mode 100644 index 0000000..a5a88ba --- /dev/null +++ b/wp-cli.spec @@ -0,0 +1,45 @@ +Name: wp-cli +Version: 2.5.0 +Release: 1mamba +Summary: A command-line tool for managing WordPress +Group: Applications/Development +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://wp-cli.org/ +Source: https://github.com/wp-cli/wp-cli-bundle.git/v%{version}/wp-cli-bundle-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: php +BuildRequires: php-composer + +%description +A command-line tool for managing WordPress. + +%prep +%setup -q -n %{name}-bundle-%{version} + +%build +composer install --no-interaction --prefer-dist --no-scripts && composer dump +echo -n "Building phar... " +php -dphar.readonly=0 utils/make-phar.php wp-cli.phar --quiet +echo "Done!" + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -D -m655 wp-cli.phar %{buildroot}%{_bindir}/wp +install -D -m644 vendor/wp-cli/wp-cli/utils/wp-completion.bash %{buildroot}%{_datadir}/bash-completion/completions/wp + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/wp +%{_datadir}/bash-completion/completions/wp +%doc LICENSE + +%changelog +* Mon Sep 13 2021 Silvan Calarco 2.5.0-1mamba +- package created using the webbuild interface