From e9d2470dd74cff5d7f017660d55800148c360b12 Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Fri, 15 Jun 2018 23:39:01 -0400 Subject: cleanup cruft: drop Group tag, %defattr; use %license --- cgit.spec | 9 ++++----- 1 file 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 <= 19 || 0%{?rhel} >= 7 +%if 0%{?fedora} || 0%{?rhel} >= 7 Require all granted @@ -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 -- cgit