Commit e69b1809d34f26469952c3777008f7d6c040f5d7
Committed by
Rodrigo Siqueira de Melo
1 parent
679c0bb4
Exists in
master
and in
54 other branches
Creates colab-spb-theme-plugin spec.
Signed-off-by: Carlos Oliveira <carlospecter@gmail.com>
Showing
1 changed file
with
32 additions
and
0 deletions
Show diff stats
| ... | ... | @@ -0,0 +1,32 @@ |
| 1 | +Name: colab-spb-theme-plugin | |
| 2 | +Version: 0.2 | |
| 3 | +Release: 1 | |
| 4 | +Summary: SPB-specific Colab theme | |
| 5 | +Group: Applications/Publishing | |
| 6 | +License: GPLv3 | |
| 7 | +URL: https://portal.softwarepublico.gov.br/gitlab/softwarepublico/colab-spb-theme-plugin | |
| 8 | +Source0: %{name}-%{version}.tar.gz | |
| 9 | +BuildArch: noarch | |
| 10 | +BuildRequires: colab >= 1.10 | |
| 11 | +%description | |
| 12 | +This package contains Colab theme for Software Público Brasileiro platform. | |
| 13 | + | |
| 14 | +%prep | |
| 15 | +%setup -q | |
| 16 | + | |
| 17 | +%build | |
| 18 | +make | |
| 19 | + | |
| 20 | +%install | |
| 21 | +cat >> %{buildroot}/etc/colab/settings.d/spb_theme.py << EOF | |
| 22 | +COLAB_STATICS=['%{buildroot}/usr/lib/colab/colab-spb-theme-plugin/src/colab_spb_theme/static'] | |
| 23 | +COLAB_TEMPLATES=('%{buildroot}/usr/lib/colab/colab-spb-theme-plugin/src/colab_spb_theme/templates',) | |
| 24 | +EOF | |
| 25 | + | |
| 26 | +chmod 0750 root:colab %{buildroot}/etc/colab/settings.d/spb_theme.py | |
| 27 | +chown root:colab %{buildroot}/etc/colab/settings.d/spb_theme.py | |
| 28 | + | |
| 29 | +make install DESTDIR=%{buildroot} | |
| 30 | + | |
| 31 | +%files | |
| 32 | +/usr/lib/colab | ... | ... |