3 Summary: Open source content management platform
4 Summary(pl): Platforma do zarz±dzania tre¶ci± o otwartych ¼ród³ach
6 Version: %{_ver}.%{_patchlevel}
9 Group: Applications/WWW
10 Source0: http://drupal.org/files/projects/%{name}-%{version}.tar.gz
11 # Source0-md5: 21e5e768d92fb6ecf52d56cacd37706e
15 Patch0: %{name}-replication.patch
16 Patch1: %{name}-sitesdir.patch
17 Patch2: %{name}-topdir.patch
18 Patch3: %{name}-themedir2.patch
19 Patch4: %{name}-emptypass.patch
20 Patch5: %{name}-cron.patch
21 Patch6: %{name}-19298-cache.patch
22 Patch7: %{name}-update-cli.patch
23 Patch8: %{name}-locale-memory.patch
24 Patch9: %{name}-comment.patch
25 URL: http://drupal.org/
26 BuildRequires: rpmbuild(macros) >= 1.264
27 BuildRequires: sed >= 4.0
28 Requires: %{name}(DB_Driver) = %{version}-%{release}
29 Requires: %{name}(theme) = %{_ver}
30 Requires: apache(mod_access)
31 Requires: apache(mod_alias)
32 Requires: apache(mod_dir)
33 Requires: apache(mod_expires)
34 Requires: apache(mod_rewrite)
35 Requires: php >= 3:4.3.3
40 Requires: webserver = apache
41 Obsoletes: drupal-update
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 %define _appdir %{_datadir}/%{name}
46 %define _webapps /etc/webapps
47 %define _webapp %{name}
48 %define _sysconfdir %{_webapps}/%{_webapp}
51 Drupal is software that allows an individual or a community of users
52 to easily publish, manage and organize a great variety of content on a
53 website. Tens of thousands of people and organizations have used
54 Drupal to set up scores of different kinds of web sites, including
55 - community web portals and discussion sites
56 - corporate web sites/intranet portals
59 - e-commerce applications
60 - resource directories
62 Drupal includes features to enable
63 - content management systems
65 - collaborative authoring environments
69 - file uploads and download
74 Drupal to oprogramowanie pozwalaj±ce osobie lub spo³eczno¶ci
75 u¿ytkowników na ³atwe publikowanie, zarz±dzanie i organizowanie ró¿nej
76 tre¶ci na stronie WWW. Dziesi±tki tysiêcy ludzi i organizacji u¿ywali
77 Drupala do ustawiania wyników ró¿nych rodzajów stron WWW, w tym:
78 - portale WWW i strony dyskusyjne spo³eczno¶ci
79 - korporacyjne strony WWW/portale intranetowe
82 - aplikacje e-commerce
85 Drupal zawiera zasoby umo¿liwiaj±ce tworzenie:
86 - systemów zarz±dzania tre¶ci±
88 - ¶rodowisk pracy grupowej
92 - wrzucania i ¶ci±gania plików
98 Summary(pl): Us³uga cron dla Drupala
99 Group: Applications/WWW
100 Requires: %{name} = %{version}-%{release}
101 Requires: /usr/bin/php
103 Requires: php-cli >= 3:4.3.3
106 This package contains script which invokes cron hooks for Drupal.
108 %description cron -l pl
109 Ten pakiet zawiera skrypt wywo³uj±cy uchwyty crona dla Drupala.
112 Summary: Drupal DB Driver for MySQL
113 Summary(pl): Sterownik bazy danych MySQL dla Drupala
114 Group: Applications/WWW
116 Provides: %{name}(DB_Driver) = %{version}-%{release}
118 %description db-mysql
119 This virtual package provides MySQL database backend for Drupal.
121 %description db-mysql -l pl
122 Ten wirtualny pakiet dostarcza backend bazy danych MySQL dla Drupala.
125 Summary: Drupal DB Driver for PostgreSQL
126 Summary(pl): Sterownik bazy danych PostgreSQL dla Drupala
127 Group: Applications/WWW
129 Provides: %{name}(DB_Driver) = %{version}-%{release}
131 %description db-pgsql
132 This virtual package provides PostgreSQL database backend for Drupal.
134 NOTE: This driver is not tested in PLD, and not all modules have
135 database schema for PostgreSQL. Use this driver at your own risk!
137 %description db-pgsql -l pl
138 Ten wirtualny pakiet dostarcza backend bazy danych PostgreSQL dla
141 UWAGA: Ten sterownik nie by³ testowany w PLD i nie wszystkie modu³y
142 maj± schematy bazy danych dla PostgreSQL-a. Mo¿na go u¿ywaæ na w³asne
146 Summary: Themes distributed with Drupal
147 Group: Applications/WWW
148 Requires: %{name} = %{version}-%{release}
149 Provides: drupal(theme) = %{_ver}
152 This package contains themes distributed with Drupal.
155 Summary: XMLRPC server for Drupal
156 Summary(pl): Serwer XMLRPC dla Drupala
157 Group: Applications/WWW
158 Requires: %{name} = %{version}-%{release}
161 XMLRPC server for Drupal allows other Drupals authorize with your
162 Drupal's user creditentials, this is called Distributed Authentication
165 %description xmlrpc -l pl
166 Serwer XMLRPC dla Drupala pozwala innym Drupalom autoryzowaæ siê z
167 danymi uwierzytelniaj±cymi u¿ytkownika danego Drupala - jest to
168 nazywane rozproszonym uwierzytelnianiem.
183 find -name '*~' | xargs -r rm -v
184 cp -p %{SOURCE3} README.PLD
187 rm -rf $RPM_BUILD_ROOT
188 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/cron.d,/var/{cache,lib}/%{name}} \
189 $RPM_BUILD_ROOT%{_appdir}/{po,database,modules/po,htdocs/modules}
191 cp -a *.ico index.php $RPM_BUILD_ROOT%{_appdir}/htdocs
192 cp -a misc $RPM_BUILD_ROOT%{_appdir}/htdocs
193 cp -a xmlrpc.php $RPM_BUILD_ROOT%{_appdir}/htdocs
194 cp -a database/updates.inc $RPM_BUILD_ROOT%{_appdir}/database
196 cp -a cron.php update.php $RPM_BUILD_ROOT%{_appdir}
197 cp -a modules/* $RPM_BUILD_ROOT%{_appdir}/modules
198 cp -a includes scripts $RPM_BUILD_ROOT%{_appdir}
199 cp -a sites $RPM_BUILD_ROOT%{_sysconfdir}
201 ln -s /var/lib/%{name} $RPM_BUILD_ROOT%{_appdir}/files
202 # needed for node.module for syndication icon
203 ln -s htdocs/misc $RPM_BUILD_ROOT%{_appdir}
206 cp -a themes $RPM_BUILD_ROOT%{_appdir}/htdocs
207 # move .xtmpl/.theme out of htdocs
208 (cd $RPM_BUILD_ROOT%{_appdir}/htdocs && tar cf - --remove-files themes/*/*.{xtmpl,theme}) | tar -xf - -C $RPM_BUILD_ROOT%{_appdir}
209 mv $RPM_BUILD_ROOT%{_appdir}/{htdocs/,}themes/engines
210 # make screenshot.png available in appdir
211 for a in $RPM_BUILD_ROOT%{_appdir}/htdocs/themes/*; do
213 ln -s ../../htdocs/themes/$t/screenshot.png $RPM_BUILD_ROOT%{_appdir}/themes/$t
217 s=themes/chameleon/marvin
218 ln -s ../../htdocs/$s $RPM_BUILD_ROOT%{_appdir}/$s
220 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
221 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
222 install %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.d/%{name}
225 rm -rf $RPM_BUILD_ROOT
228 if [ "$1" = 1 ]; then
229 %banner -e %{name}-db-mysql <<EOF
230 If this is your first install of Drupal, you need to create Drupal database:
232 mysqladmin create drupal
233 zcat %{_docdir}/%{name}-db-mysql-%{version}/database.mysql.gz | mysql drupal
234 mysql -e "GRANT SELECT, INSERT, UPDATE, DELETE ON drupal.* TO 'drupal'@'localhost' IDENTIFIED BY 'PASSWORD'"
235 mysql -e "GRANT CREATE TEMPORARY TABLES, LOCK TABLES ON *.* TO 'drupal'@'localhost'"
241 if [ "$1" = 1 ]; then
242 %banner -e %{name}-db-pgsql <<EOF
243 If this is your first install of Drupal, you need to create Drupal database:
245 and import initial schema from
246 %{_docdir}/%{name}-db-pgsql-%{version}/database.pgsql.gz
251 %triggerin -- apache1
252 %webapp_register apache %{_webapp}
254 %triggerun -- apache1
255 %webapp_unregister apache %{_webapp}
257 %triggerin -- apache >= 2.0.0
258 %webapp_register httpd %{_webapp}
260 %triggerun -- apache >= 2.0.0
261 %webapp_unregister httpd %{_webapp}
263 %triggerpostun -- %{name} < 4.6.4-0.4
264 # rescue app configs.
265 if [ -f /etc/drupal/sites/default/settings.php.rpmsave ]; then
266 mv -f %{_sysconfdir}/sites/default/settings.php{,.rpmnew}
267 mv -f /etc/drupal/sites/default/settings.php.rpmsave %{_sysconfdir}/sites/default/settings.php
269 # other configured sites, if any
270 for i in /etc/drupal/sites/*; do
272 [ "$d" = "default" ] && continue
273 mv -f %{_sysconfdir}/sites/$d{,.rpmnew}
274 mv -f $i %{_sysconfdir}/sites/$d
277 # migrate from apache-config macros
278 if [ -f /etc/drupal/apache.conf.rpmsave ]; then
279 if [ -d /etc/apache/webapps.d ]; then
280 cp -f %{_sysconfdir}/apache.conf{,.rpmnew}
281 cp -f /etc/drupal/apache.conf.rpmsave %{_sysconfdir}/apache.conf
284 if [ -d /etc/httpd/webapps.d ]; then
285 cp -f %{_sysconfdir}/httpd.conf{,.rpmnew}
286 cp -f /etc/drupal/apache.conf.rpmsave %{_sysconfdir}/httpd.conf
288 rm -f /etc/drupal/apache.conf.rpmsave
291 # place new config location, as trigger puts config only on first install, do it here.
292 if [ -L /etc/apache/conf.d/99_%{name}.conf ]; then
293 rm -f /etc/apache/conf.d/99_%{name}.conf
294 /usr/sbin/webapp register apache %{_webapp}
297 if [ -L /etc/httpd/httpd.conf/99_%{name}.conf ]; then
298 rm -f /etc/httpd/httpd.conf/99_%{name}.conf
299 /usr/sbin/webapp register httpd %{_webapp}
303 if [ "$httpd_reload" ]; then
304 %service httpd reload
306 if [ "$apache_reload" ]; then
307 %service apache reload
311 %defattr(644,root,root,755)
312 %doc *.txt README.PLD
314 %dir %attr(750,root,http) %{_sysconfdir}
315 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
316 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
318 %attr(750,root,http) %dir %{_sysconfdir}/sites
319 %attr(750,root,http) %dir %{_sysconfdir}/sites/default
320 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sites/default/*
325 %exclude %{_appdir}/includes/database.mysql.inc
326 %exclude %{_appdir}/includes/database.pgsql.inc
329 %dir %{_appdir}/themes
331 %{_appdir}/update.php
336 %dir %{_appdir}/htdocs
337 %{_appdir}/htdocs/*.ico
338 %{_appdir}/htdocs/index.php
339 %{_appdir}/htdocs/misc
340 %dir %{_appdir}/htdocs/themes
341 %{_appdir}/htdocs/modules
343 %dir %attr(775,root,http) /var/lib/%{name}
344 %dir %attr(775,root,http) /var/cache/%{name}
347 %defattr(644,root,root,755)
348 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
352 %defattr(644,root,root,755)
353 %doc database/*.mysql
354 %doc README.replication
355 %{_appdir}/includes/database.mysql.inc
358 %defattr(644,root,root,755)
359 %doc database/*.pgsql
360 %{_appdir}/includes/database.pgsql.inc
363 %defattr(644,root,root,755)
365 %{_appdir}/htdocs/themes/*
368 %defattr(644,root,root,755)
369 %{_appdir}/htdocs/xmlrpc.php