Avoid hardcoding /usr prefix

This fixes the build for flatpaks with /app prefix.
This commit is contained in:
Kalev Lember 2020-01-28 10:19:13 +01:00
parent 68682a49a7
commit 796f16cb23
1 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,7 @@
Summary: Utility to create fonts.scale files for truetype fonts
Name: ttmkfdir
Version: 3.0.9
Release: 57%{?dist}
Release: 58%{?dist}
# Only licensing attribution is in README, no version.
License: LGPLv2+
# This is a Red Hat maintained package which is specific to
@ -40,7 +40,7 @@ by the font server.
make %{?_smp_mflags} OPTFLAGS="$RPM_OPT_FLAGS"
%install
make DESTDIR=$RPM_BUILD_ROOT install INSTALL="install -p"
make DESTDIR=$RPM_BUILD_ROOT PREFIX="%{_prefix}" install INSTALL="install -p"
mkdir -p %{buildroot}%{_mandir}/man1/
cp -p %{SOURCE10} %{buildroot}%{_mandir}/man1/
@ -50,6 +50,9 @@ cp -p %{SOURCE10} %{buildroot}%{_mandir}/man1/
%{_mandir}/man1/ttmkfdir.1.gz
%changelog
* Tue Jan 28 2020 Kalev Lember <klember@redhat.com> - 3.0.9-58
- Avoid hardcoding /usr prefix
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.9-57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild