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