rpm: make package buildable in mageia cauldron

This commit is contained in:
R4SAS 2020-02-26 16:40:30 +03:00 committed by GitHub
parent 77d32f76c2
commit f86b1b1447
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,14 +53,22 @@ cd build
%endif %endif
%endif %endif
%if 0%{?mageia} > 7
pushd build
make %{?_smp_mflags} make %{?_smp_mflags}
popd
%else
make %{?_smp_mflags}
%endif
%install %install
cd build pushd build
%if 0%{?mageia} %if 0%{?mageia}
cd build pushd build
%endif %endif
chrpath -d i2pd chrpath -d i2pd
install -D -m 755 i2pd %{buildroot}%{_sbindir}/i2pd install -D -m 755 i2pd %{buildroot}%{_sbindir}/i2pd
install -D -m 755 %{_builddir}/%{name}-%{version}/contrib/i2pd.conf %{buildroot}%{_sysconfdir}/i2pd/i2pd.conf install -D -m 755 %{_builddir}/%{name}-%{version}/contrib/i2pd.conf %{buildroot}%{_sysconfdir}/i2pd/i2pd.conf