-
Notifications
You must be signed in to change notification settings - Fork 0
/
drupal.spec
85 lines (68 loc) · 2.54 KB
/
drupal.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#
# $Id$
#
%define name drupal
%define version 4.7
%define taglevel 15
%define minorversion 11
%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
Packager: PlanetLab Central <support@planet-lab.org>
# remain compliant with former planetlab practices
%define drupaldir /var/www/html
Name: %{name}
Version: %{version}
Release: %{release}
Summary: An open-source content-management platform
Group: Applications/Publishing
License: GPLv2+
URL: http://www.drupal.org
Source0: http://ftp.osuosl.org/pub/drupal/files/projects/%{name}-%{version}.%{minorversion}.tar.gz
#Source1: drupal.conf
Source2: drupal-cron
Source3: http://ftp.drupal.org/files/projects/taxonomy_block-4.7.x-1.x-dev.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: php, php-gd, php-mbstring, wget
%description
Equipped with a powerful blend of features, Drupal is a Content Management
System written in PHP that can support a variety of websites ranging from
personal weblogs to large community-driven websites. Drupal is highly
configurable, skinnable, and secure.
%prep
%setup -q -n %{name}-%{version}.%{minorversion} -a 3
%build
mv taxonomy_block modules
%install
rm -rf %{buildroot}
install -d %{buildroot}%{drupaldir}
cp -pr * %{buildroot}%{drupaldir}
cp -pr .htaccess %{buildroot}%{drupaldir}
mkdir -p %{buildroot}%{_docdir}
install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/cron.hourly/drupal
mkdir %{buildroot}%{drupaldir}/files
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc CHANGELOG.txt INSTALL* LICENSE* MAINTAINERS.txt UPGRADE.txt
%{drupaldir}
%config(noreplace) %{drupaldir}/.htaccess
%exclude %{drupaldir}/CHANGELOG.txt
%exclude %{drupaldir}/INSTALL*
%exclude %{drupaldir}/LICENSE*
%exclude %{drupaldir}/MAINTAINERS.txt
%exclude %{drupaldir}/UPGRADE.txt
%config(noreplace) %{drupaldir}/sites/default
%attr(755,root,apache) %{_sysconfdir}/cron.hourly/drupal
%dir %attr(775,root,apache) %{drupaldir}/files
%changelog
* Mon Nov 28 2011 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - drupal-4.7-15
- dual mirror build
* Sun Jul 11 2010 S.Çağlar Onur <caglar@cs.princeton.edu> - drupal-4.7-14
- Use local URL
* Thu Jun 11 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - drupal-4.7-13
- fix build; drupal version not linked to this tagleve;l
* Wed Jun 10 2009 Stephen Soltesz <soltesz@cs.princeton.edu> - drupal-4.7-12
- add taxonomy_block to default install
* Fri Jan 09 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> -
- plain drupal 4.7.11