Workaround build problem with permissions in COPR.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Sun, 14 Sep 2014 15:15:12 +0000 (17:15 +0200)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Sun, 14 Sep 2014 15:15:12 +0000 (17:15 +0200)
rOCCI-server.spec

index b096d50..c386c73 100644 (file)
@@ -171,7 +171,10 @@ ln -s %{_localstatedir}/log/rocci-server %{buildroot}/%{app_root}/log
 install -p -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
 
 rdoc --op %{buildroot}%{_pkgdocdir} lib app *.md
+# fix permissions (but it conflicts with COPR buildsystem for F21+)
+%if 0%{?fedora} && 0%{?fedora} <= 20 || 0%{?rhel} && 0%{?rhel} <= 7
 chmod -x %{buildroot}%{_pkgdocdir}/images/*.png
+%endif
 
 install -p -m 0644 %{SOURCE4} %{buildroot}%{_pkgdocdir}