1 Summary: Open source content management platform
2 Summary(pl): Platforma do zarz±dzania tre¶ci± o otwartych ¼ród³ach
7 Group: Applications/WWW
8 Source0: http://drupal.org/files/projects/%{name}-%{version}.tar.gz
9 # Source0-md5: f436973f02aa2cea15ef1ca90223082b
13 Patch3: %{name}-replication.patch
14 Patch5: %{name}-sitesdir.patch
15 Patch6: %{name}-topdir.patch
16 Patch7: %{name}-themedir2.patch
17 Patch8: %{name}-emptypass.patch
18 Patch9: %{name}-cron.patch
19 URL: http://drupal.org/
20 BuildRequires: rpmbuild(macros) >= 1.194
21 BuildRequires: sed >= 4.0
22 Requires: apache >= 1.3.33-3
23 Requires: apache(mod_dir)
24 Requires: apache(mod_access)
25 Requires: apache(mod_expires)
26 Requires: apache(mod_rewrite)
27 Requires: apache(mod_alias)
28 Requires: php >= 3:4.3.3
31 Requires: %{name}(DB_Driver) = %{version}-%{release}
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 %define _appdir %{_datadir}/%{name}
37 %define _sysconfdir /etc/%{name}
40 Drupal is software that allows an individual or a community of users
41 to easily publish, manage and organize a great variety of content on a
42 website. Tens of thousands of people and organizations have used
43 Drupal to set up scores of different kinds of web sites, including
44 - community web portals and discussion sites
45 - corporate web sites/intranet portals
48 - e-commerce applications
49 - resource directories
51 Drupal includes features to enable
52 - content management systems
54 - collaborative authoring environments
58 - file uploads and download
63 Drupal to oprogramowanie pozwalaj±ce osobie lub spo³eczno¶ci
64 u¿ytkowników na ³atwe publikowanie, zarz±dzanie i organizowanie ró¿nej
65 tre¶ci na stronie WWW. Dziesi±tki tysiêcy ludzi i organizacji u¿ywali
66 Drupala do ustawiania wyników ró¿nych rodzajów stron WWW, w tym:
67 - portale WWW i strony dyskusyjne spo³eczno¶ci
68 - korporacyjne strony WWW/portale intranetowe
71 - aplikacje e-commerce
74 Drupal zawiera zasoby umo¿liwiaj±ce tworzenie:
75 - systemów zarz±dzania tre¶ci±
77 - ¶rodowisk pracy grupowej
81 - wrzucania i ¶ci±gania plików
87 Summary(pl): Us³uga cron dla Drupala
88 Group: Applications/WWW
89 Requires: %{name} = %{version}-%{release}
91 Requires: php-cli >= 3:4.3.3
94 This package contains script which invokes cron hooks for Drupal.
96 %description cron -l pl
97 Ten pakiet zawiera skrypt wywo³uj±cy uchwyty crona dla Drupala.
100 Summary: Drupal DB Driver for MySQL
101 Summary(pl): Sterownik bazy danych MySQL dla Drupala
102 Group: Applications/WWW
104 Provides: %{name}(DB_Driver) = %{version}-%{release}
106 %description db-mysql
107 This virtual package provides MySQL database backend for Drupal.
109 %description db-mysql -l pl
110 Ten wirtualny pakiet dostarcza backend bazy danych MySQL dla
114 Summary: Drupal DB Driver for PostgreSQL
115 Summary(pl): Sterownik bazy danych PostgreSQL dla Drupala
116 Group: Applications/WWW
118 Provides: %{name}(DB_Driver) = %{version}-%{release}
120 %description db-pgsql
121 This virtual package provides PostgreSQL database backend for
124 NOTE: This driver is not tested in PLD, and not all modules have
125 database schema for PostgreSQL. Use this driver at your own risk!
127 %description db-pgsql -l pl
128 Ten wirtualny pakiet dostarcza backend bazy danych PostgreSQL dla
131 UWAGA: Ten sterownik nie by³ testowany w PLD i nie wszystkie modu³y
132 maj± schematy bazy danych dla PostgreSQL-a. Mo¿na go u¿ywaæ na w³asne
136 Summary: XMLRPC server for Drupal
137 Summary(pl): Serwer XMLRPC dla Drupala
138 Group: Applications/WWW
139 Requires: %{name} = %{version}-%{release}
142 XMLRPC server for Drupal allows other Drupals authorize with your
143 Drupal's user creditentials, this is called Distributed Authentication
146 %description xmlrpc -l pl
147 Serwer XMLRPC dla Drupala pozwala innym Drupalom autoryzowaæ siê z
148 danymi uwierzytelniaj±cymi u¿ytkownika danego Drupala - jest to
149 nazywane rozproszonym uwierzytelnianiem.
160 find -name '*~' | xargs -r rm -v
161 cp %{SOURCE3} README.PLD
164 rm -rf $RPM_BUILD_ROOT
165 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/cron.d,/var/{cache,lib}/%{name}} \
166 $RPM_BUILD_ROOT%{_appdir}/{po,modules/po,htdocs/modules}
168 cp -a *.ico index.php $RPM_BUILD_ROOT%{_appdir}/htdocs
169 cp -a misc $RPM_BUILD_ROOT%{_appdir}/htdocs
170 cp -a xmlrpc.php $RPM_BUILD_ROOT%{_appdir}/htdocs
172 cp -a cron.php $RPM_BUILD_ROOT%{_appdir}
173 cp -a modules/* $RPM_BUILD_ROOT%{_appdir}/modules
174 cp -a includes scripts $RPM_BUILD_ROOT%{_appdir}
175 cp -a sites $RPM_BUILD_ROOT%{_sysconfdir}
177 ln -s /var/lib/%{name} $RPM_BUILD_ROOT%{_appdir}/files
180 cp -a themes $RPM_BUILD_ROOT%{_appdir}/htdocs
181 # move .xtmpl/.theme out of htdocs
182 (cd $RPM_BUILD_ROOT%{_appdir}/htdocs && tar cf - --remove-files themes/*/*.{xtmpl,theme}) | tar -xf - -C $RPM_BUILD_ROOT%{_appdir}
183 mv $RPM_BUILD_ROOT%{_appdir}/{htdocs/,}themes/engines
184 # make screenshot.png available in appdir
185 for a in $RPM_BUILD_ROOT%{_appdir}/htdocs/themes/*; do
187 ln -s ../../htdocs/themes/$t/screenshot.png $RPM_BUILD_ROOT%{_appdir}/themes/$t
191 s=themes/chameleon/marvin
192 ln -s ../../htdocs/$s $RPM_BUILD_ROOT%{_appdir}/$s
194 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
195 install %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.d/%{name}
198 rm -rf $RPM_BUILD_ROOT
201 if [ "$1" = 1 ]; then
202 %banner -e %{name} <<EOF
203 If this is your first install of Drupal, you need to create drupal database:
204 mysqladmin create drupal
206 and import initial schema:
207 zcat %{_docdir}/%{name}-%{version}/database/database.mysql.gz | mysql drupal
209 Also read INSTALL from documentation!
214 %triggerin -- apache1 >= 1.3.33-2
215 %apache_config_install -v 1 -c %{_sysconfdir}/apache.conf
217 %triggerun -- apache1 >= 1.3.33-2
218 %apache_config_uninstall -v 1
220 %triggerin -- apache >= 2.0.0
221 %apache_config_install -v 2 -c %{_sysconfdir}/apache.conf
223 %triggerun -- apache >= 2.0.0
224 %apache_config_uninstall -v 2
227 %defattr(644,root,root,755)
228 %doc *.txt database README.replication README.PLD
230 %attr(750,root,http) %dir %{_sysconfdir}
231 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
233 %attr(750,root,http) %dir %{_sysconfdir}/sites
234 %attr(750,root,http) %dir %{_sysconfdir}/sites/default
235 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sites/default/*
246 %dir %{_appdir}/htdocs
247 %{_appdir}/htdocs/*.ico
248 %{_appdir}/htdocs/index.php
249 %{_appdir}/htdocs/misc
250 %{_appdir}/htdocs/themes
251 %{_appdir}/htdocs/modules
253 %dir %attr(775,root,http) /var/lib/%{name}
254 %dir %attr(775,root,http) /var/cache/%{name}
257 %defattr(644,root,root,755)
258 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
262 %defattr(644,root,root,755)
265 %defattr(644,root,root,755)
268 %defattr(644,root,root,755)
269 %{_appdir}/htdocs/xmlrpc.php