From 1f090cf383d8e5c36fc73b2207b7afa70bcd4adb Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: May 17 2014 17:43:06 +0000 Subject: Include highlight styles in cgit.css --- 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ä - 0.10.1-2 +- Include highlight styles in cgit.css + * Thu Feb 27 2014 Kevin Fenzi 0.10.1-1 - Update to 0.10.1 - Correctly enable lua filters.