1 |
%define name wordpress |
2 |
%define version 2.3.2 |
3 |
%define release 1 |
4 |
Summary: wordpress installed in /opt/wordpress |
5 |
Name: %{name} |
6 |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
8 |
Distribution: SME Server |
9 |
License: GNU GPL version 2 |
10 |
URL: http://www.wordpress.org |
11 |
Group: SMEserver/addon |
12 |
Source: %{name}-%{version}.tar.gz |
13 |
Packager: Stephen Noble <support@dungog.net> |
14 |
BuildArchitectures: noarch |
15 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
16 |
BuildRoot: /var/tmp/%{name}-%{version} |
17 |
Requires: e-smith-release >= 7.0 |
18 |
AutoReqProv: no |
19 |
|
20 |
%description |
21 |
wordpress installed in /opt/wordpress |
22 |
|
23 |
%changelog |
24 |
* Thu Jan 17 2008 Stephen Noble <support@dungog.net> 2.3.2-1 |
25 |
- upstream release |
26 |
|
27 |
* Sun Dec 09 2007 Stephen Noble <support@dungog.net> 2.3.1-1 |
28 |
- upstream release |
29 |
|
30 |
* Fri Jul 06 2007 Stephen Noble <support@dungog.net> 2.2.1-1 |
31 |
- upstream release |
32 |
- builds from unchanged .tar.gz |
33 |
|
34 |
* Thu May 4 2006 Stephen Noble <support@dungog.net> |
35 |
- ./wp-admin/setup-config.php edit to chmod 0660 |
36 |
- permissions set |
37 |
- [2.0.2-3] |
38 |
|
39 |
* Sun Apr 23 2006 Stephen Noble <support@dungog.net> |
40 |
- some themes and plugins added |
41 |
- [2.0.2-2] |
42 |
|
43 |
* Sat Apr 22 2006 Stephen Noble <support@dungog.net> |
44 |
- initial release |
45 |
- [2.0.2-1] |
46 |
|
47 |
%prep |
48 |
%setup -c -n %{name} |
49 |
|
50 |
%build |
51 |
#this lets you drop a .tar.gz in with the root of wordpress and it builds ok |
52 |
mkdir -p root/opt |
53 |
mv %{name} root/opt/ |
54 |
touch root/opt/wordpress/.htaccess |
55 |
|
56 |
%install |
57 |
rm -rf $RPM_BUILD_ROOT |
58 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
59 |
rm -f %{name}-%{version}-filelist |
60 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
61 |
--dir '/opt/wordpress/wp-content' 'attr(755,www,www)' \ |
62 |
--file '/opt/wordpress/index.php' 'attr(660,www,www)' \ |
63 |
--file '/opt/wordpress/.htaccess' 'attr(660,www,www)' \ |
64 |
> %{name}-%{version}-filelist |
65 |
#echo "%doc COPYING" >> %{name}-%{version}-filelist |
66 |
|
67 |
%clean |
68 |
cd .. |
69 |
rm -rf %{name} |
70 |
|
71 |
%pre |
72 |
%preun |
73 |
%post |
74 |
|
75 |
#this should be something else, just some, none ? |
76 |
/bin/chown -R www.www /opt/wordpress/wp-content |
77 |
|
78 |
%postun |
79 |
|
80 |
%files -f %{name}-%{version}-filelist |
81 |
%defattr(-,root,root) |
82 |
|
83 |
|