1 Summary: Open source content management platform
2 Summary(pl): Platforma do zarz±dzania tre¶ci± o otwartych ¼ród³ach
8 Group: Applications/WWW
9 Source0: http://drupal.org/files/projects/%{name}-%{version}.tar.gz
10 # Source0-md5: 7bbee605d6b57052e27adb1a61685ec1
13 Patch0: %{name}-config.patch
14 Patch1: %{name}-includedir.patch
15 Patch2: %{name}-module-themedir.patch
16 Patch3: %{name}-emptypass.patch
17 Patch4: %{name}-themedir.patch
18 Patch5: %{name}-sitesdir.patch
19 Patch6: %{name}-topdir.patch
20 Patch7: %{name}-themedir2.patch
21 URL: http://drupal.org/
22 BuildRequires: rpmbuild(macros) >= 1.194
23 BuildRequires: sed >= 4.0
24 Requires: apache >= 1.3.33-3
25 Requires: apache(mod_dir)
26 Requires: apache(mod_access)
27 Requires: apache(mod_expires)
28 Requires: apache(mod_rewrite)
29 Requires: apache(mod_alias)
30 Requires: php >= 3:4.3.3
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 %define _appdir %{_datadir}/%{name}
39 %define _sysconfdir /etc/%{name}
42 Drupal is software that allows an individual or a community of users
43 to easily publish, manage and organize a great variety of content on a
44 website. Tens of thousands of people and organizations have used
45 Drupal to set up scores of different kinds of web sites, including
46 - community web portals and discussion sites
47 - corporate web sites/intranet portals
50 - e-commerce applications
51 - resource directories
53 Drupal includes features to enable
54 - content management systems
56 - collaborative authoring environments
60 - file uploads and download
65 Drupal to oprogramowanie pozwalaj±ce osobie lub spo³eczno¶ci
66 u¿ytkowników na ³atwe publikowanie, zarz±dzanie i organizowanie ró¿nej
67 tre¶ci na stronie WWW. Dziesi±tki tysiêcy ludzi i organizacji u¿ywali
68 Drupala do ustawiania wyników ró¿nych rodzajów stron WWW, w tym:
69 - portale WWW i strony dyskusyjne spo³eczno¶ci
70 - korporacyjne strony WWW/portale intranetowe
73 - aplikacje e-commerce
76 Drupal zawiera zasoby umo¿liwiaj±ce tworzenie:
77 - systemów zarz±dzania tre¶ci±
79 - ¶rodowisk pracy grupowej
83 - wrzucania i ¶ci±gania plików
89 Summary(pl): Us³uga cron dla Drupala
90 Group: Applications/WWW
91 Requires: %{name} = %{version}-%{release}
93 Requires: php-cli >= 3:4.3.3
96 This package contains script which invokes cron hooks for Drupal.
98 %description cron -l pl
99 Ten pakiet zawiera skrypt wywo³uj±cy uchwyty crona dla Drupala.
102 Summary: XMLRPC server for Drupal
103 Summary(pl): Serwer XMLRPC dla Drupala
104 Group: Applications/WWW
105 Requires: %{name} = %{version}-%{release}
108 XMLRPC server for Drupal allows other Drupals authorize with your
109 Drupal's user creditentials, this is called Distributed Authentication
112 %description xmlrpc -l pl
113 Serwer XMLRPC dla Drupala pozwala innym Drupalom autoryzowaæ siê z
114 danymi uwierzytelniaj±cymi u¿ytkownika danego Drupala - jest to
115 nazywane rozproszonym uwierzytelnianiem.
128 #grep -rl 'include_once .includes/' . | xargs sed -i -e '
129 # s,include_once \(.\)includes/,include_once \1%{_appdir}/includes/,g
132 find -name '*~' | xargs -r rm -v
135 rm -rf $RPM_BUILD_ROOT
136 install -d $RPM_BUILD_ROOT{%{_appdir}/{po,modules/po,htdocs/{files,modules}},%{_sysconfdir},/etc/cron.d}
138 cp -a *.ico index.php $RPM_BUILD_ROOT%{_appdir}/htdocs
139 cp -a misc $RPM_BUILD_ROOT%{_appdir}/htdocs
140 cp -a xmlrpc.php $RPM_BUILD_ROOT%{_appdir}/htdocs
142 cp -a cron.php $RPM_BUILD_ROOT%{_appdir}
143 cp -a modules/* $RPM_BUILD_ROOT%{_appdir}/modules
144 cp -a includes scripts $RPM_BUILD_ROOT%{_appdir}
145 cp -a sites $RPM_BUILD_ROOT%{_sysconfdir}
147 cp -a themes $RPM_BUILD_ROOT%{_appdir}/htdocs
148 ln -s htdocs/files $RPM_BUILD_ROOT%{_appdir}/files
150 # move .xtmpl/.theme out of htdocs
151 (cd $RPM_BUILD_ROOT%{_appdir}/htdocs && tar cf - --remove-files themes/*/*.{xtmpl,theme}) | tar -xf - -C $RPM_BUILD_ROOT%{_appdir}
152 mv $RPM_BUILD_ROOT%{_appdir}/{htdocs/,}themes/engines
154 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
155 install %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.d/%{name}
158 rm -rf $RPM_BUILD_ROOT
161 if [ "$1" = 1 ]; then
162 %banner -e %{name} <<EOF
163 If this is your first install of Drupal, you need to create drupal database:
164 mysqladmin create drupal
166 and import initial schema:
167 zcat %{_docdir}/%{name}-%{version}/database/database.mysql.gz | mysql drupal
169 Also read INSTALL from documentation!
174 %triggerin -- apache1 >= 1.3.33-2
175 %apache_config_install -v 1 -c %{_sysconfdir}/apache.conf
177 %triggerun -- apache1 >= 1.3.33-2
178 %apache_config_uninstall -v 1
180 %triggerin -- apache >= 2.0.0
181 %apache_config_install -v 2 -c %{_sysconfdir}/apache.conf
183 %triggerun -- apache >= 2.0.0
184 %apache_config_uninstall -v 2
187 %defattr(644,root,root,755)
190 %attr(750,root,http) %dir %{_sysconfdir}
191 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
193 %attr(750,root,http) %dir %{_sysconfdir}/sites
194 %attr(750,root,http) %dir %{_sysconfdir}/sites/default
195 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sites/default/*
206 %dir %{_appdir}/htdocs
207 %{_appdir}/htdocs/*.ico
208 %{_appdir}/htdocs/index.php
209 %{_appdir}/htdocs/misc
210 %{_appdir}/htdocs/themes
211 %{_appdir}/htdocs/modules
212 %dir %attr(775,root,http) %{_appdir}/htdocs/files
215 %defattr(644,root,root,755)
216 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
220 %defattr(644,root,root,755)
221 %{_appdir}/htdocs/xmlrpc.php