summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTodd Zullinger <tmz@pobox.com>2018-06-15 23:39:01 -0400
committerTodd Zullinger <tmz@pobox.com>2018-06-16 23:23:49 -0400
commite9d2470dd74cff5d7f017660d55800148c360b12 (patch)
tree217cfa7d053ba67ba4d4fe8f2415fbead3182a4a
parent1a94c576117185b2003f2b8d58d7f61f98d57084 (diff)
downloadcgit_EL6-e9d2470dd74cff5d7f017660d55800148c360b12.tar.gz
cleanup cruft: drop Group tag, %defattr; use %license
-rw-r--r--cgit.spec9
1 files changed, 4 insertions, 5 deletions
diff --git a/cgit.spec b/cgit.spec
index 8efdcfe..6b4422b 100644
--- a/cgit.spec
+++ b/cgit.spec
@@ -29,7 +29,6 @@ Version: 1.1
Release: 11%{?dist}
Summary: A fast web interface for git
-Group: Development/Tools
License: GPLv2
URL: https://git.zx2c4.com/cgit/
Source0: https://git.zx2c4.com/cgit/snapshot/%{name}-%{version}.tar.xz
@@ -105,10 +104,11 @@ EOF
# remove env shebang's from filter scripts
grep -rl '#!.*/env' filters/ | xargs -r sed -Ei 's@^(.+/)env (.+)$@\1\2@'
+# default httpd config
cat > httpd.conf <<EOF
Alias /cgit-data /usr/share/cgit
ScriptAlias /cgit /var/www/cgi-bin/cgit
-%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
+%if 0%{?fedora} || 0%{?rhel} >= 7
<Directory "/usr/share/cgit">
Require all granted
</Directory>
@@ -132,10 +132,9 @@ install -p -m0644 httpd.conf %{buildroot}%{_sysconfdir}/httpd/conf.d/cgit.conf
install -d -m0755 %{buildroot}%{cachedir}
-
%files
-%defattr(-,root,root,-)
-%doc COPYING README* *.html
+%doc README* *.html
+%license COPYING
%config(noreplace) %{_sysconfdir}/cgitrc
%if ! %{with httpd_filesystem}
# own httpd config dirs on systems without httpd-filesystem