Browse Source

rpm: make package buildable on mageia cauldron (#1476)

pull/1478/head
R4SAS 5 years ago committed by GitHub
parent
commit
2c6e041ae2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      contrib/rpm/i2pd-git.spec
  2. 12
      contrib/rpm/i2pd.spec

12
contrib/rpm/i2pd-git.spec

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

12
contrib/rpm/i2pd.spec

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

Loading…
Cancel
Save