install everything in /usr

This patch is needed for the /usr-move feature
https://fedoraproject.org/wiki/Features/UsrMove

This package requires now 'filesystem' >= 3, which is only installable
on a system which has /bin, /sbin, /lib, /lib64 as symlinks to /usr and
not regular directories. The 'filesystem' package acts as a guard, to
prevent *this* package to be installed on old unconverted systems.

New installations will have the 'filesystem' >=3 layout right away, old
installations need to be converted with anaconda or dracut first; only
after that, the 'filesystem' package, and also *this* package can be
installed.

Packages *should* not install files in /bin, /sbin, /lib, /lib64, but
only in the corresponding directories in /usr. Packages *must* not
install conflicting files with the same names in the corresponding
directories in / and /usr. Especially compatibilty symlinks must not be
installed.

Feel free to modify any of the changes to the spec file, but keep the
above in mind.
This commit is contained in:
Harald Hoyer 2012-01-25 18:36:27 +01:00
parent 98ee234337
commit 053a9654ef

View File

@ -1,7 +1,7 @@
Name: ethtool
Epoch: 2
Version: 3.2
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Settings tool for Ethernet NICs
License: GPLv2
@ -19,6 +19,7 @@ URL: http://sourceforge.net/projects/gkernel/
# - Use the visible date of latest git log entry for %{release} in spec file
Source0: http://ftp.kernel.org/pub/software/network/%{name}/%{name}-%{version}.tar.bz2
BuildRequires: automake, autoconf
Conflicts: filesystem < 3
%description
This utility allows querying and changing settings such as speed,
@ -35,23 +36,22 @@ network devices, especially of Ethernet devices.
# autoconf
%build
%configure --sbindir=/sbin
%configure
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} INSTALL='install -p' install
# Some legacy support for scripts etc. out there
mkdir -p %{buildroot}%{_sbindir}
ln -sf ../../sbin/%{name} %{buildroot}%{_sbindir}/%{name}
%files
%doc AUTHORS ChangeLog* COPYING LICENSE NEWS README
/sbin/%{name}
%{_sbindir}/%{name}
%{_mandir}/man8/%{name}.8*
%changelog
* Wed Jan 25 2012 Harald Hoyer <harald@redhat.com> 2:3.2-2
- install everything in /usr
https://fedoraproject.org/wiki/Features/UsrMove
* Fri Jan 13 2012 Jaromir Capik <jcapik@redhat.com> 2:3.2-1
- Update to 3.2 (#781357)
- Minor spec file changes according to the latest guidelines