diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2013-04-24 14:08:19 +0300 |
---|---|---|
committer | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2014-11-14 14:46:24 +0200 |
commit | b05f96d7a18d0d2b648e8740e5da1a5c7d9cb0da (patch) | |
tree | 568efce16ccddb8a68bd190e0f13c82e26760a8c /packaging | |
parent | 30f9ff431b51549900951a6d9c0cc92a389ae0fc (diff) | |
download | git-buildpackage-b05f96d7a18d0d2b648e8740e5da1a5c7d9cb0da.tar.gz git-buildpackage-b05f96d7a18d0d2b648e8740e5da1a5c7d9cb0da.tar.bz2 git-buildpackage-b05f96d7a18d0d2b648e8740e5da1a5c7d9cb0da.zip |
CentOS compatibility: disable Debian tools
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/git-buildpackage.spec | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/packaging/git-buildpackage.spec b/packaging/git-buildpackage.spec index ec019bc4..7ac503f3 100644 --- a/packaging/git-buildpackage.spec +++ b/packaging/git-buildpackage.spec @@ -171,9 +171,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 @@ -190,7 +188,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* @@ -199,6 +200,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 |