joomla/joomla.spec

changeset 677
bbdbd736796e
parent 535
ccd669318bc2
child 723
f051a589a05a
equal deleted inserted replaced
0:53f85e36d170 1:f744f89922dc
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE. 21 ## SUCH DAMAGE.
22 ## 22 ##
23 23
24 # package version 24 # package version
25 %define V_dist 1.7.3 25 %define V_dist 2.5.6
26 %define V_opkg 1.7.3 26 %define V_opkg 2.5.6
27 %define V_subdir 6/9/6/69674 27 %define V_subdir 17173/74756
28 28
29 # package information 29 # package information
30 Name: joomla 30 Name: joomla
31 Summary: Content Management System (CMS) 31 Summary: Content Management System (CMS)
32 URL: http://www.joomla.org/ 32 URL: http://www.joomla.org/
35 Distribution: OpenPKG Community 35 Distribution: OpenPKG Community
36 Class: EVAL 36 Class: EVAL
37 Group: CMS 37 Group: CMS
38 License: GPL/LGPL 38 License: GPL/LGPL
39 Version: %{V_opkg} 39 Version: %{V_opkg}
40 Release: 20111211 40 Release: 20120800
41 41
42 # list of sources 42 # list of sources
43 Source0: http://downloads.joomlacode.org/frsrelease/%{V_subdir}/Joomla_%{V_dist}-Stable-Full_Package.zip 43 Source0: http://joomlacode.org/gf/download/frsrelease/%{V_subdir}/Joomla_%{V_dist}-Stable-Full_Package.tar.bz2
44 Source1: joomla-setup.sh 44 Source1: joomla-setup.sh
45 Source2: joomla-apache.conf 45 Source2: joomla-apache.conf
46 Source3: rc.joomla 46 Source3: rc.joomla
47 47
48 # build information 48 # build information
49 BuildPreReq: OpenPKG, openpkg >= 20100101, infozip 49 BuildPreReq: OpenPKG, openpkg >= 20100101
50 PreReq: OpenPKG, openpkg >= 20100101 50 PreReq: OpenPKG, openpkg >= 20100101
51 PreReq: apache 51 PreReq: apache
52 PreReq: apache-php 52 PreReq: apache-php
53 PreReq: apache-php::with_mysql = yes 53 PreReq: apache-php::with_mysql = yes
54 PreReq: apache-php::with_zlib = yes 54 PreReq: apache-php::with_zlib = yes
58 PreReq: apache-php::with_mm = yes 58 PreReq: apache-php::with_mm = yes
59 PreReq: apache-php::with_sendmail = yes 59 PreReq: apache-php::with_sendmail = yes
60 PreReq: MTA 60 PreReq: MTA
61 61
62 %description 62 %description
63 Joomla! is a popular Web-based Content Management System (CMS). 63 Joomla is a web based content management system (CMS) for publishing
64 content on the internet and intranets. It features a model view
65 controller (MVC) Web application framework and is useful for easily
66 creating and building a websites and web enabled applications.
67
68 Joomla is written using object oriented programming techniques
69 and software design patterns, stores data in a MySQL database,
70 and includes features such as page caching, RSS feeds, printable
71 versions of pages, news flashes, blogs, polls, search, and support
72 for language internationalization.
64 73
65 %track 74 %track
66 prog joomla = { 75 prog joomla = {
67 version = %{V_dist} 76 version = %{V_dist}
68 url = http://joomlacode.org/gf/project/joomla/frs/ 77 url = http://joomlacode.org/gf/project/joomla/frs/
73 url = http://joomlacode.org/gf/project/joomla/frs/ 82 url = http://joomlacode.org/gf/project/joomla/frs/
74 regex = frsrelease/(\d+/\d+)/Joomla-__VER__\.tar\.gz 83 regex = frsrelease/(\d+/\d+)/Joomla-__VER__\.tar\.gz
75 } 84 }
76 85
77 %prep 86 %prep
78 %setup -q -T -c 87 %setup -q -T -c -a 0
79 unzip -q -x %{SOURCE0}
80 88
81 %build 89 %build
82 90
83 %install 91 %install
84 # create installation hierarchy 92 # create installation hierarchy
91 $RPM_BUILD_ROOT%{l_prefix}/var/joomla/log \ 99 $RPM_BUILD_ROOT%{l_prefix}/var/joomla/log \
92 $RPM_BUILD_ROOT%{l_prefix}/var/joomla/run 100 $RPM_BUILD_ROOT%{l_prefix}/var/joomla/run
93 101
94 # adjust default configuration 102 # adjust default configuration
95 %{l_shtool} subst \ 103 %{l_shtool} subst \
96 -e 's;/usr/sbin/sendmail;%{l_prefix}/sbin/sendmail;' \ 104 -e 's;/usr/sbin/sendmail;%{l_prefix}/sbin/sendmail;g' \
97 installation/template/tmpl/configuration.html 105 libraries/phpmailer/phpmailer.php \
106 installation/models/configuration.php \
107 installation/configuration.php-dist \
108 administrator/components/com_config/models/forms/application.xml
98 109
99 # install main program files 110 # install main program files
100 find . -name ".#*" -print | xargs rm -f 111 find . -name ".#*" -print | xargs rm -f
101 find . -name "*.orig" -print | xargs rm -f 112 find . -name "*.orig" -print | xargs rm -f
102 cp -rp * $RPM_BUILD_ROOT%{l_prefix}/lib/joomla/runtime/ 113 cp -rp * $RPM_BUILD_ROOT%{l_prefix}/lib/joomla/runtime/
103 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/joomla/runtime/configuration.php-dist 114 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/joomla/runtime/configuration.php-dist
104 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/joomla/runtime/htaccess.txt 115 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/joomla/runtime/htaccess.txt
105 116
106 # post-adjustment: move risky installation area out of runtime area 117 # postadjustment: move risky installation area out of runtime area
107 # (will be dynmically linked in again later) 118 # which will be dynmically linked in again later
108 mv $RPM_BUILD_ROOT%{l_prefix}/lib/joomla/runtime/installation \ 119 mv $RPM_BUILD_ROOT%{l_prefix}/lib/joomla/runtime/installation \
109 $RPM_BUILD_ROOT%{l_prefix}/lib/joomla/installation 120 $RPM_BUILD_ROOT%{l_prefix}/lib/joomla/installation
110 121
111 # install run-command script 122 # install runcommand script
112 %{l_shtool} install -c -m 755 %{l_value -s -a} \ 123 %{l_shtool} install -c -m 755 %{l_value -s -a} \
113 -e 's;@l_path@;%{l_build_path};' \ 124 -e 's;@l_path@;%{l_build_path};' \
114 %{SOURCE rc.joomla} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/ 125 %{SOURCE rc.joomla} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
115 126
116 # install setup script 127 # install setup script
180 %{l_rc} joomla stop 2>/dev/null 191 %{l_rc} joomla stop 2>/dev/null
181 192
182 # remove database 193 # remove database
183 $RPM_INSTALL_PREFIX/sbin/joomla-setup uninstall >/dev/null 2>&1 || true 194 $RPM_INSTALL_PREFIX/sbin/joomla-setup uninstall >/dev/null 2>&1 || true
184 195
185 # remove run-time files 196 # remove runtime files
186 rm -f $RPM_INSTALL_PREFIX/var/joomla/db/* >/dev/null 2>&1 || true 197 rm -f $RPM_INSTALL_PREFIX/var/joomla/db/* >/dev/null 2>&1 || true
187 rm -f $RPM_INSTALL_PREFIX/var/joomla/db/*/* >/dev/null 2>&1 || true 198 rm -f $RPM_INSTALL_PREFIX/var/joomla/db/*/* >/dev/null 2>&1 || true
188 rm -f $RPM_INSTALL_PREFIX/var/joomla/run/* >/dev/null 2>&1 || true 199 rm -f $RPM_INSTALL_PREFIX/var/joomla/run/* >/dev/null 2>&1 || true
189 rm -f $RPM_INSTALL_PREFIX/var/joomla/log/* >/dev/null 2>&1 || true 200 rm -f $RPM_INSTALL_PREFIX/var/joomla/log/* >/dev/null 2>&1 || true
190 fi 201 fi

mercurial