Avoid hardcoding /usr prefix
The prefix can be /app when building for flatpak.
This commit is contained in:
parent
20eece1940
commit
b2655e5fb8
@ -1,6 +1,6 @@
|
||||
Name: capstone
|
||||
Version: 4.0.1
|
||||
Release: 9%{?dist}
|
||||
Release: 10%{?dist}
|
||||
Summary: A lightweight multi-platform, multi-architecture disassembly framework
|
||||
|
||||
%global gituser aquynh
|
||||
@ -131,7 +131,7 @@ The %{name}-java package contains java bindings for %{name}.
|
||||
%build
|
||||
#DESTDIR="%{buildroot}"
|
||||
V=1 CFLAGS="%{optflags}" \
|
||||
LIBDIRARCH="%{_lib}" INCDIR="%{_includedir}" \
|
||||
PREFIX="%{_prefix}" LIBDIRARCH="%{_lib}" INCDIR="%{_includedir}" \
|
||||
make PYTHON2=%{__python2} PYTHON3=%{__python3} %{?_smp_mflags}
|
||||
|
||||
# Fix pkgconfig file
|
||||
@ -164,7 +164,7 @@ popd
|
||||
|
||||
|
||||
%install
|
||||
DESTDIR=%{buildroot} LIBDIRARCH=%{_lib} \
|
||||
DESTDIR=%{buildroot} PREFIX="%{_prefix}" LIBDIRARCH=%{_lib} \
|
||||
INCDIR="%{_includedir}" make install
|
||||
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
||||
find %{buildroot} -name '*.a' -exec rm -f {} ';'
|
||||
@ -235,6 +235,9 @@ install -D -p -m 0644 bindings/java/%{name}.jar %{buildroot}/%{_javadir}/%{name
|
||||
%{_javadir}/
|
||||
|
||||
%changelog
|
||||
* Tue Jan 21 2020 Kalev Lember <klember@redhat.com> - 4.0.1-10
|
||||
- Avoid hardcoding /usr prefix
|
||||
|
||||
* Tue Oct 15 2019 Michal Ambroz <rebus AT_ seznam.cz> - 4.0.1-9
|
||||
- do not build python2 package for rhel8
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user