]> git.pld-linux.org Git - packages/drupal.git/blob - drupal.spec
498f7056543423ce248ccd7ad9bf7ca74f230760
[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.7
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}/htdocs/files,%{_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 includes modules scripts $RPM_BUILD_ROOT%{_appdir}
162 cp -a sites $RPM_BUILD_ROOT%{_sysconfdir}
163
164 cp -a themes $RPM_BUILD_ROOT%{_appdir}/htdocs
165
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
169
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
173
174 %clean
175 rm -rf $RPM_BUILD_ROOT
176
177 %post
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
182
183 and import initial schema:
184 shell$ zcat %{_docdir}/%{name}-%{version}/database/database.mysql.gz | mysql drupal
185
186 (anyway, read INSTALL file from documentation).
187
188 EOF
189 fi
190
191 %triggerin -- apache1 >= 1.3.33-2
192 %apache_config_install -v 1 -c %{_sysconfdir}/apache-%{name}.conf
193
194 %triggerun -- apache1 >= 1.3.33-2
195 %apache_config_uninstall -v 1
196
197 %triggerin -- apache >= 2.0.0
198 %apache_config_install -v 2 -c %{_sysconfdir}/apache-%{name}.conf
199
200 %triggerun -- apache >= 2.0.0
201 %apache_config_uninstall -v 2
202
203 %files
204 %defattr(644,root,root,755)
205 %doc *.txt database
206
207 %attr(750,root,http) %dir %{_sysconfdir}
208 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache-%{name}.conf
209
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/*
213
214 %dir %{_appdir}
215 %{_appdir}/includes
216 %{_appdir}/modules
217 %{_appdir}/scripts
218 %{_appdir}/themes
219
220 %dir %{_appdir}/htdocs
221 %{_appdir}/htdocs/*.*
222 %{_appdir}/htdocs/misc
223 %{_appdir}/htdocs/themes
224 %dir %attr(775,root,http) %{_appdir}/htdocs/files
225
226 %files cron
227 %defattr(644,root,root,755)
228 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
229 %{_appdir}/cron.php
This page took 0.12202 seconds and 3 git commands to generate.