182 lines
5.6 KiB
RPMSpec
182 lines
5.6 KiB
RPMSpec
%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: 9.1.1
|
|
Release: 1mamba
|
|
Summary: An open source file sync and share software web interface
|
|
Group: Applications/Web
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
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
|
|
<Directory %{installdir}>
|
|
AllowOverride All
|
|
RewriteEngine On
|
|
Require all granted
|
|
</Directory>
|
|
%if "%{?sitename}" != ""
|
|
%if "%(dirname %installdir)" != "%{serverdir}"
|
|
|
|
<VirtualHost *:80>
|
|
%{?adminmail:ServerAdmin %adminmail}
|
|
DocumentRoot %{installdir}
|
|
ServerName %{servername}
|
|
ErrorLog %{serverlogdir}/%{servername}-error_log
|
|
CustomLog %{serverlogdir}/%{servername}-access_log common
|
|
</VirtualHost>
|
|
%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
|
|
* Thu Sep 22 2016 Automatic Build System <autodist@mambasoft.it> 9.1.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Jul 21 2016 Automatic Build System <autodist@mambasoft.it> 9.1.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Jul 20 2016 Automatic Build System <autodist@mambasoft.it> 9.0.4-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Jul 01 2016 Automatic Build System <autodist@mambasoft.it> 9.0.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu May 05 2016 Automatic Build System <autodist@mambasoft.it> 9.0.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Apr 07 2016 Automatic Build System <autodist@mambasoft.it> 9.0.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Mar 08 2016 Automatic Build System <autodist@mambasoft.it> 9.0.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Dec 22 2015 Automatic Build System <autodist@mambasoft.it> 8.2.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Nov 18 2015 Automatic Build System <autodist@mambasoft.it> 8.2.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Oct 20 2015 Automatic Build System <autodist@mambasoft.it> 8.2.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Sep 16 2015 Automatic Build System <autodist@mambasoft.it> 8.1.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Sep 07 2015 Automatic Build System <autodist@mambasoft.it> 8.1.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Aug 11 2015 Automatic Build System <autodist@mambasoft.it> 8.1.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Jul 08 2015 Automatic Build System <autodist@mambasoft.it> 8.1.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Jun 05 2015 Automatic Build System <autodist@mambasoft.it> 8.0.4-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri May 01 2015 Automatic Build System <autodist@mambasoft.it> 8.0.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Mar 11 2015 Automatic Build System <autodist@mambasoft.it> 8.0.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Mar 05 2015 Automatic Build System <autodist@mambasoft.it> 8.0.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Feb 09 2015 Automatic Build System <autodist@mambasoft.it> 8.0.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Dec 10 2014 Automatic Build System <autodist@mambasoft.it> 7.0.4-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Nov 15 2014 Automatic Build System <autodist@mambasoft.it> 7.0.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Aug 28 2014 Automatic Build System <autodist@mambasoft.it> 7.0.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Aug 05 2014 Automatic Build System <autodist@mambasoft.it> 7.0.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Jul 23 2014 Automatic Build System <autodist@mambasoft.it> 7.0.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Jun 30 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 6.0.4-1mamba
|
|
- package created using the webbuild interface
|