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 Source3: http://www.drupal.org/misc/favicon.ico
14 # Source3-md5: f0ee98b4394dfdab17c16245dd799204
15 Patch0: %{name}-config.patch
16 Patch1: %{name}-includedir.patch
17 Patch2: %{name}-module-themedir.patch
18 Patch3: %{name}-emptypass.patch
19 Patch4: %{name}-themedir.patch
20 Patch5: %{name}-sitesdir.patch
21 Patch6: %{name}-topdir.patch
22 Patch7: %{name}-themedir2.patch
23 URL: http://drupal.org/
24 BuildRequires: rpmbuild(macros) >= 1.194
25 BuildRequires: sed >= 4.0
26 Requires: apache >= 1.3.33-3
27 Requires: apache(mod_dir)
28 Requires: apache(mod_access)
29 Requires: apache(mod_expires)
30 Requires: apache(mod_rewrite)
31 Requires: apache(mod_alias)
32 Requires: php >= 3:4.3.3
37 # rpm -ql drupal | awk -F/ '/\.module$/{gsub("\.module", ""); printf("Provides:\tdrupal-mod-%s\n", $NF)}' >> drupal.spec
38 Provides: drupal-mod-aggregator
39 Provides: drupal-mod-archive
40 Provides: drupal-mod-block
41 Provides: drupal-mod-blog
42 Provides: drupal-mod-blogapi
43 Provides: drupal-mod-book
44 Provides: drupal-mod-comment
45 Provides: drupal-mod-contact
46 Provides: drupal-mod-drupal
47 Provides: drupal-mod-filter
48 Provides: drupal-mod-forum
49 Provides: drupal-mod-help
50 Provides: drupal-mod-legacy
51 Provides: drupal-mod-locale
52 Provides: drupal-mod-menu
53 Provides: drupal-mod-node
54 Provides: drupal-mod-page
55 Provides: drupal-mod-path
56 Provides: drupal-mod-ping
57 Provides: drupal-mod-poll
58 Provides: drupal-mod-profile
59 Provides: drupal-mod-queue
60 Provides: drupal-mod-search
61 Provides: drupal-mod-statistics
62 Provides: drupal-mod-story
63 Provides: drupal-mod-system
64 Provides: drupal-mod-taxonomy
65 Provides: drupal-mod-throttle
66 Provides: drupal-mod-tracker
67 Provides: drupal-mod-upload
68 Provides: drupal-mod-user
69 Provides: drupal-mod-watchdog
71 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
73 %define _appdir %{_datadir}/%{name}
74 %define _sysconfdir /etc/%{name}
77 Drupal is software that allows an individual or a community of users
78 to easily publish, manage and organize a great variety of content on a
79 website. Tens of thousands of people and organizations have used
80 Drupal to set up scores of different kinds of web sites, including
81 - community web portals and discussion sites
82 - corporate web sites/intranet portals
85 - e-commerce applications
86 - resource directories
88 Drupal includes features to enable
89 - content management systems
91 - collaborative authoring environments
95 - file uploads and download
100 Drupal to oprogramowanie pozwalaj±ce osobie lub spo³eczno¶ci
101 u¿ytkowników na ³atwe publikowanie, zarz±dzanie i organizowanie ró¿nej
102 tre¶ci na stronie WWW. Dziesi±tki tysiêcy ludzi i organizacji u¿ywali
103 Drupala do ustawiania wyników ró¿nych rodzajów stron WWW, w tym:
104 - portale WWW i strony dyskusyjne spo³eczno¶ci
105 - korporacyjne strony WWW/portale intranetowe
106 - osobiste strony WWW
108 - aplikacje e-commerce
111 Drupal zawiera zasoby umo¿liwiaj±ce tworzenie:
112 - systemów zarz±dzania tre¶ci±
114 - ¶rodowisk pracy grupowej
118 - wrzucania i ¶ci±gania plików
124 Summary(pl): Us³uga cron dla Drupala
125 Group: Applications/WWW
126 Requires: %{name} = %{version}-%{release}
128 Requires: php-cli >= 3:4.3.3
131 This package contains script which invokes cron hooks for Drupal.
133 %description cron -l pl
134 Ten pakiet zawiera skrypt wywo³uj±cy uchwyty crona dla Drupala.
147 #grep -rl 'include_once .includes/' . | xargs sed -i -e '
148 # s,include_once \(.\)includes/,include_once \1%{_appdir}/includes/,g
151 find -name '*~' | xargs -r rm -v
154 rm -rf $RPM_BUILD_ROOT
155 install -d $RPM_BUILD_ROOT{%{_appdir}/htdocs/files,%{_sysconfdir},/etc/cron.d}
157 cp -a *.ico index.php $RPM_BUILD_ROOT%{_appdir}/htdocs
158 cp -a misc $RPM_BUILD_ROOT%{_appdir}/htdocs
160 cp -a cron.php $RPM_BUILD_ROOT%{_appdir}
161 cp -a includes modules scripts $RPM_BUILD_ROOT%{_appdir}
162 cp -a sites $RPM_BUILD_ROOT%{_sysconfdir}
164 cp -a themes $RPM_BUILD_ROOT%{_appdir}/htdocs
166 # move .xtmpl/.theme out of htdocs
167 (cd $RPM_BUILD_ROOT%{_appdir}/htdocs && tar cf - --remove-files themes/*/*.{xtmpl,theme}) | tar -xf - -C $RPM_BUILD_ROOT%{_appdir}
168 mv $RPM_BUILD_ROOT%{_appdir}/{htdocs/,}themes/engines
170 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache-%{name}.conf
171 install %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.d/%{name}
172 install %{SOURCE3} $RPM_BUILD_ROOT%{_appdir}/htdocs
175 rm -rf $RPM_BUILD_ROOT
178 if [ "$1" = 1 ]; then
179 %banner -e %{name} <<EOF
180 If this is your first install of Drupal, you need to create drupal database:
181 shell$ mysqladmin create drupal
183 and import initial schema:
184 shell$ zcat %{_docdir}/%{name}-%{version}/database/database.mysql.gz | mysql drupal
186 (anyway, read INSTALL file from documentation).
191 %triggerin -- apache1 >= 1.3.33-2
192 %apache_config_install -v 1 -c %{_sysconfdir}/apache-%{name}.conf
194 %triggerun -- apache1 >= 1.3.33-2
195 %apache_config_uninstall -v 1
197 %triggerin -- apache >= 2.0.0
198 %apache_config_install -v 2 -c %{_sysconfdir}/apache-%{name}.conf
200 %triggerun -- apache >= 2.0.0
201 %apache_config_uninstall -v 2
204 %defattr(644,root,root,755)
207 %attr(750,root,http) %dir %{_sysconfdir}
208 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache-%{name}.conf
210 %attr(750,root,http) %dir %{_sysconfdir}/sites
211 %attr(750,root,http) %dir %{_sysconfdir}/sites/default
212 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sites/default/*
220 %dir %{_appdir}/htdocs
221 %{_appdir}/htdocs/*.*
222 %{_appdir}/htdocs/misc
223 %{_appdir}/htdocs/themes
224 %dir %attr(775,root,http) %{_appdir}/htdocs/files
227 %defattr(644,root,root,755)
228 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}