diff options
-rw-r--r-- | cgit.spec | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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 |