]> git.pld-linux.org Git - packages/drupal.git/blame - drupal.spec
- merged 5.7 from DEVEL: cvs up -j HEAD -j DEVEL, except manually re-merged changelog...
[packages/drupal.git] / drupal.spec
CommitLineData
f9fd4089
ER
1# TODO
2# - why not drupal 6.0?
412d0f01 3Summary: Open source content management platform
f9fd4089 4Summary(pl.UTF-8): Platforma do zarządzania treścią o otwartych źródłach
412d0f01 5Name: drupal
f9fd4089
ER
6Version: 5.7
7Release: 0.4
412d0f01
ER
8License: GPL
9Group: Applications/WWW
f9fd4089
ER
10Source0: http://ftp.osuosl.org/pub/drupal/files/projects/%{name}-%{version}.tar.gz
11# Source0-md5: c7d9911ad1001c790bbdfe6fd4cdfc89
54439521 12Source1: %{name}.conf
70724985 13Source2: %{name}.cron
8ade80fb 14Source3: %{name}.PLD
f9fd4089
ER
15Source4: %{name}-apache1.conf
16Patch0: %{name}-cron.patch
c0240262
ER
17Patch1: %{name}-sitesdir.patch
18Patch2: %{name}-topdir.patch
19Patch3: %{name}-themedir2.patch
f9fd4089
ER
20#Patchx: %{name}-replication.patch
21#Patchx: %{name}-emptypass.patch
412d0f01 22URL: http://drupal.org/
0c7df6f6 23BuildRequires: rpmbuild(macros) >= 1.264
6c37b393 24BuildRequires: sed >= 4.0
8655c58e 25Requires: %{name}(DB_Driver) = %{version}-%{release}
3128c8e1 26Requires: apache(mod_access)
8655c58e
ER
27Requires: apache(mod_alias)
28Requires: apache(mod_dir)
3128c8e1
ER
29Requires: apache(mod_expires)
30Requires: apache(mod_rewrite)
f9fd4089 31Requires: php(mbstring)
3aa2f5f2
ER
32Requires: php(pcre)
33Requires: php(xml)
8655c58e
ER
34Requires: webapps
35Requires: webserver = apache
3aa2f5f2 36Requires: webserver(php) >= 4.3.3
412d0f01
ER
37BuildArch: noarch
38BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40%define _appdir %{_datadir}/%{name}
0c7df6f6
ER
41%define _webapps /etc/webapps
42%define _webapp %{name}
43%define _sysconfdir %{_webapps}/%{_webapp}
412d0f01
ER
44
45%description
46Drupal is software that allows an individual or a community of users
47to easily publish, manage and organize a great variety of content on a
48website. Tens of thousands of people and organizations have used
49Drupal to set up scores of different kinds of web sites, including
50- community web portals and discussion sites
51- corporate web sites/intranet portals
52- personal web sites
53- afficionado sites
54- e-commerce applications
55- resource directories
56
57Drupal includes features to enable
58- content management systems
59- blogs
60- collaborative authoring environments
61- forums
62- newsletters
63- picture galleries
64- file uploads and download
65
66and much more.
67
19981946
JR
68%description -l pl.UTF-8
69Drupal to oprogramowanie pozwalające osobie lub społeczności
70użytkowników na łatwe publikowanie, zarządzanie i organizowanie różnej
71treści na stronie WWW. Dziesiątki tysięcy ludzi i organizacji używali
72Drupala do ustawiania wyników różnych rodzajów stron WWW, w tym:
73- portale WWW i strony dyskusyjne społeczności
829e6b2c
JB
74- korporacyjne strony WWW/portale intranetowe
75- osobiste strony WWW
19981946 76- strony miłośników
829e6b2c 77- aplikacje e-commerce
19981946 78- słowniki zasobów
829e6b2c 79
19981946
JR
80Drupal zawiera zasoby umożliwiające tworzenie:
81- systemów zarządzania treścią
82- blogów
83- środowisk pracy grupowej
84- forów
829e6b2c 85- nowin
19981946
JR
86- galerii zdjęć
87- wrzucania i ściągania plików
829e6b2c 88
19981946 89i wiele więcej.
829e6b2c 90
70724985 91%package cron
829e6b2c 92Summary: Drupal cron
f9fd4089 93Summary(pl.UTF-8): Usługa cron dla Drupala
70724985
ER
94Group: Applications/WWW
95Requires: %{name} = %{version}-%{release}
96Requires: crondaemon
f9fd4089 97Requires: php-cli >= 3:4.3.3
70724985
ER
98
99%description cron
829e6b2c
JB
100This package contains script which invokes cron hooks for Drupal.
101
19981946
JR
102%description cron -l pl.UTF-8
103Ten pakiet zawiera skrypt wywołujący uchwyty crona dla Drupala.
70724985 104
a04f1ba7
ER
105%package db-mysql
106Summary: Drupal DB Driver for MySQL
f9fd4089 107Summary(pl.UTF-8): Sterownik bazy danych MySQL dla Drupala
a04f1ba7 108Group: Applications/WWW
3aa2f5f2 109Requires: php(mysql)
a04f1ba7
ER
110Provides: %{name}(DB_Driver) = %{version}-%{release}
111
112%description db-mysql
113This virtual package provides MySQL database backend for Drupal.
114
19981946 115%description db-mysql -l pl.UTF-8
8655c58e 116Ten wirtualny pakiet dostarcza backend bazy danych MySQL dla Drupala.
a04f1ba7
ER
117
118%package db-pgsql
119Summary: Drupal DB Driver for PostgreSQL
f9fd4089 120Summary(pl.UTF-8): Sterownik bazy danych PostgreSQL dla Drupala
a04f1ba7 121Group: Applications/WWW
3aa2f5f2 122Requires: php(pgsql)
a04f1ba7
ER
123Provides: %{name}(DB_Driver) = %{version}-%{release}
124
125%description db-pgsql
8655c58e 126This virtual package provides PostgreSQL database backend for Drupal.
a04f1ba7
ER
127
128NOTE: This driver is not tested in PLD, and not all modules have
129database schema for PostgreSQL. Use this driver at your own risk!
130
19981946 131%description db-pgsql -l pl.UTF-8
a04f1ba7
ER
132Ten wirtualny pakiet dostarcza backend bazy danych PostgreSQL dla
133Drupala.
134
19981946
JR
135UWAGA: Ten sterownik nie był testowany w PLD i nie wszystkie moduły
136mają schematy bazy danych dla PostgreSQL-a. Można go używać na własne
b4699926
JB
137ryzyko.
138
f9fd4089
ER
139%package update
140Summary: Package to perform Drupal database updates
01c85086
ER
141Group: Applications/WWW
142Requires: %{name} = %{version}-%{release}
01c85086 143
f9fd4089
ER
144%description update
145This package contains scripts needed to do database updates via web.
1017e008 146
8c193c52
ER
147%package xmlrpc
148Summary: XMLRPC server for Drupal
f9fd4089 149Summary(pl.UTF-8): Serwer XMLRPC dla Drupala
8c193c52
ER
150Group: Applications/WWW
151Requires: %{name} = %{version}-%{release}
152
153%description xmlrpc
042c8875 154XMLRPC server for Drupal allows other Drupals authorize with your
8c193c52
ER
155Drupal's user creditentials, this is called Distributed Authentication
156in Drupal world.
157
19981946
JR
158%description xmlrpc -l pl.UTF-8
159Serwer XMLRPC dla Drupala pozwala innym Drupalom autoryzować się z
160danymi uwierzytelniającymi użytkownika danego Drupala - jest to
042c8875
JB
161nazywane rozproszonym uwierzytelnianiem.
162
412d0f01 163%prep
f9fd4089 164%setup -q %{?_rc:-n %{name}-%{version}-%{_rc}}
c0240262
ER
165%patch0 -p1
166%patch1 -p1
167%patch2 -p1
829e6b2c 168%patch3 -p1
412d0f01 169
f9fd4089
ER
170# cleanup backups after patching
171find . '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
f7c6dec3 172cp -p %{SOURCE3} README.PLD
412d0f01
ER
173
174%install
175rm -rf $RPM_BUILD_ROOT
47d1108e 176install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/cron.d,/var/{cache,lib}/%{name}} \
f9fd4089 177 $RPM_BUILD_ROOT%{_appdir}/{po,database,modules/po,htdocs/modules,themes}
412d0f01 178
f9fd4089 179cp -a index.php $RPM_BUILD_ROOT%{_appdir}/htdocs
6c37b393 180cp -a misc $RPM_BUILD_ROOT%{_appdir}/htdocs
f9fd4089 181cp -a install.php update.php xmlrpc.php $RPM_BUILD_ROOT%{_appdir}/htdocs
412d0f01 182
f9fd4089 183cp -a cron.php $RPM_BUILD_ROOT%{_appdir}
a93937fa 184cp -a includes scripts $RPM_BUILD_ROOT%{_appdir}
6c37b393 185cp -a sites $RPM_BUILD_ROOT%{_sysconfdir}
f9fd4089
ER
186cp -a modules/* $RPM_BUILD_ROOT%{_appdir}/modules
187cp -a themes/* $RPM_BUILD_ROOT%{_appdir}/themes
188cp -Rl $RPM_BUILD_ROOT%{_appdir}/modules $RPM_BUILD_ROOT%{_appdir}/htdocs
189cp -Rl $RPM_BUILD_ROOT%{_appdir}/themes $RPM_BUILD_ROOT%{_appdir}/htdocs
190
191find $RPM_BUILD_ROOT%{_appdir}/htdocs/themes/ $RPM_BUILD_ROOT%{_appdir}/htdocs/modules/ \
192 -type f -regextype posix-awk \
193 -regex '.*\.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|php|xtmpl)$|.*/(code-style\.pl|Entries.*|Repository|Root|Tag|Template)$' \
194 -print0 | xargs -0 -r -l512 rm -f
195find $RPM_BUILD_ROOT%{_appdir}/themes/ $RPM_BUILD_ROOT%{_appdir}/modules/ \
196 -type f -regextype posix-awk \
197 ! -regex '.*\.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|php|xtmpl)$|.*/(code-style\.pl|Entries.*|Repository|Root|Tag|Template)$' \
198 -print0 | xargs -0 -r -l512 rm -f
199
200# avoid pulling perl dep
201chmod -x $RPM_BUILD_ROOT%{_appdir}/scripts/*
412d0f01 202
3ebcddee 203ln -s /var/lib/%{name} $RPM_BUILD_ROOT%{_appdir}/files
f9fd4089
ER
204
205install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
0c7df6f6 206install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
70724985 207install %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.d/%{name}
54439521 208
829e6b2c
JB
209%clean
210rm -rf $RPM_BUILD_ROOT
211
ab115a1d 212%post
f9fd4089
ER
213if [ "$1" = 1 ]; then
214%banner -e %{name} <<'EOF'
215If this is your first install of Drupal, You need at least configure
216$db_url and $base_url in %{_sysconfdir}/sites/default/settings.php
217
218EOF
219fi
ab115a1d 220
b3296022 221%post db-mysql
3128c8e1 222if [ "$1" = 1 ]; then
f9fd4089 223%banner -e %{name}-db-mysql <<'EOF'
b3296022 224If this is your first install of Drupal, you need to create Drupal database:
6c37b393 225
b3296022
ER
226mysqladmin create drupal
227zcat %{_docdir}/%{name}-db-mysql-%{version}/database.mysql.gz | mysql drupal
f9fd4089 228mysql -e "GRANT SELECT, INSERT, UPDATE, DELETE ON drupal.* TO 'drupal'@'localhost' IDENTIFIED BY 'password'"
5dd481fc 229mysql -e "GRANT CREATE TEMPORARY TABLES, LOCK TABLES ON *.* TO 'drupal'@'localhost'"
f7c6dec3 230
b3296022
ER
231EOF
232fi
233
234%post db-pgsql
235if [ "$1" = 1 ]; then
f9fd4089 236%banner -e %{name}-db-pgsql <<'EOF'
b3296022
ER
237If this is your first install of Drupal, you need to create Drupal database:
238
239and import initial schema from
240%{_docdir}/%{name}-db-pgsql-%{version}/database.pgsql.gz
6c37b393
ER
241
242EOF
3128c8e1 243fi
6c37b393 244
f9fd4089 245%triggerin -- apache1
0c7df6f6 246%webapp_register apache %{_webapp}
54439521 247
f9fd4089 248%triggerun -- apache1
0c7df6f6 249%webapp_unregister apache %{_webapp}
54439521 250
f9fd4089 251%triggerin -- apache >= 2.0.0
0c7df6f6 252%webapp_register httpd %{_webapp}
54439521 253
f9fd4089 254%triggerun -- apache >= 2.0.0
0c7df6f6
ER
255%webapp_unregister httpd %{_webapp}
256
412d0f01
ER
257%files
258%defattr(644,root,root,755)
b3296022 259%doc *.txt README.PLD
54439521 260
0c7df6f6 261%dir %attr(750,root,http) %{_sysconfdir}
75dde265 262%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
0c7df6f6 263%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
54439521 264
6c37b393
ER
265%attr(750,root,http) %dir %{_sysconfdir}/sites
266%attr(750,root,http) %dir %{_sysconfdir}/sites/default
5f407171 267%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sites/default/*
f9fd4089
ER
268%attr(750,root,http) %dir %{_sysconfdir}/sites/all
269%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sites/all/*
6c37b393 270
412d0f01 271%dir %{_appdir}
412d0f01
ER
272%{_appdir}/includes
273%{_appdir}/modules
274%{_appdir}/scripts
f9fd4089 275%{_appdir}/themes
76caba40 276%{_appdir}/po
f9fd4089 277# symlink
a93937fa 278%{_appdir}/files
70724985 279
be9c29c5 280%dir %{_appdir}/htdocs
8c193c52 281%{_appdir}/htdocs/index.php
f9fd4089 282%{_appdir}/htdocs/install.php
be9c29c5 283%{_appdir}/htdocs/misc
f9fd4089 284%{_appdir}/htdocs/themes
a93937fa 285%{_appdir}/htdocs/modules
3ebcddee
ER
286
287%dir %attr(775,root,http) /var/lib/%{name}
47d1108e 288%dir %attr(775,root,http) /var/cache/%{name}
0c0ad8e1 289
70724985
ER
290%files cron
291%defattr(644,root,root,755)
292%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
f9fd4089 293%attr(775,root,root) %{_appdir}/cron.php
8c193c52 294
a04f1ba7
ER
295%files db-mysql
296%defattr(644,root,root,755)
f9fd4089 297#%doc README.replication
a04f1ba7
ER
298
299%files db-pgsql
300%defattr(644,root,root,755)
301
f9fd4089 302%files update
01c85086 303%defattr(644,root,root,755)
f9fd4089
ER
304%{_appdir}/htdocs/update.php
305%{_appdir}/database
01c85086 306
8c193c52
ER
307%files xmlrpc
308%defattr(644,root,root,755)
309%{_appdir}/htdocs/xmlrpc.php
This page took 0.069013 seconds and 4 git commands to generate.