]> git.pld-linux.org Git - packages/drupal.git/blob - drupal.spec
- include files symlink (core still needs it)
[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.14
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 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
33 Requires:       php-mysql
34 Requires:       php-pcre
35 #Requires:      php-pgsql
36 Requires:       php-xml
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
70 BuildArch:      noarch
71 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
72
73 %define         _appdir         %{_datadir}/%{name}
74 %define         _sysconfdir     /etc/%{name}
75
76 %description
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
83 - personal web sites
84 - afficionado sites
85 - e-commerce applications
86 - resource directories
87
88 Drupal includes features to enable
89 - content management systems
90 - blogs
91 - collaborative authoring environments
92 - forums
93 - newsletters
94 - picture galleries
95 - file uploads and download
96
97 and much more.
98
99 %description -l pl
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
107 - strony mi³o¶ników
108 - aplikacje e-commerce
109 - s³owniki zasobów
110
111 Drupal zawiera zasoby umo¿liwiaj±ce tworzenie:
112 - systemów zarz±dzania tre¶ci±
113 - blogów
114 - ¶rodowisk pracy grupowej
115 - forów
116 - nowin
117 - galerii zdjêæ
118 - wrzucania i ¶ci±gania plików
119
120 i wiele wiêcej.
121
122 %package cron
123 Summary:        Drupal cron
124 Summary(pl):    Us³uga cron dla Drupala
125 Group:          Applications/WWW
126 Requires:       %{name} = %{version}-%{release}
127 Requires:       crondaemon
128 Requires:       php-cli >= 3:4.3.3
129
130 %description cron
131 This package contains script which invokes cron hooks for Drupal.
132
133 %description cron -l pl
134 Ten pakiet zawiera skrypt wywo³uj±cy uchwyty crona dla Drupala.
135
136 %prep
137 %setup -q
138 %patch0 -p1
139 #%patch1 -p1
140 #%patch2 -p1
141 %patch3 -p1
142 #%patch4 -p1
143 %patch5 -p1
144 %patch6 -p1
145 %patch7 -p1
146
147 #grep -rl 'include_once .includes/' . | xargs sed -i -e '
148 #       s,include_once \(.\)includes/,include_once \1%{_appdir}/includes/,g
149 #'
150
151 find -name '*~' | xargs -r rm -v
152
153 %install
154 rm -rf $RPM_BUILD_ROOT
155 install -d $RPM_BUILD_ROOT{%{_appdir}/{po,modules/po,htdocs/{files,modules}},%{_sysconfdir},/etc/cron.d}
156
157 cp -a *.ico index.php $RPM_BUILD_ROOT%{_appdir}/htdocs
158 cp -a misc $RPM_BUILD_ROOT%{_appdir}/htdocs
159
160 cp -a cron.php $RPM_BUILD_ROOT%{_appdir}
161 cp -a modules/* $RPM_BUILD_ROOT%{_appdir}/modules
162 cp -a includes scripts $RPM_BUILD_ROOT%{_appdir}
163 cp -a sites $RPM_BUILD_ROOT%{_sysconfdir}
164
165 cp -a themes $RPM_BUILD_ROOT%{_appdir}/htdocs
166 ln -s htdocs/files $RPM_BUILD_ROOT%{_appdir}/files
167
168 # move .xtmpl/.theme out of htdocs
169 (cd $RPM_BUILD_ROOT%{_appdir}/htdocs && tar cf - --remove-files themes/*/*.{xtmpl,theme}) | tar -xf - -C $RPM_BUILD_ROOT%{_appdir}
170 mv $RPM_BUILD_ROOT%{_appdir}/{htdocs/,}themes/engines
171
172 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache-%{name}.conf
173 install %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.d/%{name}
174 install %{SOURCE3} $RPM_BUILD_ROOT%{_appdir}/htdocs
175
176 %clean
177 rm -rf $RPM_BUILD_ROOT
178
179 %post
180 if [ "$1" = 1 ]; then
181 %banner -e %{name} <<EOF
182 If this is your first install of Drupal, you need to create drupal database:
183 shell$ mysqladmin create drupal
184
185 and import initial schema:
186 shell$ zcat %{_docdir}/%{name}-%{version}/database/database.mysql.gz | mysql drupal
187
188 (anyway, read INSTALL file from documentation).
189
190 EOF
191 fi
192
193 %triggerin -- apache1 >= 1.3.33-2
194 %apache_config_install -v 1 -c %{_sysconfdir}/apache-%{name}.conf
195
196 %triggerun -- apache1 >= 1.3.33-2
197 %apache_config_uninstall -v 1
198
199 %triggerin -- apache >= 2.0.0
200 %apache_config_install -v 2 -c %{_sysconfdir}/apache-%{name}.conf
201
202 %triggerun -- apache >= 2.0.0
203 %apache_config_uninstall -v 2
204
205 %files
206 %defattr(644,root,root,755)
207 %doc *.txt database
208
209 %attr(750,root,http) %dir %{_sysconfdir}
210 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache-%{name}.conf
211
212 %attr(750,root,http) %dir %{_sysconfdir}/sites
213 %attr(750,root,http) %dir %{_sysconfdir}/sites/default
214 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sites/default/*
215
216 %dir %{_appdir}
217 %{_appdir}/includes
218 %{_appdir}/modules
219 %{_appdir}/scripts
220 %{_appdir}/themes
221 %{_appdir}/po
222 # symlink
223 %{_appdir}/files
224
225 %dir %{_appdir}/htdocs
226 %{_appdir}/htdocs/*.*
227 %{_appdir}/htdocs/misc
228 %{_appdir}/htdocs/themes
229 %{_appdir}/htdocs/modules
230 %dir %attr(775,root,http) %{_appdir}/htdocs/files
231
232 %files cron
233 %defattr(644,root,root,755)
234 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
235 %{_appdir}/cron.php
This page took 0.065509 seconds and 4 git commands to generate.