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