From e69b1809d34f26469952c3777008f7d6c040f5d7 Mon Sep 17 00:00:00 2001 From: David Carlos Date: Tue, 8 Sep 2015 10:47:38 -0300 Subject: [PATCH] Creates colab-spb-theme-plugin spec. --- colab-spb-theme-plugin/colab-spb-theme-plugin.spec | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+), 0 deletions(-) create mode 100644 colab-spb-theme-plugin/colab-spb-theme-plugin.spec diff --git a/colab-spb-theme-plugin/colab-spb-theme-plugin.spec b/colab-spb-theme-plugin/colab-spb-theme-plugin.spec new file mode 100644 index 0000000..a0e63a5 --- /dev/null +++ b/colab-spb-theme-plugin/colab-spb-theme-plugin.spec @@ -0,0 +1,32 @@ +Name: colab-spb-theme-plugin +Version: 0.2 +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.10 +%description +This package contains Colab theme for Software Público Brasileiro platform. + +%prep +%setup -q + +%build +make + +%install +cat >> %{buildroot}/etc/colab/settings.d/spb_theme.py << EOF +COLAB_STATICS=['%{buildroot}/usr/lib/colab/colab-spb-theme-plugin/src/colab_spb_theme/static'] +COLAB_TEMPLATES=('%{buildroot}/usr/lib/colab/colab-spb-theme-plugin/src/colab_spb_theme/templates',) +EOF + +chmod 0750 root:colab %{buildroot}/etc/colab/settings.d/spb_theme.py +chown root:colab %{buildroot}/etc/colab/settings.d/spb_theme.py + +make install DESTDIR=%{buildroot} + +%files +/usr/lib/colab -- libgit2 0.21.2