Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ussuri & Victoria RPM build update #7

Open
wants to merge 2 commits into
base: rpm-build
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 35 additions & 9 deletions rpmbuild/SPECS/openstack-dashboard-cloudbase-theme.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: openstack-dashboard-cloudbase-theme
Version: 13.0.0
Version: 18.6.1
Release: 0
Summary: Cloudbase Theme for the OpenStack Dashboard (Horizon)

Expand All @@ -9,8 +9,8 @@ Source0: https://github.com/cloudbase/openstack-dashboard-cloudbase-theme
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-buildroot

Provides: openstack-dashboard-cloudbase-theme = 13.0.0
Requires: openstack-dashboard >= 13.0.0
Provides: openstack-dashboard-cloudbase-theme = 18.6.1
Requires: openstack-dashboard >= 18.6.1

%description
Provides a Cloudbase Solutions openstack-dashboard (Horizon) theme and overrides the default one.
Expand Down Expand Up @@ -39,6 +39,26 @@ rm -rf $RPM_BUILD_ROOT
%attr(0644, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/static/bootstrap/_styles.scss"
%attr(0644, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/static/bootstrap/_variable_customizations.scss"
%attr(0644, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/static/bootstrap/_variables.scss"
%dir %attr(0755, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/static/assets/materialdesignicons"
%dir %attr(0755, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/static/assets/materialdesignicons/css"
%attr(0644, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/static/assets/materialdesignicons/css/materialdesignicons.css"
%attr(0644, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/static/assets/materialdesignicons/css/materialdesignicons.css.map"
%attr(0644, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/static/assets/materialdesignicons/css/materialdesignicons.min.css.map"
%attr(0644, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/static/assets/materialdesignicons/css/materialdesignicons.min.css"
%dir %attr(0755, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/static/assets/materialdesignicons/fonts"
%attr(0644, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/static/assets/materialdesignicons/fonts/materialdesignicons-webfont.eot"
%attr(0644, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/static/assets/materialdesignicons/fonts/materialdesignicons-webfont.ttf"
%attr(0644, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/static/assets/materialdesignicons/fonts/materialdesignicons-webfont.woff"
%attr(0644, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/static/assets/materialdesignicons/fonts/materialdesignicons-webfont.woff2"
%dir %attr(0755, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/static/assets/materialdesignicons/scss"
%attr(0644, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/static/assets/materialdesignicons/scss/_animated.scss"
%attr(0644, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/static/assets/materialdesignicons/scss/_core.scss"
%attr(0644, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/static/assets/materialdesignicons/scss/_extras.scss"
%attr(0644, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/static/assets/materialdesignicons/scss/_functions.scss"
%attr(0644, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/static/assets/materialdesignicons/scss/_icons.scss"
%attr(0644, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/static/assets/materialdesignicons/scss/_path.scss"
%attr(0644, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/static/assets/materialdesignicons/scss/_variables.scss"
%attr(0644, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/static/assets/materialdesignicons/scss/materialdesignicons.scss"
%dir %attr(0755, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/static/horizon"
%attr(0644, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/static/horizon/_animations.scss"
%attr(0644, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/static/horizon/_icons.scss"
Expand Down Expand Up @@ -75,8 +95,10 @@ rm -rf $RPM_BUILD_ROOT
%attr(0644, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/templates/header/_header.html"
%dir %attr(0755, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/templates/horizon"
%attr(0644, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/templates/horizon/_sidebar.html"
%exclude /usr/share/openstack-dashboard/openstack_dashboard/local/cloudbase_theme.pyc
%exclude /usr/share/openstack-dashboard/openstack_dashboard/local/cloudbase_theme.pyo
%dir %attr(0755, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/templates/horizon/client_side"
%attr(0644, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/templates/horizon/client_side/_confirm.html"
%attr(0644, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/templates/horizon/client_side/_loading_inline_example.html"
%attr(0644, root, root) "/usr/share/openstack-dashboard/openstack_dashboard/themes/cloudbase/templates/horizon/client_side/_loading_modal_example.html"

%post -p /bin/sh
#!/bin/sh
Expand All @@ -98,8 +120,8 @@ cd /usr/share/openstack-dashboard
echo "Collecting and compressing static assets..."
rm -f /usr/share/openstack-dashboard/openstack_dashboard/local/*.pyc || :
rm -f /usr/share/openstack-dashboard/static/custom/* || :
python manage.py collectstatic --noinput 2>&1 > /dev/null
python manage.py compress --force 2>&1 > /dev/null
python3 manage.py collectstatic --noinput 2>&1 > /dev/null
python3 manage.py compress --force 2>&1 > /dev/null

echo "Restarting apache..."
service httpd restart
Expand All @@ -115,14 +137,18 @@ set -e
echo "Collecting and compressing static assets..."
rm -f /usr/share/openstack-dashboard/openstack_dashboard/local/cloudbase_theme.pyc
rm -f /usr/share/openstack-dashboard/static/custom/* || :
python manage.py collectstatic --noinput 2>&1 > /dev/null
python manage.py compress --force 2>&1 > /dev/null
python3 manage.py collectstatic --noinput 2>&1 > /dev/null
python3 manage.py compress --force 2>&1 > /dev/null
)

echo "Restarting apache..."
service httpd restart

%changelog
* Tue Feb 2 2021 Sergiu Miclea
- 18.6.1 Victoria release
* Tue Feb 2 2021 Sergiu Miclea
- 18.3.2 Ussuri release
* Mon Aug 27 2018 Dorin Paslaru
- 13.0.0 Queens release
* Thu Oct 5 2017 Dorin Paslaru
Expand Down