]> git.pld-linux.org Git - packages/drupal.git/blob - drupal.spec
- unify macros
[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.3
5 Release:        0.22
6 License:        GPL
7 Group:          Applications/WWW
8 Source0:        http://drupal.org/files/projects/%{name}-%{version}.tar.gz
9 # Source0-md5:  f436973f02aa2cea15ef1ca90223082b
10 Source1:        %{name}.conf
11 Source2:        %{name}.cron
12 Source3:        %{name}.PLD
13 Patch3:         %{name}-replication.patch
14 Patch5:         %{name}-sitesdir.patch
15 Patch6:         %{name}-topdir.patch
16 Patch7:         %{name}-themedir2.patch
17 Patch8:         %{name}-emptypass.patch
18 URL:            http://drupal.org/
19 BuildRequires:  rpmbuild(macros) >= 1.194
20 BuildRequires:  sed >= 4.0
21 Requires:       apache >= 1.3.33-3
22 Requires:       apache(mod_dir)
23 Requires:       apache(mod_access)
24 Requires:       apache(mod_expires)
25 Requires:       apache(mod_rewrite)
26 Requires:       apache(mod_alias)
27 Requires:       php >= 3:4.3.3
28 Requires:       php-mysql
29 Requires:       php-pcre
30 #Requires:      php-pgsql
31 Requires:       php-xml
32 BuildArch:      noarch
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %define         _appdir         %{_datadir}/%{name}
36 %define         _sysconfdir     /etc/%{name}
37
38 %description
39 Drupal is software that allows an individual or a community of users
40 to easily publish, manage and organize a great variety of content on a
41 website. Tens of thousands of people and organizations have used
42 Drupal to set up scores of different kinds of web sites, including
43 - community web portals and discussion sites
44 - corporate web sites/intranet portals
45 - personal web sites
46 - afficionado sites
47 - e-commerce applications
48 - resource directories
49
50 Drupal includes features to enable
51 - content management systems
52 - blogs
53 - collaborative authoring environments
54 - forums
55 - newsletters
56 - picture galleries
57 - file uploads and download
58
59 and much more.
60
61 %description -l pl
62 Drupal to oprogramowanie pozwalaj±ce osobie lub spo³eczno¶ci
63 u¿ytkowników na ³atwe publikowanie, zarz±dzanie i organizowanie ró¿nej
64 tre¶ci na stronie WWW. Dziesi±tki tysiêcy ludzi i organizacji u¿ywali
65 Drupala do ustawiania wyników ró¿nych rodzajów stron WWW, w tym:
66 - portale WWW i strony dyskusyjne spo³eczno¶ci
67 - korporacyjne strony WWW/portale intranetowe
68 - osobiste strony WWW
69 - strony mi³o¶ników
70 - aplikacje e-commerce
71 - s³owniki zasobów
72
73 Drupal zawiera zasoby umo¿liwiaj±ce tworzenie:
74 - systemów zarz±dzania tre¶ci±
75 - blogów
76 - ¶rodowisk pracy grupowej
77 - forów
78 - nowin
79 - galerii zdjêæ
80 - wrzucania i ¶ci±gania plików
81
82 i wiele wiêcej.
83
84 %package cron
85 Summary:        Drupal cron
86 Summary(pl):    Us³uga cron dla Drupala
87 Group:          Applications/WWW
88 Requires:       %{name} = %{version}-%{release}
89 Requires:       crondaemon
90 Requires:       php-cli >= 3:4.3.3
91
92 %description cron
93 This package contains script which invokes cron hooks for Drupal.
94
95 %description cron -l pl
96 Ten pakiet zawiera skrypt wywo³uj±cy uchwyty crona dla Drupala.
97
98 %package xmlrpc
99 Summary:        XMLRPC server for Drupal
100 Summary(pl):    Serwer XMLRPC dla Drupala
101 Group:          Applications/WWW
102 Requires:       %{name} = %{version}-%{release}
103
104 %description xmlrpc
105 XMLRPC server for Drupal allows other Drupals authorize with your
106 Drupal's user creditentials, this is called Distributed Authentication
107 in Drupal world.
108
109 %description xmlrpc -l pl
110 Serwer XMLRPC dla Drupala pozwala innym Drupalom autoryzowaæ siê z
111 danymi uwierzytelniaj±cymi u¿ytkownika danego Drupala - jest to
112 nazywane rozproszonym uwierzytelnianiem.
113
114 %prep
115 %setup -q
116 %patch3 -p1
117 %patch5 -p1
118 %patch6 -p1
119 %patch7 -p1
120 %patch8 -p1
121
122 find -name '*~' | xargs -r rm -v
123 cp %{SOURCE3} README.PLD
124
125 %install
126 rm -rf $RPM_BUILD_ROOT
127 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/cron.d,/var/{cache,lib}/%{name}} \
128         $RPM_BUILD_ROOT%{_appdir}/{po,modules/po,htdocs/modules}
129
130 cp -a *.ico index.php $RPM_BUILD_ROOT%{_appdir}/htdocs
131 cp -a misc $RPM_BUILD_ROOT%{_appdir}/htdocs
132 cp -a xmlrpc.php $RPM_BUILD_ROOT%{_appdir}/htdocs
133
134 cp -a cron.php $RPM_BUILD_ROOT%{_appdir}
135 cp -a modules/* $RPM_BUILD_ROOT%{_appdir}/modules
136 cp -a includes scripts $RPM_BUILD_ROOT%{_appdir}
137 cp -a sites $RPM_BUILD_ROOT%{_sysconfdir}
138
139 ln -s /var/lib/%{name} $RPM_BUILD_ROOT%{_appdir}/files
140
141 # install themes
142 cp -a themes $RPM_BUILD_ROOT%{_appdir}/htdocs
143 # move .xtmpl/.theme out of htdocs
144 (cd $RPM_BUILD_ROOT%{_appdir}/htdocs && tar cf - --remove-files themes/*/*.{xtmpl,theme}) | tar -xf - -C $RPM_BUILD_ROOT%{_appdir}
145 mv $RPM_BUILD_ROOT%{_appdir}/{htdocs/,}themes/engines
146 # make screenshot.png available in appdir
147 for a in $RPM_BUILD_ROOT%{_appdir}/htdocs/themes/*; do
148         t=$(basename $a)
149         ln -s ../../htdocs/themes/$t/screenshot.png $RPM_BUILD_ROOT%{_appdir}/themes/$t
150 done
151
152 # a hack
153 s=themes/chameleon/marvin
154 ln -s ../../htdocs/$s $RPM_BUILD_ROOT%{_appdir}/$s
155
156 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
157 install %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.d/%{name}
158
159 %clean
160 rm -rf $RPM_BUILD_ROOT
161
162 %post
163 if [ "$1" = 1 ]; then
164 %banner -e %{name} <<EOF
165 If this is your first install of Drupal, you need to create drupal database:
166 mysqladmin create drupal
167
168 and import initial schema:
169 zcat %{_docdir}/%{name}-%{version}/database/database.mysql.gz | mysql drupal
170
171 Also read INSTALL from documentation!
172
173 EOF
174 fi
175
176 %triggerin -- apache1 >= 1.3.33-2
177 %apache_config_install -v 1 -c %{_sysconfdir}/apache.conf
178
179 %triggerun -- apache1 >= 1.3.33-2
180 %apache_config_uninstall -v 1
181
182 %triggerin -- apache >= 2.0.0
183 %apache_config_install -v 2 -c %{_sysconfdir}/apache.conf
184
185 %triggerun -- apache >= 2.0.0
186 %apache_config_uninstall -v 2
187
188 %files
189 %defattr(644,root,root,755)
190 %doc *.txt database README.replication README.PLD
191
192 %attr(750,root,http) %dir %{_sysconfdir}
193 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
194
195 %attr(750,root,http) %dir %{_sysconfdir}/sites
196 %attr(750,root,http) %dir %{_sysconfdir}/sites/default
197 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sites/default/*
198
199 %dir %{_appdir}
200 %{_appdir}/includes
201 %{_appdir}/modules
202 %{_appdir}/scripts
203 %{_appdir}/themes
204 %{_appdir}/po
205 # symlink
206 %{_appdir}/files
207
208 %dir %{_appdir}/htdocs
209 %{_appdir}/htdocs/*.ico
210 %{_appdir}/htdocs/index.php
211 %{_appdir}/htdocs/misc
212 %{_appdir}/htdocs/themes
213 %{_appdir}/htdocs/modules
214
215 %dir %attr(775,root,http) /var/lib/%{name}
216 %dir %attr(775,root,http) /var/cache/%{name}
217
218 %files cron
219 %defattr(644,root,root,755)
220 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
221 %{_appdir}/cron.php
222
223 %files xmlrpc
224 %defattr(644,root,root,755)
225 %{_appdir}/htdocs/xmlrpc.php
This page took 0.143067 seconds and 3 git commands to generate.