]> git.pld-linux.org Git - packages/drupal.git/blob - drupal.spec
- add apache config
[packages/drupal.git] / drupal.spec
1 Summary:        Open source content management platform
2 Name:           drupal
3 Version:        4.6.0
4 Release:        0.2
5 Epoch:          0
6 License:        GPL
7 Group:          Applications/WWW
8 Source0:        http://drupal.org/files/projects/%{name}-%{version}.tar.gz
9 # Source0-md5:  cba80c4f511284b09d6a0a2def5cb250
10 Source1:        %{name}.conf
11 URL:            http://drupal.org/
12 BuildArch:      noarch
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %define         _appdir         %{_datadir}/%{name}
16 %define         _sysconfdir     /etc/%{name}
17
18 %description
19 Drupal is software that allows an individual or a community of users
20 to easily publish, manage and organize a great variety of content on a
21 website. Tens of thousands of people and organizations have used
22 Drupal to set up scores of different kinds of web sites, including
23 - community web portals and discussion sites
24 - corporate web sites/intranet portals
25 - personal web sites
26 - afficionado sites
27 - e-commerce applications
28 - resource directories
29
30 Drupal includes features to enable
31 - content management systems
32 - blogs
33 - collaborative authoring environments
34 - forums
35 - newsletters
36 - picture galleries
37 - file uploads and download
38
39 and much more.
40
41 %prep
42 %setup -q
43
44 %build
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT{%{_appdir}/htdocs,%{_sysconfdir}}
49
50 cp -a *.ico index.php $RPM_BUILD_ROOT%{_appdir}/htdocs
51 cp -a themes misc $RPM_BUILD_ROOT%{_appdir}/htdocs
52
53 cp -a cron.php $RPM_BUILD_ROOT%{_appdir}
54 cp -a includes modules scripts sites $RPM_BUILD_ROOT%{_appdir}
55
56 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache-%{name}.conf
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %triggerin -- apache1 >= 1.3.33-2
62 %apache_config_install -v 1 -c %{_sysconfdir}/apache-%{name}.conf
63
64 %triggerun -- apache1 >= 1.3.33-2
65 %apache_config_uninstall -v 1
66
67 %triggerin -- apache >= 2.0.0
68 %apache_config_install -v 2 -c %{_sysconfdir}/apache-%{name}.conf
69
70 %triggerun -- apache >= 2.0.0
71 %apache_config_uninstall -v 2
72
73 %files
74 %defattr(644,root,root,755)
75 %doc *.txt database
76
77 %attr(750,root,http) %dir %{_sysconfdir}
78 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache-%{name}.conf
79
80 %dir %{_appdir}
81 %{_appdir}/*.php
82 %{_appdir}/htdocs
83 %{_appdir}/includes
84 %{_appdir}/modules
85 %{_appdir}/scripts
86 %{_appdir}/sites
This page took 0.042284 seconds and 4 git commands to generate.