summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTodd Zullinger <tmz@pobox.com>2018-07-13 18:27:56 -0400
committerTodd Zullinger <tmz@pobox.com>2018-07-13 18:53:16 -0400
commit650d31681adb8a95da3fe073d99382112b60e610 (patch)
treee84113dfa374c6acf72ec1004a725bef6986d165
parent395011eb95b427c2f01e0a828d71d52e1b1633ef (diff)
downloadcgit_EL6-650d31681adb8a95da3fe073d99382112b60e610.tar.gz
Include contrib dir in docs
The agefile setting is often used in combination with a post-receive hook. An example hook is included in contrib/hooks.
-rw-r--r--cgit.spec6
1 files changed, 5 insertions, 1 deletions
diff --git a/cgit.spec b/cgit.spec
index 8a1f74e..85f59fa 100644
--- a/cgit.spec
+++ b/cgit.spec
@@ -119,6 +119,9 @@ EOF
# remove env shebang's from filter scripts
grep -rl '#!.*/env' filters/ | xargs -r sed -Ei 's@^(.+/)env (.+)$@\1\2@'
+# remove execute permissions from contrib file
+find contrib -type f | xargs -r chmod -x
+
# default httpd config
cat > httpd.conf <<EOF
Alias /cgit-data /usr/share/cgit
@@ -152,7 +155,7 @@ make test
%files
-%doc README* *.html
+%doc README* contrib *.html
%license COPYING
%config(noreplace) %{_sysconfdir}/cgitrc
%if ! %{with httpd_filesystem}
@@ -173,6 +176,7 @@ make test
%changelog
* Fri Jul 13 2018 Todd Zullinger <tmz@pobox.com> - 1.2-1
- Update to 1.2
+- Include contrib dir in docs
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild