Blame SPECS/pax.spec

f9b685
%global ALTERNATIVES            %{_sbindir}/alternatives
f9b685
f9b685
Summary: POSIX File System Archiver
f9b685
Name: pax
f9b685
Version: 3.4
f9b685
Release: 19%{?dist}
f9b685
License: BSD
f9b685
Group: Applications/Archiving
f9b685
Source: ftp://ftp.suse.com/pub/people/kukuk/pax/%{name}-%{version}.tar.bz2
f9b685
URL:    ftp://ftp.suse.com/pub/people/kukuk/pax/
f9b685
#use Linux PATH_MAX (4092) for maximum PATHLENGTH instead of pax default 3072
f9b685
Patch0: pax-3.0-PATHMAX.patch
f9b685
#fix bug with archiving files of filename length exactly 100 chars
f9b685
Patch1: pax-3.4-abs100.patch
f9b685
#do not truncate names when extracting
f9b685
Patch2: pax-3.4-rdtruncate.patch
f9b685
#do not fail with gcc-4.6+
f9b685
Patch3: pax-gcc46.patch
f9b685
f9b685
# manpage edits - s/pax/opax/, add cross references
f9b685
Patch4: pax-3.4-manpage.patch
f9b685
f9b685
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
f9b685
Requires(post):  %{ALTERNATIVES}
f9b685
Requires(preun): %{ALTERNATIVES}
f9b685
f9b685
%description
f9b685
The 'pax' utility is the POSIX standard archive tool.  It supports the two most
f9b685
common forms of standard Unix archive (backup) files - CPIO and TAR.
f9b685
f9b685
# "desired" alternative constants
f9b685
%global ALT_NAME                pax
f9b685
%global ALT_LINK                %{_bindir}/pax
f9b685
%global ALT_SL1_NAME            pax-man
f9b685
%global ALT_SL1_LINK            %{_mandir}/man1/pax.1.gz
f9b685
f9b685
# "local" alternative constants ("opax" - OpenBSD pax)
f9b685
%global ALT_PATH                %{_bindir}/opax
f9b685
%global ALT_SL1_PATH            %{_mandir}/man1/opax.1.gz
f9b685
f9b685
# helpers for alternatives
f9b685
%global ALT_MAN_ORIG            %{_mandir}/man1/pax.1
f9b685
%global ALT_MAN_NEW             %{_mandir}/man1/opax.1
f9b685
f9b685
%prep
f9b685
%setup -q
f9b685
%patch0 -p1 -b .PATHMAX
f9b685
%patch1 -p1 -b .abs100
f9b685
%patch2 -p1 -b .rdtruncate
f9b685
%patch3 -p1 -b .gcc46
f9b685
%patch4 -p1 -b .manpage
f9b685
f9b685
%build
f9b685
%configure
f9b685
make %{?_smp_mflags}
f9b685
f9b685
%install
f9b685
rm -rf %{buildroot}
f9b685
make DESTDIR=%{buildroot} install
f9b685
mv %{buildroot}%{ALT_LINK} %{buildroot}%{ALT_PATH}
f9b685
mv %{buildroot}%{ALT_MAN_ORIG} %{buildroot}%{ALT_MAN_NEW}
f9b685
ln -s %{ALT_PATH} %{buildroot}%{ALT_LINK}
f9b685
ln -s %{ALT_MAN_NEW} %{buildroot}%{ALT_MAN_ORIG}
f9b685
f9b685
%clean
f9b685
rm -rf %{buildroot}
f9b685
f9b685
%files
f9b685
%defattr(-,root,root,-)
f9b685
%doc ABOUT-NLS AUTHORS ChangeLog COPYING NEWS README THANKS
f9b685
%{ALT_PATH}
f9b685
%doc %{ALT_SL1_PATH}
f9b685
%ghost %verify(not md5 size mode mtime) %{ALT_LINK}
f9b685
%ghost %verify(not md5 size mode mtime) %{ALT_SL1_LINK}
f9b685
f9b685
%post
f9b685
# We need to remove old /usr/bin/pax binary because the following
f9b685
# 'update-alternatives' step does not do it itself.  We may remove this once we
f9b685
# are sure that pax >= 3.4-16 is installed on the system.
f9b685
test -f %{ALT_LINK} && test ! -h %{ALT_LINK} && rm -rf %{ALT_LINK}
f9b685
f9b685
%{ALTERNATIVES} \
f9b685
    --install   %{ALT_LINK}     %{ALT_NAME}     %{ALT_PATH}     33 \
f9b685
    --slave     %{ALT_SL1_LINK} %{ALT_SL1_NAME} %{ALT_SL1_PATH} \
f9b685
f9b685
%preun
f9b685
if [ $1 -eq 0 ]; then
f9b685
    # only on pure uninstall (not upgrade)
f9b685
    %{ALTERNATIVES} --remove %{ALT_NAME} %{ALT_PATH}
