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