diff options
author | Stefano Rivera <stefano@rivera.za.net> | 2022-09-29 13:33:43 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2022-09-29 16:28:01 +0200 |
commit | 3954043e7960e075c3d822c432a2e8bb7c6c59e7 (patch) | |
tree | d93e6e296430b71d2e81f9f31507cc712e331a8d /packaging | |
parent | ccbb64b0cc020738ff21db8f0c57487219179f46 (diff) |
Explicitly use the deb install layout when building our RPM
Debian defaults to installing to /usr/local, unless told otherwise. This
is usually done by passing --install-layout=deb to setup.py, when called
directly. But that's only an option on Debian systems that have this
patch. Set the environment variable equivalent, instead.
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/git-buildpackage.spec | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/git-buildpackage.spec b/packaging/git-buildpackage.spec index 17d6ed44..dbf5567c 100644 --- a/packaging/git-buildpackage.spec +++ b/packaging/git-buildpackage.spec @@ -180,7 +180,7 @@ GIT_CEILING_DIRECTORIES=%{_builddir} \ %install rm -rf %{buildroot} -WITHOUT_NOSETESTS=1 %{__python3} ./setup.py install --root=%{buildroot} --prefix=/usr --install-lib=%{python_sitelib} +DEB_PYTHON_INSTALL_LAYOUT=deb_system WITHOUT_NOSETESTS=1 %{__python3} ./setup.py install --root=%{buildroot} --prefix=/usr --install-lib=%{python_sitelib} find %{buildroot} -name __pycache__ | xargs -r rm -r mkdir -p %{buildroot}/usr/share/%{name} mv %{buildroot}/usr/bin/gbp-builder-mock %{buildroot}/usr/share/%{name}/ |