%define MAJver %(echo %version | cut -d. -f1) Name: seahub Version: 6.2.3 Release: 1mamba Summary: The web end of seafile server Group: Applications/Web Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://seafile.com ## GITSOURCE https://github.com/haiwen/seahub.git v3.1.1-server Source: https://github.com/haiwen/seahub.git/v%{version}-server/seahub-%{version}.tar.bz2 License: Apache License 2.0 ## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-END BuildRequires: python-django15 Requires: python-django15 Requires: python-six Requires: gunicorn017 Requires: python-chardet Requires: python-dateutil Requires: python-djblets Requires: python-django-appconf Requires: python-django_compressor15 Requires: python-django-statici18n11 Requires: python-flup = 1.0.2 Requires: python-openpyxl Requires: django-constance10 Requires: django-picklefield BuildRoot: %{_tmppath}/%{name}-%{version}-root %description The web end of seafile server. %prep %setup -q sed -i "s|django-admin|django15-admin|" i18n.sh %build ./i18n.sh compile-all django_admin=django %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -d -m0755 %{buildroot}%{_datadir}/seafile-server/seahub cp -a * %{buildroot}%{_datadir}/seafile-server/seahub/ find %{buildroot}%{_datadir}/seafile-server/seahub/locale -name *.po -exec rm -f {} \; sed -i "s|SEAFILE_VERSION = .*|SEAFILE_VERSION = '%{version}'|" %{buildroot}%{_datadir}/seafile-server/seahub/seahub/settings.py %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %dir %{_datadir}/seafile-server/seahub %{_datadir}/seafile-server/seahub/* %changelog * Thu Dec 07 2017 Silvan Calarco 6.2.3-1mamba - update to 6.2.3 * Wed Jul 12 2017 Silvan Calarco 6.0.10-1mamba - update to 6.0.10 * Sun Nov 20 2016 Silvan Calarco 5.0.5-4mamba - update with legacy requirements * Sat Apr 16 2016 Silvan Calarco 5.0.5-3mamba - fix fixing SEAFILE_VERSION in settings.py * Fri Apr 08 2016 Silvan Calarco 5.0.5-2mamba - require python-openpyxl and moved under seafile-server dir to avoid symlink * Fri Apr 08 2016 Silvan Calarco 5.0.5-1mamba - update to 5.0.5 * Sun May 24 2015 Silvan Calarco 4.2.0-2mamba - added some python-django requirements * Thu May 14 2015 Silvan Calarco 4.2.0-1mamba - update to 4.2.0 * Thu Jan 22 2015 Silvan Calarco 3.1.7-2mamba - eliminate ugly avatars symlink following change in seafile * Thu Jan 01 2015 Silvan Calarco 3.1.7-1mamba - update to 3.1.7 * Wed Aug 27 2014 Silvan Calarco 3.1.1-2mamba - require legacy gunicorn017 instead of gunicorn - fix broken avatars symlink - install compiled translations * Sat Aug 09 2014 Silvan Calarco 3.1.1-1mamba - package created using the webbuild interface