Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit e43630081f90f614258e44d123da1ae6627081e0
Author: Pavel Raiskup <praiskup(a)redhat.com>
Date: Mon Dec 21 01:40:28 2015 +0100
fix packaging for epel-6+ and fedora-22+
---------------------------------------------------------------
cli/copr-cli.spec | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/cli/copr-cli.spec b/cli/copr-cli.spec
index 2b9c6ed..3a38bb5 100644
--- a/cli/copr-cli.spec
+++ b/cli/copr-cli.spec
@@ -1,7 +1,11 @@
-%if 0%{?rhel} < 7 && 0%{?rhel} > 0
+%if 0%{?rhel} > 0
+%if 0%{?rhel} <= 7
%global _pkgdocdir %{_docdir}/%{name}-%{version}
+%endif
+%if 0%{?rhel} <= 6
%global __python2 %{__python}
%endif
+%endif
Name: copr-cli
Version: 1.46
@@ -76,6 +80,7 @@ install -p -m 644 man/copr-cli.1 %{buildroot}/%{_mandir}/man1/
install -p man/copr.1 %{buildroot}/%{_mandir}/man1/
%files
+%{!?_licensedir:%global license %doc}
%license LICENSE
%doc README.rst
%{_bindir}/copr-cli
@@ -86,8 +91,9 @@ install -p man/copr.1 %{buildroot}/%{_mandir}/man1/
%if 0%{?fedora}
-%license LICENSE
%files doc
+%{!?_licensedir:%global license %doc}
+%license LICENSE
%endif
%changelog