2004-09-09 12:38:19 +00:00
|
|
|
|
%if %{?WITH_SELINUX:0}%{!?WITH_SELINUX:1}
|
|
|
|
|
%define WITH_SELINUX 1
|
|
|
|
|
%endif
|
2004-09-09 12:37:43 +00:00
|
|
|
|
Summary: An archiving tool with ACL support
|
|
|
|
|
Name: star
|
2004-09-09 12:38:19 +00:00
|
|
|
|
Version: 1.5a25
|
|
|
|
|
Release: 3
|
2004-09-09 12:37:43 +00:00
|
|
|
|
URL: http://www.fokus.gmd.de/research/cc/glone/employees/joerg.schilling/private/star.html
|
|
|
|
|
Source: ftp://ftp.fokus.gmd.de/pub/unix/star/alpha/%{name}-%{version}.tar.bz2
|
|
|
|
|
Patch: star-1.5-icantusethestandardwayandmademyownmake.patch
|
2004-09-09 12:38:19 +00:00
|
|
|
|
Patch1: star-acl-fix.patch
|
2004-09-09 12:38:10 +00:00
|
|
|
|
Patch2: star-nofsync.patch
|
2004-09-09 12:38:19 +00:00
|
|
|
|
Patch3: star-1.5-davej.patch
|
|
|
|
|
Patch4: star-selinux.patch
|
2004-09-09 12:37:43 +00:00
|
|
|
|
License: GPL
|
|
|
|
|
Group: Applications/Archiving
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
2004-09-09 12:37:50 +00:00
|
|
|
|
BuildRequires: libattr-devel libacl-devel libtool
|
2004-09-09 12:37:43 +00:00
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
%setup -q -n star-1.5
|
|
|
|
|
%patch0 -p1
|
2004-09-09 12:38:19 +00:00
|
|
|
|
%patch1 -p1 -b .acl-fix
|
2004-09-09 12:38:10 +00:00
|
|
|
|
%patch2 -p1 -b .nofsync
|
2004-09-09 12:38:19 +00:00
|
|
|
|
%patch3 -p1 -b .davej
|
|
|
|
|
%if %{WITH_SELINUX}
|
|
|
|
|
%patch4 -p1 -b .selinux
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
2004-09-09 12:37:50 +00:00
|
|
|
|
for PLAT in x86_64 ppc64 s390 s390x; 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
|
|
|
|
|
done
|
|
|
|
|
cp -f /usr/share/libtool/config.sub conf/config.sub
|
2004-09-09 12:37:43 +00:00
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
2004-09-09 12:38:10 +00:00
|
|
|
|
(cd conf; autoconf-2.13)
|
|
|
|
|
make %{?_smp_mflags} PARCH=%{_target_cpu} CPPOPTX="-DNO_FSYNC" \
|
|
|
|
|
K_ARCH=%{_target_cpu} \
|
2004-09-09 12:37:50 +00:00
|
|
|
|
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} \
|
2004-09-09 12:38:19 +00:00
|
|
|
|
--mandir=%{_mandir} --infodir=%{_infodir}" < /dev/null
|
2004-09-09 12:37:43 +00:00
|
|
|
|
|
|
|
|
|
%install
|
2004-09-09 12:37:50 +00:00
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man1
|
2004-09-09 12:38:19 +00:00
|
|
|
|
%makeinstall RPM_INSTALLDIR=${RPM_BUILD_ROOT} PARCH=%{_target_cpu} K_ARCH=%{_target_cpu} < /dev/null
|
2004-09-09 12:37:50 +00:00
|
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/man
|
|
|
|
|
mv $RPM_BUILD_ROOT/usr/man $RPM_BUILD_ROOT/usr/share/man
|
|
|
|
|
|
|
|
|
|
# XXX Nuke unpackaged files.
|
|
|
|
|
( cd ${RPM_BUILD_ROOT}
|
|
|
|
|
rm -f .%{_bindir}/mt
|
|
|
|
|
rm -f .%{_bindir}/smt
|
|
|
|
|
rm -f .%{_bindir}/tartest
|
|
|
|
|
rm -rf .%{_prefix}/include
|
|
|
|
|
rm -rf .%{_prefix}/lib
|
|
|
|
|
rm -rf .%{_mandir}/man5
|
2004-09-09 12:38:10 +00:00
|
|
|
|
rm -rf .%{_mandir}/man3
|
2004-09-09 12:37:50 +00:00
|
|
|
|
rm -rf .%{_mandir}/man1/{tartest,rmt}.1*
|
|
|
|
|
rm -rf .%{_prefix}/sbin
|
|
|
|
|
)
|
2004-09-09 12:37:43 +00:00
|
|
|
|
|
|
|
|
|
%clean
|
2004-09-09 12:37:50 +00:00
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
2004-09-09 12:37:43 +00:00
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc README AN* COPYING README.ACL README.crash README.largefiles README.linux
|
|
|
|
|
%doc README.otherbugs README.pattern README.posix-2001 README.SSPM STARvsGNUTAR
|
|
|
|
|
%doc STATUS.alpha TODO
|
2004-09-09 12:37:50 +00:00
|
|
|
|
%{_bindir}/*star
|
2004-09-09 12:38:19 +00:00
|
|
|
|
%{_bindir}/spax
|
2004-09-09 12:37:43 +00:00
|
|
|
|
%{_mandir}/man1/star*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2004-09-09 12:38:19 +00:00
|
|
|
|
* Mon Jan 19 2004 Jeff Johnson <jbj@jbj.org> 1.5.a25-3
|
|
|
|
|
- fix: (!(x & 1)) rather than (!x & 1) patch.
|
|
|
|
|
|
|
|
|
|
* 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.
|
|
|
|
|
|
2004-09-09 12:38:10 +00:00
|
|
|
|
* 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
|
|
|
|
|
|
2004-09-09 12:37:50 +00:00
|
|
|
|
* 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
|
2004-09-09 12:37:43 +00:00
|
|
|
|
|
2004-09-09 12:37:50 +00:00
|
|
|
|
* Mon Nov 11 2002 Jeff Johnson <jbj@redhat.com> 1.5a08-2
|
|
|
|
|
- update to 1.5a08.
|
|
|
|
|
- build from cvs.
|
2004-09-09 12:37:43 +00:00
|
|
|
|
|
2004-09-09 12:37:50 +00:00
|
|
|
|
* Wed Jun 26 2002 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com> 1.5a04
|
|
|
|
|
- Initial build. Alpha version - it's needed for ACLs.
|