[datagrepper] Patch out pygments style.
Ralph Bean
ralph at fedoraproject.org
Tue Mar 4 17:00:43 UTC 2014
commit 2cfc7252170a7b8cdb83b2ad3fb88788d6ab11b7
Author: Ralph Bean <rbean at redhat.com>
Date: Tue Mar 4 12:01:36 2014 -0500
Patch out pygments style.
datagrepper-old-pygments.patch | 37 +++++++++++++++++++++++++++++++++++++
datagrepper.spec | 8 +++++++-
2 files changed, 44 insertions(+), 1 deletions(-)
---
diff --git a/datagrepper-old-pygments.patch b/datagrepper-old-pygments.patch
new file mode 100644
index 0000000..f0160c7
--- /dev/null
+++ b/datagrepper-old-pygments.patch
@@ -0,0 +1,37 @@
+From d671c8d274e7ff1c4c882ce92b9b7e001e387312 Mon Sep 17 00:00:00 2001
+From: Ralph Bean <rbean at redhat.com>
+Date: Tue, 4 Mar 2014 11:59:46 -0500
+Subject: [PATCH] Use a pygments style that exists on old, old el6.
+
+---
+ datagrepper/app.py | 2 +-
+ datagrepper/static/css/raw.css | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/datagrepper/app.py b/datagrepper/app.py
+index f20fabd..25841b0 100644
+--- a/datagrepper/app.py
++++ b/datagrepper/app.py
+@@ -437,7 +437,7 @@ def msg_id():
+ pygments.lexers.JavascriptLexer(),
+ pygments.formatters.HtmlFormatter(
+ noclasses=True,
+- style="monokai",
++ style="emacs",
+ )
+ ).strip()
+ message_dict = message_card(msg, size)
+diff --git a/datagrepper/static/css/raw.css b/datagrepper/static/css/raw.css
+index 16d150b..a5f2b21 100644
+--- a/datagrepper/static/css/raw.css
++++ b/datagrepper/static/css/raw.css
+@@ -25,5 +25,5 @@ p {
+ border-radius: 15px;
+ }
+ .highlight pre {
+- background-color: #272822;
++ //background-color: #272822;
+ }
+--
+1.8.5.3
+
diff --git a/datagrepper.spec b/datagrepper.spec
index e754d92..d5f6b3b 100644
--- a/datagrepper.spec
+++ b/datagrepper.spec
@@ -5,12 +5,14 @@
Name: datagrepper
Version: 0.4.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A webapp to query fedmsg history
License: GPLv2+
URL: https://github.com/fedora-infra/datagrepper
Source0: https://pypi.python.org/packages/source/d/%{name}/%{name}-%{version}.tar.gz
+Patch0: datagrepper-old-pygments.patch
+
BuildArch: noarch
BuildRequires: python2-devel
@@ -62,6 +64,7 @@ bus. It is a JSON api for the datanommer message store.
%prep
%setup -q
+%patch0 -p1
%if %{?rhel}%{!?rhel:0} >= 6
# Make sure that epel/rhel picks up the correct version of webob
@@ -91,6 +94,9 @@ install -m 644 apache/%{modname}.cfg %{buildroot}%{_sysconfdir}/%{modname}/%{mod
%{python_sitelib}/%{eggname}-%{version}-py%{python_version}.egg-info/
%changelog
+* Tue Mar 04 2014 Ralph Bean <rbean at redhat.com> - 0.4.0-2
+- Patch some pygments stuff to support el6.
+
* Tue Mar 04 2014 Ralph Bean <rbean at redhat.com> - 0.4.0-1
- Fix widget css
- Added an extra-large size for message cards
More information about the scm-commits
mailing list