1
0
Fork 0

spec: added conditionals for versioned DOCDIR

This is to support RHEL <= 7.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
Jaroslav Škarvada 2015-05-18 19:25:40 +02:00
parent 6940d280b6
commit 6c904d6b89

View file

@ -21,6 +21,12 @@ Based on that information components will then be put into lower or higher
power saving modes to adapt to the current usage. Currently only ethernet
network and ATA harddisk devices are implemented.
%if 0%{?rhel} <= 7
%global docdir %{_docdir}/%{name}-%{version}
%else
%global docdir %{_docdir}/%{name}
%endif
%package gtk
Summary: GTK GUI for tuned
Requires: %{name} = %{version}-%{release}
@ -87,7 +93,7 @@ It can be also used to fine tune your system for specific scenarios.
%install
make install DESTDIR=%{buildroot}
make install DESTDIR=%{buildroot} DOCDIR=%{docdir}
%if 0%{?rhel}
sed -i 's/\(dynamic_tuning[ \t]*=[ \t]*\).*/\10/' %{buildroot}%{_sysconfdir}/tuned/tuned-main.conf
%endif