f9b685
fi
f9b685
f9b685
%changelog
f9b685
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 3.4-19
f9b685
- Mass rebuild 2014-01-24
f9b685
f9b685
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.4-18
f9b685
- Mass rebuild 2013-12-27
f9b685
f9b685
* Thu Jun 06 2013 Pavel Raiskup <praiskup@redhat.com> - 3.4-17
f9b685
- remove old %%{_bindir}/pax binary if existent during update
f9b685
f9b685
* Wed May 15 2013 Pavel Raiskup <praiskup@redhat.com> - 3.4-16
f9b685
- setup the 'alternatives' template (#929349)
f9b685
f9b685
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-15
f9b685
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f9b685
f9b685
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-14
f9b685
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f9b685
f9b685
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-13
f9b685
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f9b685
f9b685
* Wed Jun 29 2011 Ondrej Vasik <ovasik@redhat.com> - 3.4-12
f9b685
- fix FTBFS with gcc4.6+ - (#715754)
f9b685
f9b685
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-11
f9b685
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f9b685
f9b685
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-10
f9b685
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f9b685
f9b685
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-9
f9b685
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f9b685
f9b685
* Mon Jan 19 2009 Ondrej Vasik <ovasik@redhat.com> - 3.4-8
f9b685
- Merge review #226235: fix use of %%makeinstall as well
f9b685
f9b685
* Mon Jan 19 2009 Ondrej Vasik <ovasik@redhat.com> - 3.4-7
f9b685
- Merge review #226235: do ship doc files,
f9b685
  do comment patches, use better buildroot and
f9b685
  defaults for attributes, allow parallel builds
f9b685
f9b685
* Fri Aug 29 2008 Ondrej Vasik <ovasik@redhat.com> - 3.4-6
f9b685
- removed duplicate Source0
f9b685
f9b685
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.4-5
f9b685
- Autorebuild for GCC 4.3
f9b685
f9b685
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 3.4-4
f9b685
- Rebuild for selinux ppc32 issue.
f9b685
f9b685
* Mon Jul 16 2007 Radek Brich <rbrich@redhat.com> - 3.4-3
f9b685
- do not truncate file names when extracting (#205324)
f9b685
f9b685
* Wed Jun 20 2007 Radek Brich <rbrich@redhat.com> - 3.4-2
f9b685
- applied patch for #239000 (pax fails creation of ustar
f9b685
  if an absolute name is exactly 100 characters long)
f9b685
f9b685
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 3.4-1.2.2
f9b685
- rebuild
f9b685
f9b685
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 3.4-1.2.1
f9b685
- bump again for double-long bug on ppc(64)
f9b685
f9b685
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 3.4-1.2
f9b685
- rebuilt for new gcc4.1 snapshot and glibc changes
f9b685
f9b685
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
f9b685
- rebuilt
f9b685
f9b685
* Mon Aug 15 2005 Peter Vrabec <pvrabec@redhat.com> 3.4-1
f9b685
- upgrade 3.4
f9b685
f9b685
* Fri Mar 18 2005 Peter Vrabec <pvrabec@redhat.com> 3.0-11
f9b685
- rebuilt
f9b685
f9b685
* Thu Oct 21 2004 Peter Vrabec <pvrabec@redhat.com>
f9b685
- fix PAXPATHLEN (#132857)
f9b685
f9b685
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
f9b685
- rebuilt
f9b685
f9b685
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
f9b685
- rebuilt
f9b685
f9b685
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
f9b685
- rebuilt
f9b685
f9b685
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
f9b685
- rebuilt
f9b685
f9b685
* Thu Dec 12 2002 Tim Powers <timp@redhat.com> 3.0-5
f9b685
- rebuild on all arches
f9b685
f9b685
* Wed Jul 03 2002 Karsten Hopp <karsten@redhat.de>
f9b685
- fix documentation (#63671)
f9b685
f9b685
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
f9b685
- automated rebuild
f9b685
f9b685
* Thu May 23 2002 Tim Powers <timp@redhat.com>
f9b685
- automated rebuild
f9b685
f9b685
* Tue Mar  5 2002 Matt Wilson <msw@redhat.com>
f9b685
- pull PAX source tarball from the SuSE package (which is based off
f9b685
  this one yet claims copyright on the spec file)
f9b685
f9b685
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
f9b685
- Bump release + rebuild.
f9b685
f9b685
* Fri Feb 23 2001 Jakub Jelinek <jakub@redhat.com>
f9b685
- make it build under glibc 2.2.2
f9b685
f9b685
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
f9b685
- automatic rebuild
f9b685
f9b685
* Fri Jun 30 2000 Preston Brown <pbrown@redhat.com>
f9b685
- debian version, which is a port from OpenBSD's latest.
f9b685
f9b685
* Tue Jun 13 2000 Preston Brown <pbrown@redhat.com>
f9b685
- FHS paths
f9b685
f9b685
* Tue May 30 2000 Preston Brown <pbrown@redhat.com>
f9b685
- adopted for Winston.
f9b685