star/star.spec

308 lines
9.5 KiB
RPMSpec
Raw Normal View History

%if %{?WITH_SELINUX:0}%{!?WITH_SELINUX:1}
%define WITH_SELINUX 1
%endif
Summary: An archiving tool with ACL support
Name: star
2010-01-13 12:11:06 +00:00
Version: 1.5.1
Release: 4%{?dist}
2006-02-22 10:14:45 +00:00
URL: http://cdrecord.berlios.de/old/private/star.html
Source: ftp://ftp.berlios.de/pub/star/%{name}-%{version}.tar.bz2
#use gcc for compilation, change defaults for Linux
2005-11-08 15:59:33 +00:00
Patch1: star-1.5-newMake.patch
#add SELinux support to star(#)
2006-02-22 10:14:45 +00:00
Patch2: star-1.5-selinux.patch
#do not segfault with data-change-warn option (#255261)
Patch3: star-1.5-changewarnSegv.patch
#do not conflict with glibc stdio functions (#494213)
2010-01-13 12:11:06 +00:00
Patch4: star-1.5-stdioconflict.patch
#Prevent buffer overflow for filenames with length of 100 characters (#556664)
Patch5: star-1.5.1-bufferoverflow.patch
#Fix some invalid manpage references (#624612)
Patch6: star-1.5.1-manpagereferences.patch
2006-02-22 10:14:45 +00:00
License: CDDL
Group: Applications/Archiving
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: libattr-devel libacl-devel libtool libselinux-devel
2007-08-24 11:27:44 +00:00
BuildRequires: e2fsprogs-devel gawk
%description
Star saves many files together into a single tape or disk archive,
and can restore individual files from the archive. Star supports ACL.
%prep
2010-01-13 12:11:06 +00:00
%setup -q
2005-11-08 15:59:33 +00:00
%patch1 -p1 -b .newMake
%if %{WITH_SELINUX}
2006-02-22 10:14:45 +00:00
%patch2 -p1 -b .selinux
%endif
%patch3 -p1 -b .changewarnSegv
2010-01-13 12:11:06 +00:00
%patch4 -p1 -b .stdio
%patch5 -p1 -b .namesoverflow
%patch6 -p1 -b .references
2010-01-13 12:11:06 +00:00
cp -a star/all.mk star/Makefile
iconv -f iso_8859-1 -t utf-8 AN-1.5 >AN-1.5_utf8
mv AN-1.5_utf8 AN-1.5
iconv -f iso_8859-1 -t utf-8 star/star.4 >star/star.4_utf8
mv star/star.4_utf8 star/star.4
cp -a READMEs/README.linux .
2008-06-06 17:13:08 +00:00
for PLAT in %{arm} x86_64 ppc64 s390 s390x sh3 sh4 sh4a sparcv9; do
for AFILE in gcc cc; do
[ ! -e RULES/${PLAT}-linux-${AFILE}.rul ] \
&& ln -s i586-linux-${AFILE}.rul RULES/${PLAT}-linux-${AFILE}.rul
done
2006-02-22 10:38:56 +00:00
done
%build
2005-08-26 14:58:14 +00:00
export MAKEPROG=gmake
# Autoconfiscate
2010-01-13 12:26:47 +00:00
(cd autoconf; AC_MACRODIR=. AWK=gawk ./autoconf)
2005-08-26 14:58:14 +00:00
2006-02-22 10:14:45 +00:00
#make %{?_smp_mflags} PARCH=%{_target_cpu} CPPOPTX="-DNO_FSYNC" \
make %{?_smp_mflags} PARCH=%{_target_cpu} \
COPTX="$RPM_OPT_FLAGS -DTRY_EXT2_FS" CC="%{__cc}" \
K_ARCH=%{_target_cpu} \
CONFFLAGS="%{_target_platform} --prefix=%{_prefix} \
--exec-prefix=%{_exec_prefix} --bindir=%{_bindir} \
--sbindir=%{_sbindir} --sysconfdir=%{_sysconfdir} \
--datadir=%{_datadir} --includedir=%{_includedir} \
--libdir=%{_libdir} --libexec=%{_libexecdir} \
--localstatedir=%{_localstatedir} --sharedstatedir=%{_sharedstatedir} \
--mandir=%{_mandir} --infodir=%{_infodir}" < /dev/null
%install
2005-08-26 14:58:14 +00:00
export MAKEPROG=gmake
rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man4
%makeinstall RPM_INSTALLDIR=${RPM_BUILD_ROOT} PARCH=%{_target_cpu} K_ARCH=%{_target_cpu} < /dev/null
rm -rf ${RPM_BUILD_ROOT}/usr/share/doc/rmt
mv ${RPM_BUILD_ROOT}/usr/man/man5/star.5 ${RPM_BUILD_ROOT}%{_mandir}/man4/star.4
mv ${RPM_BUILD_ROOT}/usr/man/* ${RPM_BUILD_ROOT}%{_mandir}
2009-08-27 14:10:45 +00:00
ln -s star.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/ustar.1
# XXX Nuke unpackaged files.
( cd ${RPM_BUILD_ROOT}
2010-01-13 12:11:06 +00:00
rm -f .%{_sysconfdir}/default/rmt
rm -f .%{_bindir}/mt
rm -f .%{_bindir}/smt
rm -f .%{_bindir}/tartest
2005-08-04 10:36:10 +00:00
rm -f .%{_bindir}/tar
2005-08-15 12:21:48 +00:00
rm -f .%{_bindir}/gnutar
rm -f .%{_bindir}/scpio
2005-08-26 14:58:14 +00:00
rm -f .%{_bindir}/star_fat
2005-08-15 12:21:48 +00:00
rm -f .%{_bindir}/star_sym
rm -f .%{_bindir}/suntar
2005-08-26 14:58:14 +00:00
rm -rf .%{_prefix}%{_sysconfdir}
rm -rf .%{_prefix}/include
rm -rf .%{_prefix}/lib
rm -rf .%{_mandir}/man5
rm -rf .%{_mandir}/man3
2005-08-26 14:58:14 +00:00
rm -rf .%{_mandir}/man1/{tartest,rmt,gnutar,scpio,smt,suntar,match}.1*
rm -rf .%{_sbindir}
)
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(-,root,root)
%doc README AN* COPYING CDDL.Schily.txt README.SSPM STATUS.alpha TODO README.linux
2005-08-26 14:58:14 +00:00
%{_bindir}/star
%{_bindir}/ustar
%{_bindir}/spax
2005-08-26 14:58:14 +00:00
%{_mandir}/man1/star.1*
%{_mandir}/man1/spax.1*
2009-08-27 14:10:45 +00:00
%{_mandir}/man1/ustar.1*
%{_mandir}/man4/star.4*
%changelog
* Tue Sep 14 2010 Ondrej Vasik <ovasik@redhat.com> 1.5.1-4
- fix another instance of buffer overflow for files with
long names(#632384)
* Tue Aug 17 2010 Ondrej Vasik <ovasik@redhat.com> 1.5.1-3
- Fix some invalid manpage references (#624612)
- ship star.4 manpage with star format description
* Wed Feb 03 2010 Ondrej Vasik <ovasik@redhat.com> 1.5.1-2
- fix buffer overflow for files with names of length
100 chars(#556664)
2010-01-13 12:11:06 +00:00
* Wed Jan 13 2010 Ondrej Vasik <ovasik@redhat.com> 1.5.1-1
- new upstream release 1.5.1
2009-08-27 14:10:45 +00:00
* Thu Aug 27 2009 Ondrej Vasik <ovasik@redhat.com> 1.5-8
- provide symlinked manpage for ustar
* Thu Aug 27 2009 Ondrej Vasik <ovasik@redhat.com> 1.5-7
- Merge review (#226434) changes: convert AN-1.5 to utf-8,
spec file cosmetic/policy changes, ship README.linux in doc
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Sun May 10 2009 Ville Skyttä <ville.skytta at iki.fi> - 1.5-5
- Build with $RPM_OPT_FLAGS.
- Convert specfile to UTF-8.
* Wed Apr 08 2009 Ondrej Vasik <ovasik@redhat.com> 1.5-4
- fix build failure due to symbols conflicting
with stdio(#494213)
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Wed Jan 28 2009 Ondrej Vasik <ovasik@redhat.com> 1.5-2
- remove names.c requirements from non-fat Makefiles,
do not ship names.c (#255261 for details)
* Tue Jan 27 2009 Ondrej Vasik <ovasik@redhat.com> 1.5-1
- use final instead of beta
- ship missing names.c separately
- enable optimalization again
2008-12-03 12:49:56 +00:00
* Wed Dec 03 2008 Ondrej Vasik <ovasik@redhat.com> 1.5a89-1
- update to latest upstream release
2008-06-06 17:13:08 +00:00
* Fri Jun 06 2008 Dennis Gilmore <dennis@ausil.us> 1.5a84-6
2008-12-03 12:49:56 +00:00
- add sparcv9 support
2008-06-06 17:13:08 +00:00
* Mon May 12 2008 Peter Vrabec <pvrabec@redhat.com> 1.5a84-5
- add super-H(sh3,4) architecture support (#442883)
2008-02-19 20:06:22 +00:00
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.5a84-4
- Autorebuild for GCC 4.3
* Fri Aug 31 2007 Dan Kopecek <dkopecek@redhat.com> 1.5a84-3
- added -O0 to COPTX (CFLAGS) (see #255261)
* Mon Aug 27 2007 Peter Vrabec <pvrabec@redhat.com> 1.5a84-2
- fix segfault of data-change-warn option (#255261),
patch from dkopecek@redhat.com
* Fri Aug 24 2007 Peter Vrabec <pvrabec@redhat.com> 1.5a84-1
- new upstream release with CVE-2007-4134 fix
2007-06-24 16:26:29 +00:00
* Sun Jun 24 2007 Peter Vrabec <pvrabec@redhat.com> 1.5a76-3
- build star on ARM platforms (#245465)
2007-01-29 11:00:34 +00:00
* Mon Jan 29 2007 Peter Vrabec <pvrabec@redhat.com> 1.5a76-2
2007-01-29 10:56:20 +00:00
- fix buildreq. and rebuild
* Thu Jan 18 2007 Jan Cholasta <grubber.x@gmail.com> 1.5a76-1
2007-01-19 13:07:31 +00:00
- upgrade
2006-08-08 12:03:38 +00:00
* Tue Aug 08 2006 Peter Vrabec <pvrabec@redhat.com> 1.5a75-1
- upgrade
2006-07-12 08:18:26 +00:00
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.5a74-3.1
- rebuild
2006-06-13 18:41:30 +00:00
* Tue Jun 13 2006 Peter Vrabec <pvrabec@redhat.com> 1.5a74-3
- use autoconf provided by star
2006-06-02 10:53:52 +00:00
* Fri Jun 02 2006 Peter Vrabec <pvrabec@redhat.com> 1.5a74-2
- update tarball
2006-04-24 10:04:51 +00:00
* Mon Apr 24 2006 Peter Vrabec <pvrabec@redhat.com> 1.5a74-1
- upgrade
2006-03-22 11:14:20 +00:00
* Wed Mar 22 2006 Peter Vrabec <pvrabec@redhat.com> 1.5a73-1
- upgrade
2006-03-01 15:15:34 +00:00
* Wed Mar 01 2006 Peter Vrabec <pvrabec@redhat.com> 1.5a72-1
- upgrade
2006-02-22 10:14:45 +00:00
* Wed Feb 22 2006 Peter Vrabec <pvrabec@redhat.com> 1.5a71-1
- upgrade
2006-02-07 13:53:04 +00:00
2005-12-09 22:43:18 +00:00
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
- rebuilt
2005-11-08 15:59:33 +00:00
* Tue Nov 08 2005 Peter Vrabec <pvrabec@redhat.com> 1.5a69-1
- upgrade
2005-10-10 11:19:16 +00:00
* Mon Oct 10 2005 Peter Vrabec <pvrabec@redhat.com> 1.5a68-1
- upgrade
2005-09-22 09:55:41 +00:00
* Thu Sep 22 2005 Peter Vrabec <pvrabec@redhat.com> 1.5a67-1
- upgrade
2005-08-26 14:58:14 +00:00
* Fri Aug 26 2005 Peter Vrabec <pvrabec@redhat.com> 1.5a65-1
- upgrade 1.5a65-1 made by Horst H. von Brand <vonbrand@inf.utfsm.cl>
- Source URL changed, no homepage now
- License changed from GPL to CDDL 1.0
- Define MAKEPROG=gmake like the Gmake.linux script does
- Disable fat binary as per star/Makefile, update star-1.5-selinux.patch for
the various *.mk files used in that case
- Axe /usr/share/man/man1/match.1*, /usr/etc/default/rmt too
- Explicit listing in %%files, allow for compressed or plain manpages
2005-08-26 14:58:14 +00:00
2005-08-26 14:33:15 +00:00
* Fri Aug 26 2005 Peter Vrabec <pvrabec@redhat.com>
- do not remove star_fat
2005-08-15 12:21:48 +00:00
* Fri Aug 12 2005 Peter Vrabec <pvrabec@redhat.com>
- upgrade 1.5a64-1
2005-08-04 10:36:10 +00:00
* Thu Aug 04 2005 Karsten Hopp <karsten@redhat.de> 1.5a54-3
- remove /usr/bin/tar symlink
2005-08-04 10:36:10 +00:00
2005-03-18 09:53:34 +00:00
* Fri Mar 18 2005 Peter Vrabec <pvrabec@redhat.com>
- rebuilt
2004-11-22 14:57:57 +00:00
* Mon Nov 22 2004 Peter Vrabec <pvrabec@redhat.com>
- upgrade 1.5a54-1 & rebuild
2004-10-25 10:45:07 +00:00
* Mon Oct 25 2004 Peter Vrabec <pvrabec@redhat.com>
- fix dependencie (#123770)
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
* Mon Jan 26 2004 Dan Walsh <dwalsh@redhat.com> 1.5a25-4
- Fix call to is_selinux_enabled
* Mon Jan 19 2004 Jeff Johnson <jbj@jbj.org> 1.5.a25-3
- fix: (!(x & 1)) rather than (!x & 1) patch.
* Wed Sep 24 2003 Dan Walsh <dwalsh@redhat.com> 1.5a25-2
- turn selinux off
* Tue Sep 16 2003 Dan Walsh <dwalsh@redhat.com> 1.5a25-1.sel
- turn selinux on
* Fri Sep 5 2003 Dan Walsh <dwalsh@redhat.com> 1.5a18-5
- turn selinux off
* Mon Aug 25 2003 Dan Walsh <dwalsh@redhat.com> 1.5a18-3
- Add SELinux modification to handle setting security context before creation.
* Thu Aug 21 2003 Dan Walsh <dwalsh@redhat.com> 1.5a18-2
- Fix free_xattr bug
* Wed Jul 16 2003 Dan Walsh <dwalsh@redhat.com> 1.5a18-1
- Add SELinux support
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
- rebuilt
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
- rebuilt
* Tue Nov 12 2002 Elliot Lee <sopwith@redhat.com> 1.5a08-3
- Build when uname -m != _target_platform
- Use _smp_mflags
- Build on x86_64
* Mon Nov 11 2002 Jeff Johnson <jbj@redhat.com> 1.5a08-2
- update to 1.5a08.
- build from cvs.
* Wed Jun 26 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.5a04
- Initial build. Alpha version - it's needed for ACLs.