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:
parent
98ee234337
commit
053a9654ef
14
ethtool.spec
14
ethtool.spec
@ -1,7 +1,7 @@
|
|||||||
Name: ethtool
|
Name: ethtool
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
Version: 3.2
|
Version: 3.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Settings tool for Ethernet NICs
|
Summary: Settings tool for Ethernet NICs
|
||||||
|
|
||||||
License: GPLv2
|
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
|
# - 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
|
Source0: http://ftp.kernel.org/pub/software/network/%{name}/%{name}-%{version}.tar.bz2
|
||||||
BuildRequires: automake, autoconf
|
BuildRequires: automake, autoconf
|
||||||
|
Conflicts: filesystem < 3
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This utility allows querying and changing settings such as speed,
|
This utility allows querying and changing settings such as speed,
|
||||||
@ -35,23 +36,22 @@ network devices, especially of Ethernet devices.
|
|||||||
# autoconf
|
# autoconf
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --sbindir=/sbin
|
%configure
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=%{buildroot} INSTALL='install -p' 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
|
%files
|
||||||
%doc AUTHORS ChangeLog* COPYING LICENSE NEWS README
|
%doc AUTHORS ChangeLog* COPYING LICENSE NEWS README
|
||||||
/sbin/%{name}
|
|
||||||
%{_sbindir}/%{name}
|
%{_sbindir}/%{name}
|
||||||
%{_mandir}/man8/%{name}.8*
|
%{_mandir}/man8/%{name}.8*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Jan 13 2012 Jaromir Capik <jcapik@redhat.com> 2:3.2-1
|
||||||
- Update to 3.2 (#781357)
|
- Update to 3.2 (#781357)
|
||||||
- Minor spec file changes according to the latest guidelines
|
- Minor spec file changes according to the latest guidelines
|
||||||
|
Loading…
Reference in New Issue
Block a user