Install into /usr/local/ by default

/usr is package manager territory, and not even writable on OSTree based
systems such as Fedora CoreOS or RHEL Edge. This has been common and
good practice in autotools for decades.

You can still override this with `make install PREFIX=...`. Use that in
the RPM spec file.
This commit is contained in:
Martin Pitt 2022-09-14 07:08:45 +02:00 committed by Martin Pitt
parent 633e3257ae
commit 57d7c73d6e
3 changed files with 7 additions and 6 deletions

View file

@ -36,7 +36,7 @@ rm -rf dist
ESLINT=0 NODE_ENV=production make
%install
%make_install
%make_install PREFIX=/usr
# drop source maps, they are large and just for debugging
find %{buildroot}%{_datadir}/cockpit/ -name '*.map' | xargs --no-run-if-empty rm --verbose