diff options
author | H. Peter Anvin <hpa@zytor.com> | 2004-07-20 04:15:15 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2004-07-20 04:15:15 +0000 |
commit | 54c1a6e3cb469ace5713ef34674bfa2e53aabf4e (patch) | |
tree | 870dad3aa7fb7411d671ef744ff23237bfa2c452 | |
parent | 3b45de950428f51c2b96ba9d5814127d935711f1 (diff) | |
download | zisofs-tools-54c1a6e3cb469ace5713ef34674bfa2e53aabf4e.tar.gz |
Automatically generate specfile so rpmbuild -ta works
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | zisofs-tools.spec.in | 50 |
2 files changed, 55 insertions, 0 deletions
@@ -38,6 +38,7 @@ distclean: clean release: $(MAKE) configure $(MAKE) distclean + $(MAKE) zisofs-tools.spec mkzftree: $(OBJS) $(CC) $(LDFLAGS) -o mkzftree $(OBJS) $(LIBS) @@ -75,12 +76,16 @@ VERSION = $(shell cat version) version.h: version echo "#define ZISOFS_TOOLS_VERSION \"$(VERSION)\"" > version.h +zisofs-tools.spec: zisofs-tools.spec.in version + sed -e 's/@@VERSION@@/$(VERSION)/g' < zisofs-tools.spec.in > $@ + # # Dependencies # mkzftree.o: mkzftree.c mkzftree.h config.h version.h workers.o: workers.c mkzftree.h config.h compress.o: compress.c mkzftree.h config.h iso9660.h +copytime.o: copytime.c mkzftree.h config.h hash.o: hash.c mkzftree.h config.h iso9660.o: iso9660.c iso9660.h uncompress.o: uncompress.c mkzftree.h config.h iso9660.h diff --git a/zisofs-tools.spec.in b/zisofs-tools.spec.in new file mode 100644 index 0000000..e5d7c13 --- /dev/null +++ b/zisofs-tools.spec.in @@ -0,0 +1,50 @@ +Summary: Utilities to create compressed CD-ROM filesystems. +Name: zisofs-tools +Version: @@VERSION@@ +Release: 1 +License: GPL +Group: Applications/System +URL: http://www.kernel.org/pub/linux/utils/fs/zisofs/ +Source: http://www.kernel.org/pub/linux/utils/fs/zisofs/zisofs-tools-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-root +Epoch: 1 + +%description +Tools that, in combination with an appropriately patched version of +mkisofs, allow the creation of compressed CD-ROM filesystems. + +%prep +%setup -q + +%build +%configure +make + +%install +rm -rf $RPM_BUILD_ROOT +make install INSTALLROOT="$RPM_BUILD_ROOT" + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%doc README zisofs.magic +%{_bindir}/mkzftree +%{_mandir}/man1/mkzftree.1* + +%changelog +* Mon Jul 20 2004 H. Peter Anvin <hpa@zytor.com> 1.0.6-1 +- Generalize and include in 1.0.6 so rpmbuild -ta works. + +* Sat Jun 13 2004 H. Peter Anvin <hpa@zytor.com> 1.0.5-1 +- Revision update. + +* Wed Nov 6 2002 H. Peter Anvin <hpa@zytor.com> 1.0.4-1 +- Revision update. + +* Thu Nov 8 2001 H. Peter Anvin <hpa@zytor.com> 1.0.3-1 +- Revision update. + +* Mon Oct 29 2001 H. Peter Anvin <hpa@zytor.com> 1.0.2-1 +- Initial version. |