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 Patch0: %{name}-replication.patch
14 Patch1: %{name}-sitesdir.patch
15 Patch2: %{name}-topdir.patch
16 Patch3: %{name}-themedir2.patch
17 Patch4: %{name}-emptypass.patch
18 Patch5: %{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
92 Requires: /usr/bin/php
95 This package contains script which invokes cron hooks for Drupal.
97 %description cron -l pl
98 Ten pakiet zawiera skrypt wywo³uj±cy uchwyty crona dla Drupala.
101 Summary: Drupal DB Driver for MySQL
102 Summary(pl): Sterownik bazy danych MySQL dla Drupala
103 Group: Applications/WWW
105 Provides: %{name}(DB_Driver) = %{version}-%{release}
107 %description db-mysql
108 This virtual package provides MySQL database backend for Drupal.
110 %description db-mysql -l pl
111 Ten wirtualny pakiet dostarcza backend bazy danych MySQL dla
115 Summary: Drupal DB Driver for PostgreSQL
116 Summary(pl): Sterownik bazy danych PostgreSQL dla Drupala
117 Group: Applications/WWW
119 Provides: %{name}(DB_Driver) = %{version}-%{release}
121 %description db-pgsql
122 This virtual package provides PostgreSQL database backend for
125 NOTE: This driver is not tested in PLD, and not all modules have
126 database schema for PostgreSQL. Use this driver at your own risk!
128 %description db-pgsql -l pl
129 Ten wirtualny pakiet dostarcza backend bazy danych PostgreSQL dla
132 UWAGA: Ten sterownik nie by³ testowany w PLD i nie wszystkie modu³y
133 maj± schematy bazy danych dla PostgreSQL-a. Mo¿na go u¿ywaæ na w³asne
137 Summary: XMLRPC server for Drupal
138 Summary(pl): Serwer XMLRPC dla Drupala
139 Group: Applications/WWW
140 Requires: %{name} = %{version}-%{release}
143 XMLRPC server for Drupal allows other Drupals authorize with your
144 Drupal's user creditentials, this is called Distributed Authentication
147 %description xmlrpc -l pl
148 Serwer XMLRPC dla Drupala pozwala innym Drupalom autoryzowaæ siê z
149 danymi uwierzytelniaj±cymi u¿ytkownika danego Drupala - jest to
150 nazywane rozproszonym uwierzytelnianiem.
161 find -name '*~' | xargs -r rm -v
162 cp -p %{SOURCE3} README.PLD
165 rm -rf $RPM_BUILD_ROOT
166 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/cron.d,/var/{cache,lib}/%{name}} \
167 $RPM_BUILD_ROOT%{_appdir}/{po,modules/po,htdocs/modules}
169 cp -a *.ico index.php $RPM_BUILD_ROOT%{_appdir}/htdocs
170 cp -a misc $RPM_BUILD_ROOT%{_appdir}/htdocs
171 cp -a xmlrpc.php $RPM_BUILD_ROOT%{_appdir}/htdocs
173 cp -a cron.php $RPM_BUILD_ROOT%{_appdir}
174 cp -a modules/* $RPM_BUILD_ROOT%{_appdir}/modules
175 cp -a includes scripts $RPM_BUILD_ROOT%{_appdir}
176 cp -a sites $RPM_BUILD_ROOT%{_sysconfdir}
178 ln -s /var/lib/%{name} $RPM_BUILD_ROOT%{_appdir}/files
181 cp -a themes $RPM_BUILD_ROOT%{_appdir}/htdocs
182 # move .xtmpl/.theme out of htdocs
183 (cd $RPM_BUILD_ROOT%{_appdir}/htdocs && tar cf - --remove-files themes/*/*.{xtmpl,theme}) | tar -xf - -C $RPM_BUILD_ROOT%{_appdir}
184 mv $RPM_BUILD_ROOT%{_appdir}/{htdocs/,}themes/engines
185 # make screenshot.png available in appdir
186 for a in $RPM_BUILD_ROOT%{_appdir}/htdocs/themes/*; do
188 ln -s ../../htdocs/themes/$t/screenshot.png $RPM_BUILD_ROOT%{_appdir}/themes/$t
192 s=themes/chameleon/marvin
193 ln -s ../../htdocs/$s $RPM_BUILD_ROOT%{_appdir}/$s
195 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
196 install %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.d/%{name}
199 rm -rf $RPM_BUILD_ROOT
202 if [ "$1" = 1 ]; then
203 %banner -e %{name}-db-mysql <<EOF
204 If this is your first install of Drupal, you need to create Drupal database:
206 mysqladmin create drupal
207 zcat %{_docdir}/%{name}-db-mysql-%{version}/database.mysql.gz | mysql drupal
208 mysql -e "GRANT SELECT, INSERT, UPDATE, DELETE ON drupal.* TO 'drupal'@'localhost' IDENTIFIED BY 'PASSWORD'"
209 mysql -e "GRANT CREATE TEMPORARY TABLES, LOCK TABLES ON *.* TO 'drupal'@'localhost"
215 if [ "$1" = 1 ]; then
216 %banner -e %{name}-db-pgsql <<EOF
217 If this is your first install of Drupal, you need to create Drupal database:
219 and import initial schema from
220 %{_docdir}/%{name}-db-pgsql-%{version}/database.pgsql.gz
225 %triggerin -- apache1 >= 1.3.33-2
226 %apache_config_install -v 1 -c %{_sysconfdir}/apache.conf
228 %triggerun -- apache1 >= 1.3.33-2
229 %apache_config_uninstall -v 1
231 %triggerin -- apache >= 2.0.0
232 %apache_config_install -v 2 -c %{_sysconfdir}/apache.conf
234 %triggerun -- apache >= 2.0.0
235 %apache_config_uninstall -v 2
238 %defattr(644,root,root,755)
239 %doc *.txt README.PLD
240 %doc database/updates.inc
242 %attr(750,root,http) %dir %{_sysconfdir}
243 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
245 %attr(750,root,http) %dir %{_sysconfdir}/sites
246 %attr(750,root,http) %dir %{_sysconfdir}/sites/default
247 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sites/default/*
258 %dir %{_appdir}/htdocs
259 %{_appdir}/htdocs/*.ico
260 %{_appdir}/htdocs/index.php
261 %{_appdir}/htdocs/misc
262 %{_appdir}/htdocs/themes
263 %{_appdir}/htdocs/modules
265 %dir %attr(775,root,http) /var/lib/%{name}
266 %dir %attr(775,root,http) /var/cache/%{name}
269 %defattr(644,root,root,755)
270 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
274 %defattr(644,root,root,755)
275 %doc database/*.mysql
276 %doc README.replication
279 %defattr(644,root,root,755)
280 %doc database/*.pgsql
283 %defattr(644,root,root,755)
284 %{_appdir}/htdocs/xmlrpc.php