From 0ff74f3b9ea53759df0686815fd55f7f397eeb6d Mon Sep 17 00:00:00 2001 From: Super User Date: Sat, 19 Aug 2023 21:30:26 +0800 Subject: [PATCH] Init package from upstream --- wordpress.spec | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 wordpress.spec diff --git a/wordpress.spec b/wordpress.spec new file mode 100644 index 0000000..1688672 --- /dev/null +++ b/wordpress.spec @@ -0,0 +1,38 @@ +%define anolis_release 1 +%define wp_datadir /usr/share + +Name: wordpress +Version: 6.2.2 +Release: %{anolis_release}%{?dist} +Summary: wordpress +License: GPL +URL: https://wordpress.org:: +# download tarballs with "spectool -g -R wordpress.spec" +Source0: https://wordpress.org/%{name}-%{version}.tar.gz +BuildArch: noarch +Requires: httpd +Requires: php +Requires: php-common: +Requires: php-mysqlnd + +%description +WordPress - Web publishing software + +%prep +%setup -q -n %{name} + +%install +mkdir -p %{buildroot}/%{wp_datadir}/ +cp -p -r %{_builddir}/%{name}/ %{buildroot}/%{_datadir}/ + +%check + +%files +%{_datadir}/%{name} + +%clean +rm -rf %{buildroot} + +%changelog +* Sun Aug 20 2023 maoxiaoxuan <220225832@seu.edu.cn> - 1.0.0-1 +- Init package from upstream -- Gitee