From 6e41b0d03dc6015f05693122713708b934631f19 Mon Sep 17 00:00:00 2001 From: rodrigosiqueira Date: Wed, 16 Sep 2015 19:14:50 -0300 Subject: [PATCH] Fix and update colab-spb-theme. --- colab-spb-theme/colab-spb-theme.spec | 51 ++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 36 insertions(+), 15 deletions(-) diff --git a/colab-spb-theme/colab-spb-theme.spec b/colab-spb-theme/colab-spb-theme.spec index e1d4b4d..c0dbe44 100644 --- a/colab-spb-theme/colab-spb-theme.spec +++ b/colab-spb-theme/colab-spb-theme.spec @@ -1,14 +1,34 @@ -Name: colab-spb-theme -Version: 0.2.0 -Release: 1 -Summary: SPB-specific Colab theme -Group: Applications/Publishing -License: GPLv3 -URL: https://portal.softwarepublico.gov.br/gitlab/softwarepublico/colab-spb-theme-plugin -Source0: %{name}-%{version}.tar.gz -BuildArch: noarch -BuildRequires: colab >= 1.11 -Requires: colab >= 1.11 +# +# spec file for package colab-spb-theme +# +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: colab-spb-theme +Version: 0.2.0 +Release: 0 +Summary: SPB-specific Colab theme +License: GPL-3.0 +Group: Applications/Publishing +Url: https://portal.softwarepublico.gov.br/gitlab/softwarepublico/colab-spb-theme-plugin +Source0: %{name}-%{version}.tar.gz +BuildRequires: colab >= 1.11 +BuildRequires: cronie-anacron +Requires: colab >= 1.11 +BuildArch: noarch + %description This package contains Colab theme for Software Público Brasileiro platform. @@ -16,22 +36,23 @@ This package contains Colab theme for Software Público Brasileiro platform. %setup -q %build -make +make %{?_smp_mflags} %install -install -d %{buildroot}/etc/colab/settings.d/ +install -d %{buildroot}%{_sysconfdir}/colab/settings.d/ cat > %{buildroot}/etc/colab/settings.d/spb_theme.py << EOF COLAB_STATICS=['/usr/lib/colab/colab-spb-theme/colab_spb_theme/static'] COLAB_TEMPLATES=('/usr/lib/colab/colab-spb-theme/colab_spb_theme/templates',) EOF -make install DESTDIR=%{buildroot} +make DESTDIR=%{buildroot} install %{?_smp_mflags} %post yes yes | colab-admin collectstatic %files +%defattr(-,root,root) /usr/lib/colab -/etc/colab +%{_sysconfdir}/colab -- libgit2 0.21.2