summaryrefslogtreecommitdiffstats
path: root/cgit.spec
diff options
context:
space:
mode:
authorKevin Fenzi <kevin@scrye.com>2014-05-17 11:43:06 -0600
committerKevin Fenzi <kevin@scrye.com>2014-05-17 11:43:06 -0600
commit1f090cf383d8e5c36fc73b2207b7afa70bcd4adb (patch)
treef5bbbdedf657fc939774d1fb685585e0320e5e2b /cgit.spec
parent591edd3d0118c668402d387d08973fb0ed0615ff (diff)
downloadcgit_EL6-1f090cf383d8e5c36fc73b2207b7afa70bcd4adb.tar.gz
Include highlight styles in cgit.css
Diffstat (limited to 'cgit.spec')
-rw-r--r--cgit.spec11
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@iki.fi> - 0.10.1-2
+- Include highlight styles in cgit.css
+
* Thu Feb 27 2014 Kevin Fenzi <kevin@scrye.com> 0.10.1-1
- Update to 0.10.1
- Correctly enable lua filters.