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