From 6bb6402af1d5ae55d29be38d000b527342bca2f8 Mon Sep 17 00:00:00 2001 From: Dmitry Burmistrov Date: Fri, 20 Jun 2014 22:46:17 +0400 Subject: [PATCH] Update RPM specs to v. 2014.1.1 Change-Id: If4708033ff89b028c6e0ac868d88b1567a696bfa --- ...t-access-the-net-while-building-docs.patch | 2 +- .../0002-disable-debug-move-web-root.patch | 6 +- ...location-to-tmp-and-also-add-localho.patch | 4 +- ...a-customization-module-based-on-RHOS.patch | 4 +- ...-files-and-checks-to-etc-openstack-d.patch | 23 +-- ...e-SECRET_KEY-secret_key_store-to-tmp.patch | 4 +- .../0007-RCUE-navbar-and-login-screen.patch | 4 +- ...k-for-redhat-openstack-access-plugin.patch | 2 +- rpm/SOURCES/0009-fix-flake8-issues.patch | 31 ++++ ...010-remove-runtime-dep-to-python-pbr.patch | 33 ++++ ...ange-password-link-to-the-RCUE-theme.patch | 26 +++ .../0012-Re-enable-offline-compression.patch | 22 +++ .../openstack-dashboard-httpd-2.4.conf | 0 .../openstack-dashboard-httpd-logging.conf | 0 rpm/SOURCES/openstack-dashboard.conf | 0 rpm/SPECS/python-django-horizon.spec | 148 ++++++------------ 16 files changed, 180 insertions(+), 129 deletions(-) mode change 100755 => 100644 rpm/SOURCES/0001-Don-t-access-the-net-while-building-docs.patch mode change 100755 => 100644 rpm/SOURCES/0002-disable-debug-move-web-root.patch mode change 100755 => 100644 rpm/SOURCES/0003-change-lockfile-location-to-tmp-and-also-add-localho.patch mode change 100755 => 100644 rpm/SOURCES/0004-Add-a-customization-module-based-on-RHOS.patch mode change 100755 => 100644 rpm/SOURCES/0005-move-RBAC-policy-files-and-checks-to-etc-openstack-d.patch mode change 100755 => 100644 rpm/SOURCES/0006-move-SECRET_KEY-secret_key_store-to-tmp.patch mode change 100755 => 100644 rpm/SOURCES/0007-RCUE-navbar-and-login-screen.patch mode change 100755 => 100644 rpm/SOURCES/0008-Added-a-hook-for-redhat-openstack-access-plugin.patch create mode 100644 rpm/SOURCES/0009-fix-flake8-issues.patch create mode 100644 rpm/SOURCES/0010-remove-runtime-dep-to-python-pbr.patch create mode 100644 rpm/SOURCES/0011-Add-Change-password-link-to-the-RCUE-theme.patch create mode 100644 rpm/SOURCES/0012-Re-enable-offline-compression.patch mode change 100755 => 100644 rpm/SOURCES/openstack-dashboard-httpd-2.4.conf mode change 100755 => 100644 rpm/SOURCES/openstack-dashboard-httpd-logging.conf mode change 100755 => 100644 rpm/SOURCES/openstack-dashboard.conf mode change 100755 => 100644 rpm/SPECS/python-django-horizon.spec diff --git a/rpm/SOURCES/0001-Don-t-access-the-net-while-building-docs.patch b/rpm/SOURCES/0001-Don-t-access-the-net-while-building-docs.patch old mode 100755 new mode 100644 index eaf3c0f..168ec46 --- a/rpm/SOURCES/0001-Don-t-access-the-net-while-building-docs.patch +++ b/rpm/SOURCES/0001-Don-t-access-the-net-while-building-docs.patch @@ -1,4 +1,4 @@ -From 0b41644eb78bd8ab8ca97b35d32239f3b46f710d Mon Sep 17 00:00:00 2001 +From e2f1e3f041c4be41902b7bcf83c539563002bf95 Mon Sep 17 00:00:00 2001 From: Matthias Runge Date: Fri, 5 Apr 2013 10:16:19 +0200 Subject: [PATCH] Don't access the net while building docs (Note this hasn't diff --git a/rpm/SOURCES/0002-disable-debug-move-web-root.patch b/rpm/SOURCES/0002-disable-debug-move-web-root.patch old mode 100755 new mode 100644 index 62dcd7e..66ca32a --- a/rpm/SOURCES/0002-disable-debug-move-web-root.patch +++ b/rpm/SOURCES/0002-disable-debug-move-web-root.patch @@ -1,4 +1,4 @@ -From d5a0d055ffeea44429ec2eb19c1038d091b89683 Mon Sep 17 00:00:00 2001 +From 80970e01b002c06fe1152d602b72ef2bc24d377d Mon Sep 17 00:00:00 2001 From: Matthias Runge Date: Fri, 5 Apr 2013 10:07:53 +0200 Subject: [PATCH] disable debug, move web root @@ -9,7 +9,7 @@ Subject: [PATCH] disable debug, move web root 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/openstack_dashboard/local/local_settings.py.example b/openstack_dashboard/local/local_settings.py.example -index 74f7bf8..169fd93 100644 +index 20b56c3..96d2cde 100644 --- a/openstack_dashboard/local/local_settings.py.example +++ b/openstack_dashboard/local/local_settings.py.example @@ -4,7 +4,7 @@ from django.utils.translation import ugettext_lazy as _ @@ -22,7 +22,7 @@ index 74f7bf8..169fd93 100644 # Required for Django 1.5. diff --git a/openstack_dashboard/settings.py b/openstack_dashboard/settings.py -index 6392edf..a0091b2 100644 +index f253e0f..2fee751 100644 --- a/openstack_dashboard/settings.py +++ b/openstack_dashboard/settings.py @@ -31,7 +31,7 @@ warnings.formatwarning = lambda message, category, *args, **kwargs: \ diff --git a/rpm/SOURCES/0003-change-lockfile-location-to-tmp-and-also-add-localho.patch b/rpm/SOURCES/0003-change-lockfile-location-to-tmp-and-also-add-localho.patch old mode 100755 new mode 100644 index e136ec0..114e698 --- a/rpm/SOURCES/0003-change-lockfile-location-to-tmp-and-also-add-localho.patch +++ b/rpm/SOURCES/0003-change-lockfile-location-to-tmp-and-also-add-localho.patch @@ -1,4 +1,4 @@ -From 7c40cd2d3c625c10ef8913b70baa642838b90697 Mon Sep 17 00:00:00 2001 +From cb690db5b3278652a3176fac06e0b9af20ed449d Mon Sep 17 00:00:00 2001 From: Matthias Runge Date: Thu, 25 Jul 2013 11:32:38 +0200 Subject: [PATCH] change lockfile location to '/tmp' and also add localhost to @@ -9,7 +9,7 @@ Subject: [PATCH] change lockfile location to '/tmp' and also add localhost to 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openstack_dashboard/local/local_settings.py.example b/openstack_dashboard/local/local_settings.py.example -index 169fd93..61cf4b1 100644 +index 96d2cde..d0fd2a7 100644 --- a/openstack_dashboard/local/local_settings.py.example +++ b/openstack_dashboard/local/local_settings.py.example @@ -12,7 +12,7 @@ TEMPLATE_DEBUG = DEBUG diff --git a/rpm/SOURCES/0004-Add-a-customization-module-based-on-RHOS.patch b/rpm/SOURCES/0004-Add-a-customization-module-based-on-RHOS.patch old mode 100755 new mode 100644 index a6a85d0..cbb4e64 --- a/rpm/SOURCES/0004-Add-a-customization-module-based-on-RHOS.patch +++ b/rpm/SOURCES/0004-Add-a-customization-module-based-on-RHOS.patch @@ -1,4 +1,4 @@ -From ec495b6474ad6c5db173246f135f0727b3284a78 Mon Sep 17 00:00:00 2001 +From fa7c650c0ae0a8d896672186af7dce191c6e819b Mon Sep 17 00:00:00 2001 From: Matthias Runge Date: Thu, 14 Feb 2013 12:55:54 +0100 Subject: [PATCH] Add a customization module based on RHOS @@ -28,7 +28,7 @@ Conflicts: create mode 100644 openstack_dashboard_theme/templates/splash.html diff --git a/openstack_dashboard/settings.py b/openstack_dashboard/settings.py -index a0091b2..d8f0219 100644 +index 2fee751..92d1e7d 100644 --- a/openstack_dashboard/settings.py +++ b/openstack_dashboard/settings.py @@ -119,14 +119,13 @@ TEMPLATE_CONTEXT_PROCESSORS = ( diff --git a/rpm/SOURCES/0005-move-RBAC-policy-files-and-checks-to-etc-openstack-d.patch b/rpm/SOURCES/0005-move-RBAC-policy-files-and-checks-to-etc-openstack-d.patch old mode 100755 new mode 100644 index b2b088b..34b6552 --- a/rpm/SOURCES/0005-move-RBAC-policy-files-and-checks-to-etc-openstack-d.patch +++ b/rpm/SOURCES/0005-move-RBAC-policy-files-and-checks-to-etc-openstack-d.patch @@ -1,17 +1,17 @@ -From d9cbadf18ace9875baab015066b89d60cf6d68c4 Mon Sep 17 00:00:00 2001 +From 3d3f45c47b11ccf70e42c996797faa61c990b310 Mon Sep 17 00:00:00 2001 From: Matthias Runge Date: Mon, 9 Sep 2013 14:13:07 +0200 Subject: [PATCH] move RBAC policy files and checks to /etc/openstack-dashboard --- - openstack_dashboard/local/local_settings.py.example | 11 ++++++----- - 1 file changed, 6 insertions(+), 5 deletions(-) + openstack_dashboard/local/local_settings.py.example | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openstack_dashboard/local/local_settings.py.example b/openstack_dashboard/local/local_settings.py.example -index 61cf4b1..8306143 100644 +index d0fd2a7..a7a3bad 100644 --- a/openstack_dashboard/local/local_settings.py.example +++ b/openstack_dashboard/local/local_settings.py.example -@@ -248,12 +248,13 @@ TIME_ZONE = "UTC" +@@ -248,7 +248,8 @@ TIME_ZONE = "UTC" # target installation. # Path to directory containing policy.json files @@ -19,14 +19,5 @@ index 61cf4b1..8306143 100644 +# POLICY_FILES_PATH = os.path.join(ROOT_PATH, "conf") +POLICY_FILES_PATH = '/etc/openstack-dashboard' # Map of local copy of service policy files --#POLICY_FILES = { --# 'identity': 'keystone_policy.json', --# 'compute': 'nova_policy.json' --#} -+POLICY_FILES = { -+ 'identity': 'keystone_policy.json', -+ 'compute': 'nova_policy.json' -+} - - # Trove user and database extension support. By default support for - # creating users and databases on database instances is turned on. + #POLICY_FILES = { + # 'identity': 'keystone_policy.json', diff --git a/rpm/SOURCES/0006-move-SECRET_KEY-secret_key_store-to-tmp.patch b/rpm/SOURCES/0006-move-SECRET_KEY-secret_key_store-to-tmp.patch old mode 100755 new mode 100644 index cdb8afe..91b9e0c --- a/rpm/SOURCES/0006-move-SECRET_KEY-secret_key_store-to-tmp.patch +++ b/rpm/SOURCES/0006-move-SECRET_KEY-secret_key_store-to-tmp.patch @@ -1,4 +1,4 @@ -From 47eedca830adccb81905f7e9388e141b54d7bf7a Mon Sep 17 00:00:00 2001 +From 4b0b0f7ab4f9d616dd93a35e07eec05f9140a7ac Mon Sep 17 00:00:00 2001 From: Matthias Runge Date: Mon, 9 Sep 2013 20:52:51 +0200 Subject: [PATCH] move SECRET_KEY secret_key_store to /tmp @@ -8,7 +8,7 @@ Subject: [PATCH] move SECRET_KEY secret_key_store to /tmp 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack_dashboard/local/local_settings.py.example b/openstack_dashboard/local/local_settings.py.example -index 8306143..51897c1 100644 +index a7a3bad..7eca94e 100644 --- a/openstack_dashboard/local/local_settings.py.example +++ b/openstack_dashboard/local/local_settings.py.example @@ -78,7 +78,6 @@ HORIZON_CONFIG = { diff --git a/rpm/SOURCES/0007-RCUE-navbar-and-login-screen.patch b/rpm/SOURCES/0007-RCUE-navbar-and-login-screen.patch old mode 100755 new mode 100644 index f4bb89f..fc6e760 --- a/rpm/SOURCES/0007-RCUE-navbar-and-login-screen.patch +++ b/rpm/SOURCES/0007-RCUE-navbar-and-login-screen.patch @@ -1,4 +1,4 @@ -From a98c1160985c92c48cd830ecdec082beebea750c Mon Sep 17 00:00:00 2001 +From 66fe61a1fda8f2cf4cc809220c325fbad0afa1d8 Mon Sep 17 00:00:00 2001 From: Matthias Runge Date: Fri, 7 Mar 2014 09:48:30 +0100 Subject: [PATCH] RCUE navbar and login screen @@ -19087,7 +19087,7 @@ index 0000000..f37f848 +ADD_INSTALLED_APPS = ['openstack_dashboard.dashboards.theme'] + diff --git a/openstack_dashboard/settings.py b/openstack_dashboard/settings.py -index d8f0219..58c525e 100644 +index 92d1e7d..01e3308 100644 --- a/openstack_dashboard/settings.py +++ b/openstack_dashboard/settings.py @@ -125,13 +125,15 @@ TEMPLATE_LOADERS = ( diff --git a/rpm/SOURCES/0008-Added-a-hook-for-redhat-openstack-access-plugin.patch b/rpm/SOURCES/0008-Added-a-hook-for-redhat-openstack-access-plugin.patch old mode 100755 new mode 100644 index 894512b..5bd4ccd --- a/rpm/SOURCES/0008-Added-a-hook-for-redhat-openstack-access-plugin.patch +++ b/rpm/SOURCES/0008-Added-a-hook-for-redhat-openstack-access-plugin.patch @@ -1,4 +1,4 @@ -From 25ec4a6a0350cc4729babfbb879be8f20b5c99f2 Mon Sep 17 00:00:00 2001 +From 3efae4eee13893548215cb6eddde23bc187b162e Mon Sep 17 00:00:00 2001 From: Matthias Runge Date: Mon, 31 Mar 2014 09:22:28 +0200 Subject: [PATCH] Added a hook for redhat openstack access plugin diff --git a/rpm/SOURCES/0009-fix-flake8-issues.patch b/rpm/SOURCES/0009-fix-flake8-issues.patch new file mode 100644 index 0000000..886aca8 --- /dev/null +++ b/rpm/SOURCES/0009-fix-flake8-issues.patch @@ -0,0 +1,31 @@ +From aa900f036f028f838408b64b3ecfc69b28575a28 Mon Sep 17 00:00:00 2001 +From: Matthias Runge +Date: Thu, 10 Apr 2014 09:27:21 +0200 +Subject: [PATCH] fix flake8 issues + +--- + openstack_dashboard/dashboards/theme/theme_index/panel.py | 1 + + openstack_dashboard/enabled/_99_customization.py | 1 - + 2 files changed, 1 insertion(+), 1 deletion(-) + +diff --git a/openstack_dashboard/dashboards/theme/theme_index/panel.py b/openstack_dashboard/dashboards/theme/theme_index/panel.py +index 9c42a79..7d85f3c 100644 +--- a/openstack_dashboard/dashboards/theme/theme_index/panel.py ++++ b/openstack_dashboard/dashboards/theme/theme_index/panel.py +@@ -20,6 +20,7 @@ import horizon + + from openstack_dashboard.dashboards.theme import dashboard + ++ + class ThemePanel(horizon.Panel): + name = _("Panel providing a theme") + slug = 'theme_index' +diff --git a/openstack_dashboard/enabled/_99_customization.py b/openstack_dashboard/enabled/_99_customization.py +index f37f848..272bcbe 100644 +--- a/openstack_dashboard/enabled/_99_customization.py ++++ b/openstack_dashboard/enabled/_99_customization.py +@@ -6,4 +6,3 @@ DEFAULT = False + ADD_EXCEPTIONS = {} + # A list of applications to be added to INSTALLED_APPS. + ADD_INSTALLED_APPS = ['openstack_dashboard.dashboards.theme'] +- diff --git a/rpm/SOURCES/0010-remove-runtime-dep-to-python-pbr.patch b/rpm/SOURCES/0010-remove-runtime-dep-to-python-pbr.patch new file mode 100644 index 0000000..bdaf569 --- /dev/null +++ b/rpm/SOURCES/0010-remove-runtime-dep-to-python-pbr.patch @@ -0,0 +1,33 @@ +From 5ed74de4018515843d1c034bd57d08245a8e8a90 Mon Sep 17 00:00:00 2001 +From: Matthias Runge +Date: Fri, 15 Nov 2013 09:42:08 +0100 +Subject: [PATCH] remove runtime dep to python-pbr + +Change-Id: I0b8f7fb6138feb2ba23f11065e53f1ded5091ed0 +Resolves: rhbz 1029775 +--- + horizon/version.py | 13 +++++++++++-- + 1 file changed, 11 insertions(+), 2 deletions(-) + +diff --git a/horizon/version.py b/horizon/version.py +index 972f6ce..a129ea2 100644 +--- a/horizon/version.py ++++ b/horizon/version.py +@@ -14,6 +14,15 @@ + # License for the specific language governing permissions and limitations + # under the License. + +-import pbr.version + +-version_info = pbr.version.VersionInfo('horizon') ++class VersionInfo(object): ++ release = "REDHATRELEASE" ++ version = "REDHATVERSION" ++ ++ def version_string(self): ++ return self.version ++ ++ def release_string(self): ++ return self.release ++ ++version_info = VersionInfo() diff --git a/rpm/SOURCES/0011-Add-Change-password-link-to-the-RCUE-theme.patch b/rpm/SOURCES/0011-Add-Change-password-link-to-the-RCUE-theme.patch new file mode 100644 index 0000000..9c22b31 --- /dev/null +++ b/rpm/SOURCES/0011-Add-Change-password-link-to-the-RCUE-theme.patch @@ -0,0 +1,26 @@ +From 32d45e4c22fbec1da08804ed44303d8bb517d958 Mon Sep 17 00:00:00 2001 +From: Julie Pichon +Date: Tue, 20 May 2014 16:22:31 +0100 +Subject: [PATCH] Add "Change password" link to the RCUE theme. + +Resolves rhbz: 1099076 + +Change-Id: I2f3df72c40464a4478177a566c5cf8f2660e52e2 +--- + openstack_dashboard/dashboards/theme/templates/_header.html | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/openstack_dashboard/dashboards/theme/templates/_header.html b/openstack_dashboard/dashboards/theme/templates/_header.html +index 8ce279e..479adfb 100644 +--- a/openstack_dashboard/dashboards/theme/templates/_header.html ++++ b/openstack_dashboard/dashboards/theme/templates/_header.html +@@ -20,7 +20,8 @@ +