[cgit] Include highlight styles in cgit.css

Kevin Fenzi kevin at fedoraproject.org
Sat May 17 17:43:14 UTC 2014


commit 1f090cf383d8e5c36fc73b2207b7afa70bcd4adb
Author: Kevin Fenzi <kevin at scrye.com>
Date:   Sat May 17 11:43:06 2014 -0600

    Include highlight styles in cgit.css

 cgit.spec |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/cgit.spec b/cgit.spec
index 41fb487..5bd3287 100644
--- a/cgit.spec
+++ b/cgit.spec
@@ -22,7 +22,7 @@ make V=1 %{?_smp_mflags} \\\
 
 Name:           cgit
 Version:        0.10.1
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        A fast web interface for git
 
 Group:          Development/Tools
@@ -35,6 +35,7 @@ Source3:        cgit.httpd
 # On all but RHEL5 highlight is version 3. 
 %if 0%{?fedora} || 0%{?rhel} >= 6
 Patch1:         cgit-0.9.1-highlightv3.patch
+BuildRequires:  highlight
 %endif
 BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
@@ -72,6 +73,11 @@ sed -i 's/^\(CFLAGS = \).*/\1%{optflags}/' git/Makefile
 # Something in the a2x chain doesn't like running in parallel. :/
 %{make_cgit} -j1 doc-man doc-html
 
+%if 0%{?fedora} || 0%{?rhel} >= 6
+# el5 highlight doesn't know --print-style
+highlight --print-style --style-outfile=stdout >> cgit.css
+%endif
+
 
 %install
 rm -rf %{buildroot}
@@ -99,6 +105,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Thu Mar 20 2014 Ville Skyttä <ville.skytta at iki.fi> - 0.10.1-2
+- Include highlight styles in cgit.css
+
 * Thu Feb 27 2014 Kevin Fenzi <kevin at scrye.com> 0.10.1-1
 - Update to 0.10.1
 - Correctly enable lua filters. 


More information about the scm-commits mailing list