/[packages]/cauldron/owncloud/current/SPECS/owncloud.spec
ViewVC logotype

Contents of /cauldron/owncloud/current/SPECS/owncloud.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 168407 - (show annotations) (download)
Thu Nov 17 16:55:47 2011 UTC (12 years, 5 months ago) by dmorgan
File size: 1297 byte(s)
Requires php-zip
1 %define name owncloud
2 %define version 2.0.0
3 %define date 20110818
4 %define release %mkrel 1
5
6 Summary: Open personal cloud
7 Name: %{name}
8 Version: %{version}
9 Release: %{release}
10 Source0: http://owncloud.org/releases/%{name}-2.tar.bz2
11 License: AGPLv3
12 Group: Monitoring
13 Url: http://owncloud.org/
14 BuildRequires: apache
15 Requires: php >= 4.1
16 Requires: apache
17 Requires: apache-mod_php
18 Requires: php-zip
19 Suggests: php-pear-MDB2_Driver_sqlite
20 BuildArch: noarch
21
22 %description
23 A personal cloud server which runs on you personal server
24 and enables accessing your data from everywhere and sharing
25 with other people.
26
27 %files
28 %attr(-,apache,apache) %_datadir/%name
29 %config(noreplace) %_sysconfdir/httpd/conf/webapps.d/%{name}.conf
30
31 #--------------------------------------------------------------------
32
33
34 %prep
35 %setup -q -n %name
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39
40 mkdir -p %buildroot%_datadir/owncloud
41 (
42 cd %buildroot%_datadir
43 tar xjf %{SOURCE0}
44 )
45
46
47 mkdir -p %buildroot%_sysconfdir/httpd/conf/webapps.d
48 cat > %buildroot%_sysconfdir/httpd/conf/webapps.d/%{name}.conf <<EOF
49 # %{name} configuration
50 Alias /%name %_datadir/%name
51 <Directory %_datadir/%name>
52 Order allow,deny
53 Allow from all
54 </Directory>
55
56 EOF
57

  ViewVC Help
Powered by ViewVC 1.1.30