diff --git a/.cvsignore b/.cvsignore new file mode 100644 index 0000000..eef328d --- /dev/null +++ b/.cvsignore @@ -0,0 +1,2 @@ +zoo_2.10-9.diff.gz +zoo_2.10.orig.tar.gz diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e8eb45d --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: zoo +# $Id$ +NAME := zoo +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Rootx && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/dead.package b/dead.package deleted file mode 100644 index 815fd29..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -http://fedoraproject.org/wiki/Extras/Schedule/FC6MassRebuild diff --git a/sources b/sources new file mode 100644 index 0000000..f5b71b5 --- /dev/null +++ b/sources @@ -0,0 +1,2 @@ +2dca488e015f6d6079fb3b2106bcbc5e zoo_2.10-9.diff.gz +dca5f2cf71379a51ea1e66b25f1e0294 zoo_2.10.orig.tar.gz diff --git a/zoo-2.10-tempfile.patch b/zoo-2.10-tempfile.patch new file mode 100644 index 0000000..17e2784 --- /dev/null +++ b/zoo-2.10-tempfile.patch @@ -0,0 +1,24 @@ +--- zoo/zoopack.c.tempfile Thu Jul 11 21:08:04 1991 ++++ zoo/zoopack.c Fri Jan 18 13:34:56 2002 +@@ -171,8 +171,19 @@ + } else { + strcpy (temp_file, xes); + } +-mktemp (temp_file); /* ... and make unique */ +-new_file = zoocreate (temp_file); ++ ++/* make unique name */ ++/* my god, this coding style sucks */ ++new_file = NOFILE; ++{ ++ int fd; ++ ++ if ((fd = mkstemp(temp_file)) >= 0) { ++ new_file = zoocreate (temp_file); ++ close(fd); ++ } ++} ++ + if (new_file == NOFILE) + prterror ('f', "Could not create temporary file %s.\n", temp_file); + diff --git a/zoo.spec b/zoo.spec new file mode 100644 index 0000000..90da61c --- /dev/null +++ b/zoo.spec @@ -0,0 +1,55 @@ +Name: zoo +Version: 2.10 +Release: 0.fdr.2.2 +Epoch: 0 +Summary: File archiving utility with compression + +Group: Applications/Archiving +License: Distributable +Source: ftp://ftp.debian.org/debian/pool/non-free/z/zoo/zoo_2.10.orig.tar.gz +Patch0: ftp://ftp.debian.org/debian/pool/non-free/z/zoo/zoo_2.10-9.diff.gz +Patch1: zoo-2.10-tempfile.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%description +zoo is a file archiving utility for maintaining collections of files. +It uses Lempel-Ziv compression to provide space savings in the +range of 20 to 80 percent depending on the type of data. Written by +Rahul Dhesi, and posted to the USENET newsgroup comp.sources.misc. + +%prep +%setup -n zoo-2.10.orig +%patch0 -p1 -b .debian +%patch1 -p1 -b .tempfile + +%build +make %{?_smp_mflags} OPTIM="%{optflags}" linux + +%install +rm -fr %{buildroot} +install -d -m 0755 %{buildroot}%{_bindir} \ + %{buildroot}%{_mandir}/man1 + +install -m 0755 fiz zoo %{buildroot}%{_bindir}/ +install -m 0644 fiz.1 zoo.1 %{buildroot}%{_mandir}/man1/ + +%clean +rm -fr %{buildroot} + +%files +%defattr(0644, root, root, 0755) +%doc %{_mandir}/man1/* +%attr(0755,root,root) %{_bindir}/* + +%changelog +* Sun Apr 25 2004 Mailhot - 0:2.10-0.fdr.2 +* Use debian source + +* Tue Apr 20 2004 Nicolas Mailhot - 0:2.10-0.fdr.1 +* Fedorization + +* Sat Dec 06 2003 Dag Wieers - 2.10-1 +- Patch to build on RHFC1. + +* Sun Jan 26 2003 Dag Wieers - 2.10-0 +- Initial package. (using DAR)