Commit 0f93e86b9f86fcfdfa9166fb546a10ca30de52ac
1 parent
51c46355
Exists in
spec_refactor
Adds new macros to colab-spb-theme
Showing
1 changed file
with
5 additions
and
3 deletions
Show diff stats
src/pkg-rpm/colab-spb-theme/colab-spb-theme.spec
... | ... | @@ -10,6 +10,8 @@ Source0: %{name}-%{version}.tar.gz |
10 | 10 | Requires: colab >= 1.11 |
11 | 11 | BuildArch: noarch |
12 | 12 | |
13 | +%global _colabdepsdir /usr/lib/colab | |
14 | + | |
13 | 15 | %description |
14 | 16 | This package contains Colab theme for Software Público Brasileiro platform. |
15 | 17 | |
... | ... | @@ -24,8 +26,8 @@ make %{?_smp_mflags} |
24 | 26 | install -d %{buildroot}%{_sysconfdir}/colab/settings.d/ |
25 | 27 | |
26 | 28 | cat > %{buildroot}/etc/colab/settings.d/spb_theme.py << EOF |
27 | -COLAB_STATICS=['/usr/lib/colab/colab-spb-theme/colab_spb_theme/static'] | |
28 | -COLAB_TEMPLATES=('/usr/lib/colab/colab-spb-theme/colab_spb_theme/templates',) | |
29 | +COLAB_STATICS=['%{_colabdepsdir}/colab-spb-theme/colab_spb_theme/static'] | |
30 | +COLAB_TEMPLATES=('%{_colabdepsdir}/colab-spb-theme/colab_spb_theme/templates',) | |
29 | 31 | EOF |
30 | 32 | |
31 | 33 | make DESTDIR=%{buildroot} install %{?_smp_mflags} |
... | ... | @@ -35,5 +37,5 @@ yes yes | colab-admin collectstatic |
35 | 37 | |
36 | 38 | %files |
37 | 39 | %defattr(-,root,root) |
38 | -/usr/lib/colab | |
40 | +%{_colabdepsdir} | |
39 | 41 | %{_sysconfdir}/colab | ... | ... |