From: Markus Lehtonen Date: Wed, 24 Apr 2013 11:08:19 +0000 (+0300) Subject: CentOS compatibility: disable Debian tools X-Git-Tag: debian/0.6.25~90 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f2b3ffb3474e0154c24802bb2e543dba17e507a3;p=tools%2Fgit-buildpackage.git CentOS compatibility: disable Debian tools Signed-off-by: Markus Lehtonen --- diff --git a/packaging/git-buildpackage.spec b/packaging/git-buildpackage.spec index 3a193fd..26f1f43 100644 --- a/packaging/git-buildpackage.spec +++ b/packaging/git-buildpackage.spec @@ -149,9 +149,7 @@ cp -r docs/manual-html %{buildroot}%{_docdir}/%{name} cp -r docs/apidocs %{buildroot}%{_docdir}/%{name} %endif - -%files -%defattr(-,root,root,-) +cat > files.list << EOF %{_bindir}/gbp-pq %{_bindir}/git-buildpackage %{_bindir}/git-dch @@ -168,7 +166,10 @@ cp -r docs/apidocs %{buildroot}%{_docdir}/%{name} %{python_sitelib}/gbp/scripts/import_dscs.py* %{python_sitelib}/gbp/scripts/import_orig.py* %{python_sitelib}/gbp/scripts/create_remote_repo.py* +EOF + %if %{with docs} +cat >> files.list << EOF %{_mandir}/man1/gbp-buildpackage.1* %{_mandir}/man1/gbp-create-remote-repo.1* %{_mandir}/man1/gbp-dch.1* @@ -177,6 +178,19 @@ cp -r docs/apidocs %{buildroot}%{_docdir}/%{name} %{_mandir}/man1/gbp-import-orig.1* %{_mandir}/man1/gbp-pq.1* %{_mandir}/man1/git-pbuilder.1* +EOF +%endif + +# Disable the debian tools for CentOS +%if 0%{?centos_version} +for f in `cat files.list`; do + rm -rfv %{buildroot}/$f +done + +%else + +%files -f files.list +%defattr(-,root,root,-) %endif %files common