From 50916c19dec94b3cf326bf9f5a09c2fc7b4753b8 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 08:20:12 +0100 Subject: [PATCH] package created using the webbuild interface [release 6.0.4-1mamba;Mon Jun 30 2014] --- README.md | 2 + owncloud.spec | 109 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 111 insertions(+) create mode 100644 owncloud.spec diff --git a/README.md b/README.md index 3d35cf3..addeb20 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # owncloud +ownCloud is an open source file sync and share software web interface. + diff --git a/owncloud.spec b/owncloud.spec new file mode 100644 index 0000000..9c1ee3c --- /dev/null +++ b/owncloud.spec @@ -0,0 +1,109 @@ +%define serverdir %(apxs -q htdocsdir 2>/dev/null) +# To create a customized installation: +# autospec -u owncloud -a5 \ +# -d "installdir=%serverdir/../www.example.com, \ +# sitename=example, \ +# adminmail=webmaster@example.com" + +%if "%{?installdir}" == "" +%define installdir %{serverdir}/owncloud +%endif + +%if "%{?sitename}" != "" +%if "%{?servername}" == "" +%define servername %(basename %installdir 2>/dev/null) +%endif +%define serverlogdir %(apxs -q logfiledir 2>/dev/null) +%else +%if "%{?aliasdir}" == "" +%define aliasdir /owncloud +%endif +%endif + +Name: %{?sitename:%sitename-website-}owncloud +Version: 6.0.4 +Release: 1mamba +Summary: An open source file sync and share software web interface +Group: Applications/Web +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://owncloud.org/ +Source: https://download.owncloud.org/community/owncloud-%{version}.tar.bz2 +License: GPL +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +ownCloud is an open source file sync and share software web interface. + +%prep +%setup -q -n %{name} + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -d %{buildroot}%{installdir} +cp -a * %{buildroot}%{installdir} +cp .htaccess %{buildroot}%{installdir} + +install -d %{buildroot}%{_sysconfdir}/httpd/httpd.d +%if "%{?sitename}" != "" +cat > %{buildroot}%{_sysconfdir}/httpd/httpd.d/%{servername}.conf << EOF +%else +cat > %{buildroot}%{_sysconfdir}/httpd/httpd.d/%{name}.conf << EOF +%endif +%if "%{?sitename}" == "" +%if "%(dirname %installdir)" != "%{serverdir}" +Alias %{aliasdir} %{installdir} + +%endif +%endif + +AllowOverride All +RewriteEngine On +Require all granted + +%if "%{?sitename}" != "" +%if "%(dirname %installdir)" != "%{serverdir}" + + +%{?adminmail:ServerAdmin %adminmail} +DocumentRoot %{installdir} +ServerName %{servername} +ErrorLog %{serverlogdir}/%{servername}-error_log +CustomLog %{serverlogdir}/%{servername}-access_log common + +%endif +%endif +EOF + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post +if [ $1 -ge 1 ]; then +[ -e %{_localstatedir}/lock/subsys/httpd ] && service httpd reload || : +fi +: + +%files +%defattr(-,root,root) +%if "%{?sitename}" != "" +%config(noreplace) %{_sysconfdir}/httpd/httpd.d/%{servername}.conf +%else +%config(noreplace) %{_sysconfdir}/httpd/httpd.d/%{name}.conf +%endif +%attr(-,apache,nobody) %dir %{installdir} +%attr(-,apache,nobody) %{installdir}/.htaccess +%attr(-,apache,nobody) %{installdir}/* +%doc AUTHORS +## note: eventually add the remaining documents (if any) +# + +%changelog +* Mon Jun 30 2014 Silvan Calarco 6.0.4-1mamba +- package created using the webbuild interface