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 compatibility 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
87aea78d7c
commit
5c97dec908
17
psacct.spec
17
psacct.spec
@ -4,7 +4,7 @@
|
|||||||
Summary: Utilities for monitoring process activities
|
Summary: Utilities for monitoring process activities
|
||||||
Name: psacct
|
Name: psacct
|
||||||
Version: 6.5.5
|
Version: 6.5.5
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
URL: ftp://ftp.gnu.org/pub/gnu/acct/
|
URL: ftp://ftp.gnu.org/pub/gnu/acct/
|
||||||
@ -16,16 +16,18 @@ Patch2: acct-6.3.2-sa_manpage.patch
|
|||||||
Patch3: psacct-6.3.2-man-pages.patch
|
Patch3: psacct-6.3.2-man-pages.patch
|
||||||
Patch4: acct-6.5.5-direntry.patch
|
Patch4: acct-6.5.5-direntry.patch
|
||||||
|
|
||||||
|
Conflicts: filesystem < 3
|
||||||
|
Conflicts: systemd < 39-1
|
||||||
Requires: /sbin/install-info
|
Requires: /sbin/install-info
|
||||||
Requires: coreutils
|
Requires: coreutils
|
||||||
Requires(post): chkconfig
|
Requires(post): chkconfig
|
||||||
Requires(post): systemd-sysv
|
Requires(post): systemd-sysv
|
||||||
Requires(post): systemd-units
|
Requires(post): systemd-units >= 39-2
|
||||||
Requires(preun): systemd-units
|
Requires(preun): systemd-units
|
||||||
Requires(postun): systemd-units
|
Requires(postun): systemd-units
|
||||||
|
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: systemd-units
|
BuildRequires: systemd-units >= 39-2
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -57,10 +59,6 @@ make install prefix=$RPM_BUILD_ROOT%{_prefix} \
|
|||||||
infodir=$RPM_BUILD_ROOT%{_datadir}/info mandir=$RPM_BUILD_ROOT%{_mandir}
|
infodir=$RPM_BUILD_ROOT%{_datadir}/info mandir=$RPM_BUILD_ROOT%{_mandir}
|
||||||
cp dump-acct.8 $RPM_BUILD_ROOT%{_mandir}/man8/
|
cp dump-acct.8 $RPM_BUILD_ROOT%{_mandir}/man8/
|
||||||
|
|
||||||
# move accton to /sbin -- leave historical symlink
|
|
||||||
mv $RPM_BUILD_ROOT%{_sbindir}/accton $RPM_BUILD_ROOT/sbin/accton
|
|
||||||
ln -s ../../sbin/accton $RPM_BUILD_ROOT%{_sbindir}/accton
|
|
||||||
|
|
||||||
# remove unwanted file
|
# remove unwanted file
|
||||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||||
|
|
||||||
@ -120,7 +118,6 @@ fi
|
|||||||
%{_unitdir}/psacct.service
|
%{_unitdir}/psacct.service
|
||||||
%attr(0600,root,root) %ghost %config /var/account/pacct
|
%attr(0600,root,root) %ghost %config /var/account/pacct
|
||||||
%attr(0644,root,root) %config(noreplace) /etc/logrotate.d/*
|
%attr(0644,root,root) %config(noreplace) /etc/logrotate.d/*
|
||||||
/sbin/accton
|
|
||||||
%{_sbindir}/accton
|
%{_sbindir}/accton
|
||||||
%{_sbindir}/sa
|
%{_sbindir}/sa
|
||||||
%{_sbindir}/dump-utmp
|
%{_sbindir}/dump-utmp
|
||||||
@ -142,6 +139,10 @@ fi
|
|||||||
%{_infodir}/accounting.info.gz
|
%{_infodir}/accounting.info.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 25 2012 Harald Hoyer <harald@redhat.com> 6.5.5-5
|
||||||
|
- install everything in /usr
|
||||||
|
https://fedoraproject.org/wiki/Features/UsrMove
|
||||||
|
|
||||||
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.5.5-4
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.5.5-4
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user