/[smecontribs]/rpms/wordpress/contribs7/wordpress.spec
ViewVC logotype

Annotation of /rpms/wordpress/contribs7/wordpress.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Sun Dec 23 20:58:22 2007 UTC (16 years, 10 months ago) by slords
Branch: MAIN
Import on branch contribs7 of package wordpress-2.3.1-1.el4.sme.src.rpm

1 slords 1.1 %define name wordpress
2     %define version 2.3.1
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     * Sun Dec 09 2007 Stephen Noble <support@dungog.net> 2.3.1-1
25     - upstream release
26    
27     * Fri Jul 06 2007 Stephen Noble <support@dungog.net> 2.2.1-1
28     - upstream release
29     - builds from unchanged .tar.gz
30    
31     * Thu May 4 2006 Stephen Noble <support@dungog.net>
32     - ./wp-admin/setup-config.php edit to chmod 0660
33     - permissions set
34     - [2.0.2-3]
35    
36     * Sun Apr 23 2006 Stephen Noble <support@dungog.net>
37     - some themes and plugins added
38     - [2.0.2-2]
39    
40     * Sat Apr 22 2006 Stephen Noble <support@dungog.net>
41     - initial release
42     - [2.0.2-1]
43    
44     %prep
45     %setup -c -n %{name}
46    
47     %build
48     #this lets you drop a .tar.gz in with the root of wordpress and it builds ok
49     mkdir -p root/opt
50     mv %{name} root/opt/
51     touch root/opt/wordpress/.htaccess
52    
53     %install
54     rm -rf $RPM_BUILD_ROOT
55     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
56     rm -f %{name}-%{version}-filelist
57     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
58     --dir '/opt/wordpress/wp-content' 'attr(755,www,www)' \
59     --file '/opt/wordpress/index.php' 'attr(660,www,www)' \
60     --file '/opt/wordpress/.htaccess' 'attr(660,www,www)' \
61     > %{name}-%{version}-filelist
62     #echo "%doc COPYING" >> %{name}-%{version}-filelist
63    
64     %clean
65     cd ..
66     rm -rf %{name}
67    
68     %pre
69     %preun
70     %post
71    
72     #this should be something else, just some, none ?
73     /bin/chown -R www.www /opt/wordpress/wp-content
74    
75     %postun
76    
77     %files -f %{name}-%{version}-filelist
78     %defattr(-,root,root)
79    
80    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed