/[smecontribs]/rpms/smeserver-wordpress/contribs8/smeserver-wordpress.spec
ViewVC logotype

Annotation of /rpms/smeserver-wordpress/contribs8/smeserver-wordpress.spec

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


Revision 1.2 - (hide annotations) (download)
Sun Oct 27 21:17:36 2013 UTC (11 years ago) by unnilennium
Branch: MAIN
Changes since 1.1: +47 -35 lines
* Sun Oct 27 2013 JP Pialasse <tests@pialasse.com> 1.0-6.sme
- rewritten for epel version of wordpress
- added createlinks and conf-wordpress event
- start cleaning spec file

1 unnilennium 1.1 # $Id: smeserver-wordpress.spec,v 1.6 2008/11/29 03:11:22 dungog Exp $
2     # Authority: dungog
3     # Name: Stephen Noble
4    
5     %define name smeserver-wordpress
6     %define version 1.0
7 unnilennium 1.2 %define release 6
8 unnilennium 1.1 Summary: smserver rpm to setup mysql database and web link for wordpress weblog
9     Name: %{name}
10     Version: %{version}
11     Release: %{release}%{?dist}
12     License: GNU GPL version 2
13     URL: http://www.dungog.net/wiki
14     Group: SMEserver/addon
15     Source: %{name}-%{version}.tar.gz
16     Patch0: smeserver-wordpress-1.0-rm80opt.patch
17     Patch1: smeserver-wordpress-1.0-tmp_folder.patch
18 unnilennium 1.2 Patch2: smeserver-wordpress-1.0-wpEPEL.patch
19 unnilennium 1.1 BuildArchitectures: noarch
20     BuildRoot: /var/tmp/%{name}-%{version}
21     BuildRequires: e-smith-devtools >= 1.13.1-03
22     Requires: e-smith-release >= 8.0
23     Requires: wordpress
24     AutoReqProv: no
25    
26     %description
27     smserver rpm to setup mysql database and web link for wordpress weblog
28    
29     %changelog
30 unnilennium 1.2 * Sun Oct 27 2013 JP Pialasse <tests@pialasse.com> 1.0-6.sme
31     - rewritten for epel version of wordpress
32     - added createlinks and conf-wordpress event
33     - start cleaning spec file
34    
35    
36 unnilennium 1.1 * Wed Sep 04 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> 1.0.5
37     - add www:www permission on /opt/wordpress folder to allow automatic update by FTP
38    
39     * Wed Jun 05 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> 1.0.4
40     - add a tmp folder in httpd.conf
41     * Mon Jun 03 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> 1.0-3
42     - backup html-folder, mysql-base, and config-file during erase and upgrade process
43    
44     * Thu May 29 2013 Stephane de Labrusse <stephdl@de-labrusse.fr>
45     - require sme8 due to wordpress 3.5 needs php version > 5.2
46    
47     * Sat Nov 29 2008 Stephen Noble <support@dungog.net> 1.0-2
48     - http alias 80opt removed
49    
50     * Fri Jul 06 2007 Stephen Noble <support@dungog.net> 1.0-1
51     - http alias, auto setup, template wp-config.php
52    
53     * Mon Dec 11 2006 Stephen Noble <support@dungog.net>
54     - rpm %post events reordered, to enable clean install
55     - [0.9-5]
56    
57     * Thu Nov 9 2006 Stephen Noble <support@dungog.net>
58     - http alias corrected
59     - [0.9-4]
60    
61     * Thu Nov 9 2006 Stephen Noble <support@dungog.net>
62     - http PublicAccess setting added
63     - [0.9-3]
64    
65     * Thu May 4 2006 Stephen Noble <support@dungog.net>
66     - httpd fragment modified
67     - rpm doesn't change file permissions
68     - [0.9-2]
69    
70     * Sun Apr 16 2006 Stephen Noble <support@dungog.net>
71     - initial release
72     - [0.9-1]
73    
74     %prep
75     %setup
76     %patch0 -p1
77     %patch1 -p1
78 unnilennium 1.2 %patch2 -p1
79    
80    
81 unnilennium 1.1 %build
82 unnilennium 1.2 #mkdir -p root/etc/e-smith/db/accounts/defaults/wordpress
83     #echo "reserved" > root/etc/e-smith/db/accounts/defaults/wordpress/type
84     #
85     #mkdir -p root/etc/e-smith/db/configuration/defaults/wordpress
86     #echo "Wordpress weblog" > root/etc/e-smith/db/configuration/defaults/wordpress/Name
87     #echo "global" > root/etc/e-smith/db/configuration/defaults/wordpress/PublicAccess
88     #echo "enabled" > root/etc/e-smith/db/configuration/defaults/wordpress/status
89     #echo "wordpress" > root/etc/e-smith/db/configuration/defaults/wordpress/DbName
90     #echo "wordpress" > root/etc/e-smith/db/configuration/defaults/wordpress/DbUser
91     #echo "en" > root/etc/e-smith/db/configuration/defaults/wordpress/WpLang
92     #
93     #mkdir -p root/etc/e-smith/templates.metadata/etc/e-smith/sql/init
94     #echo "PERMS=0750" > root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80wordpress
95     #
96     ##only needed so it is removed afterwards
97     #mkdir -p root/opt/wordpress
98     #touch root/opt/wordpress/wp-config.php
99 unnilennium 1.1
100     %install
101     rm -rf $RPM_BUILD_ROOT
102     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
103     rm -f %{name}-%{version}-filelist
104     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
105     > %{name}-%{version}-filelist
106     echo "%doc COPYING" >> %{name}-%{version}-filelist
107    
108     %clean
109     cd ..
110     rm -rf %{name}-%{version}
111    
112     %pre
113     %preun
114    
115     %post
116 unnilennium 1.2 #/etc/e-smith/events/actions/initialize-default-databases
117     #/sbin/e-smith/expand-template /etc/e-smith/sql/init/80wordpress
118     #/etc/rc.d/init.d/mysql.init start
119     #/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
120     #/sbin/e-smith/expand-template /opt/wordpress/wp-config.php
121     #/usr/bin/sv h /service/httpd-e-smith
122     #
123     #echo ""
124     #echo "see http://wiki.contribs.org/Wordpress"
125     #echo "see config show wordpress"
126     #/sbin/e-smith/config show wordpress
127     #echo " "
128    
129     # this one under I am not sure if it is a good thing ..................... !!!!!!
130     #/bin/chown -R www:www /opt/wordpress/
131 unnilennium 1.1
132     %postun
133     #uninstall
134 unnilennium 1.2 #if [ $1 = 0 ] ; then
135     # /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
136     # /usr/bin/sv h /service/httpd-e-smith
137     #fi
138 unnilennium 1.1
139     %files -f %{name}-%{version}-filelist
140     %defattr(-,root,root)
141    

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