]> git.pld-linux.org Git - packages/drupal.git/blob - drupal.spec
- pl for -xmlrpc
[packages/drupal.git] / drupal.spec
1 Summary:        Open source content management platform
2 Summary(pl):    Platforma do zarz±dzania tre¶ci± o otwartych ¼ród³ach
3 Name:           drupal
4 Version:        4.6.2
5 Release:        0.18
6 Epoch:          0
7 License:        GPL
8 Group:          Applications/WWW
9 Source0:        http://drupal.org/files/projects/%{name}-%{version}.tar.gz
10 # Source0-md5:  7bbee605d6b57052e27adb1a61685ec1
11 Source1:        %{name}.conf
12 Source2:        %{name}.cron
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
31 Requires:       php-mysql
32 Requires:       php-pcre
33 #Requires:      php-pgsql
34 Requires:       php-xml
35 # rpm -ql drupal | awk -F/ '/\.module$/{gsub("\.module", ""); printf("Provides:\tdrupal-mod-%s\n", $NF)}' >> drupal.spec
36 Provides:       drupal-mod-aggregator
37 Provides:       drupal-mod-archive
38 Provides:       drupal-mod-block
39 Provides:       drupal-mod-blog
40 Provides:       drupal-mod-blogapi
41 Provides:       drupal-mod-book
42 Provides:       drupal-mod-comment
43 Provides:       drupal-mod-contact
44 Provides:       drupal-mod-drupal
45 Provides:       drupal-mod-filter
46 Provides:       drupal-mod-forum
47 Provides:       drupal-mod-help
48 Provides:       drupal-mod-legacy
49 Provides:       drupal-mod-locale
50 Provides:       drupal-mod-menu
51 Provides:       drupal-mod-node
52 Provides:       drupal-mod-page
53 Provides:       drupal-mod-path
54 Provides:       drupal-mod-ping
55 Provides:       drupal-mod-poll
56 Provides:       drupal-mod-profile
57 Provides:       drupal-mod-queue
58 Provides:       drupal-mod-search
59 Provides:       drupal-mod-statistics
60 Provides:       drupal-mod-story
61 Provides:       drupal-mod-system
62 Provides:       drupal-mod-taxonomy
63 Provides:       drupal-mod-throttle
64 Provides:       drupal-mod-tracker
65 Provides:       drupal-mod-upload
66 Provides:       drupal-mod-user
67 Provides:       drupal-mod-watchdog
68 BuildArch:      noarch
69 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
70
71 %define         _appdir         %{_datadir}/%{name}
72 %define         _sysconfdir     /etc/%{name}
73
74 %description
75 Drupal is software that allows an individual or a community of users
76 to easily publish, manage and organize a great variety of content on a
77 website. Tens of thousands of people and organizations have used
78 Drupal to set up scores of different kinds of web sites, including
79 - community web portals and discussion sites
80 - corporate web sites/intranet portals
81 - personal web sites
82 - afficionado sites
83 - e-commerce applications
84 - resource directories
85
86 Drupal includes features to enable
87 - content management systems
88 - blogs
89 - collaborative authoring environments
90 - forums
91 - newsletters
92 - picture galleries
93 - file uploads and download
94
95 and much more.
96
97 %description -l pl
98 Drupal to oprogramowanie pozwalaj±ce osobie lub spo³eczno¶ci
99 u¿ytkowników na ³atwe publikowanie, zarz±dzanie i organizowanie ró¿nej
100 tre¶ci na stronie WWW. Dziesi±tki tysiêcy ludzi i organizacji u¿ywali
101 Drupala do ustawiania wyników ró¿nych rodzajów stron WWW, w tym:
102 - portale WWW i strony dyskusyjne spo³eczno¶ci
103 - korporacyjne strony WWW/portale intranetowe
104 - osobiste strony WWW
105 - strony mi³o¶ników
106 - aplikacje e-commerce
107 - s³owniki zasobów
108
109 Drupal zawiera zasoby umo¿liwiaj±ce tworzenie:
110 - systemów zarz±dzania tre¶ci±
111 - blogów
112 - ¶rodowisk pracy grupowej
113 - forów
114 - nowin
115 - galerii zdjêæ
116 - wrzucania i ¶ci±gania plików
117
118 i wiele wiêcej.
119
120 %package cron
121 Summary:        Drupal cron
122 Summary(pl):    Us³uga cron dla Drupala
123 Group:          Applications/WWW
124 Requires:       %{name} = %{version}-%{release}
125 Requires:       crondaemon
126 Requires:       php-cli >= 3:4.3.3
127
128 %description cron
129 This package contains script which invokes cron hooks for Drupal.
130
131 %description cron -l pl
132 Ten pakiet zawiera skrypt wywo³uj±cy uchwyty crona dla Drupala.
133
134 %package xmlrpc
135 Summary:        XMLRPC server for Drupal
136 Summary(pl):    Serwer XMLRPC dla Drupala
137 Group:          Applications/WWW
138 Requires:       %{name} = %{version}-%{release}
139
140 %description xmlrpc
141 XMLRPC server for Drupal allows other Drupals authorize with your
142 Drupal's user creditentials, this is called Distributed Authentication
143 in Drupal world.
144
145 %description xmlrpc -l pl
146 Serwer XMLRPC dla Drupala pozwala innym Drupalom autoryzowaæ siê z
147 danymi uwierzytelniaj±cymi u¿ytkownika danego Drupala - jest to
148 nazywane rozproszonym uwierzytelnianiem.
149
150 %prep
151 %setup -q
152 %patch0 -p1
153 #%patch1 -p1
154 #%patch2 -p1
155 %patch3 -p1
156 #%patch4 -p1
157 %patch5 -p1
158 %patch6 -p1
159 %patch7 -p1
160
161 #grep -rl 'include_once .includes/' . | xargs sed -i -e '
162 #       s,include_once \(.\)includes/,include_once \1%{_appdir}/includes/,g
163 #'
164
165 find -name '*~' | xargs -r rm -v
166
167 %install
168 rm -rf $RPM_BUILD_ROOT
169 install -d $RPM_BUILD_ROOT{%{_appdir}/{po,modules/po,htdocs/{files,modules}},%{_sysconfdir},/etc/cron.d}
170
171 cp -a *.ico index.php $RPM_BUILD_ROOT%{_appdir}/htdocs
172 cp -a misc $RPM_BUILD_ROOT%{_appdir}/htdocs
173 cp -a xmlrpc.php $RPM_BUILD_ROOT%{_appdir}/htdocs
174
175 cp -a cron.php $RPM_BUILD_ROOT%{_appdir}
176 cp -a modules/* $RPM_BUILD_ROOT%{_appdir}/modules
177 cp -a includes scripts $RPM_BUILD_ROOT%{_appdir}
178 cp -a sites $RPM_BUILD_ROOT%{_sysconfdir}
179
180 cp -a themes $RPM_BUILD_ROOT%{_appdir}/htdocs
181 ln -s htdocs/files $RPM_BUILD_ROOT%{_appdir}/files
182
183 # move .xtmpl/.theme out of htdocs
184 (cd $RPM_BUILD_ROOT%{_appdir}/htdocs && tar cf - --remove-files themes/*/*.{xtmpl,theme}) | tar -xf - -C $RPM_BUILD_ROOT%{_appdir}
185 mv $RPM_BUILD_ROOT%{_appdir}/{htdocs/,}themes/engines
186
187 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
188 install %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.d/%{name}
189
190 %clean
191 rm -rf $RPM_BUILD_ROOT
192
193 %post
194 if [ "$1" = 1 ]; then
195 %banner -e %{name} <<EOF
196 If this is your first install of Drupal, you need to create drupal database:
197 shell$ mysqladmin create drupal
198
199 and import initial schema:
200 shell$ zcat %{_docdir}/%{name}-%{version}/database/database.mysql.gz | mysql drupal
201
202 (anyway, read INSTALL file from documentation).
203
204 EOF
205 fi
206
207 %triggerin -- apache1 >= 1.3.33-2
208 %apache_config_install -v 1 -c %{_sysconfdir}/apache.conf
209
210 %triggerun -- apache1 >= 1.3.33-2
211 %apache_config_uninstall -v 1
212
213 %triggerin -- apache >= 2.0.0
214 %apache_config_install -v 2 -c %{_sysconfdir}/apache.conf
215
216 %triggerun -- apache >= 2.0.0
217 %apache_config_uninstall -v 2
218
219 %files
220 %defattr(644,root,root,755)
221 %doc *.txt database
222
223 %attr(750,root,http) %dir %{_sysconfdir}
224 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
225
226 %attr(750,root,http) %dir %{_sysconfdir}/sites
227 %attr(750,root,http) %dir %{_sysconfdir}/sites/default
228 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sites/default/*
229
230 %dir %{_appdir}
231 %{_appdir}/includes
232 %{_appdir}/modules
233 %{_appdir}/scripts
234 %{_appdir}/themes
235 %{_appdir}/po
236 # symlink
237 %{_appdir}/files
238
239 %dir %{_appdir}/htdocs
240 %{_appdir}/htdocs/*.ico
241 %{_appdir}/htdocs/index.php
242 %{_appdir}/htdocs/misc
243 %{_appdir}/htdocs/themes
244 %{_appdir}/htdocs/modules
245 %dir %attr(775,root,http) %{_appdir}/htdocs/files
246
247 %files cron
248 %defattr(644,root,root,755)
249 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
250 %{_appdir}/cron.php
251
252 %files xmlrpc
253 %defattr(644,root,root,755)
254 %{_appdir}/htdocs/xmlrpc.php
This page took 0.087468 seconds and 4 git commands to generate.