Further unification of Fedora and RHEL spec files.
This commit is contained in:
parent
82eb2bf926
commit
f93c264e86
10
nbdkit.spec
10
nbdkit.spec
@ -93,7 +93,11 @@ BuildRequires: rb_libtorrent-devel
|
|||||||
BuildRequires: bash-completion
|
BuildRequires: bash-completion
|
||||||
BuildRequires: perl-devel
|
BuildRequires: perl-devel
|
||||||
BuildRequires: perl(ExtUtils::Embed)
|
BuildRequires: perl(ExtUtils::Embed)
|
||||||
|
%if !0%{?rhel}
|
||||||
|
BuildRequires: platform-python-devel
|
||||||
|
%else
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
|
%endif
|
||||||
%if !0%{?rhel}
|
%if !0%{?rhel}
|
||||||
%if 0%{?have_ocaml}
|
%if 0%{?have_ocaml}
|
||||||
# Requires OCaml 4.02.2 which contains fix for
|
# Requires OCaml 4.02.2 which contains fix for
|
||||||
@ -239,8 +243,10 @@ Summary: Example plugins for %{name}
|
|||||||
License: BSD
|
License: BSD
|
||||||
|
|
||||||
Requires: %{name}-server%{?_isa} = %{version}-%{release}
|
Requires: %{name}-server%{?_isa} = %{version}-%{release}
|
||||||
|
%if !0%{?rhel}
|
||||||
# example4 is written in Perl.
|
# example4 is written in Perl.
|
||||||
Requires: %{name}-perl-plugin
|
Requires: %{name}-perl-plugin
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%description example-plugins
|
%description example-plugins
|
||||||
@ -780,8 +786,8 @@ rm $RPM_BUILD_ROOT%{_mandir}/man1/nbdkit-gzip-plugin.1*
|
|||||||
%if 0%{?rhel}
|
%if 0%{?rhel}
|
||||||
# In RHEL, remove some plugins we cannot --disable.
|
# In RHEL, remove some plugins we cannot --disable.
|
||||||
for f in cc cdi torrent; do
|
for f in cc cdi torrent; do
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/nbdkit-$f-plugin.so
|
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/nbdkit-$f-plugin.so
|
||||||
rm $RPM_BUILD_ROOT%{_mandir}/man?/nbdkit-$f-plugin.*
|
rm -f $RPM_BUILD_ROOT%{_mandir}/man?/nbdkit-$f-plugin.*
|
||||||
done
|
done
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user