From c278da3908fc84567530937725b16c81a3a887c7 Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Thu, 17 Feb 2000 18:05:08 +0000 Subject: "See_The_Changelog" --- ChangeLog | 6 ++++++ Makefile | 18 ++++++++++++++++++ rpmtools.spec | 6 ++++-- 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 ChangeLog diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..3bc3124 --- /dev/null +++ b/ChangeLog @@ -0,0 +1,6 @@ +2000-02-17 Chmouel Boudjnah + + * rpmtools.spec (BuildRequires): rpm-3.0.4. + * gendepslist.cc: port to rpm-3.0.4. + * Makefile: cvs support, add -lpopt. + diff --git a/Makefile b/Makefile index 357ec5e..bcb65b5 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +VERSION = 1.0 +NAME = rpmtools FROMC = rpm2header #rpm-find-leaves FROMCC = gendepslist hdlist2names hdlist2files ALL = $(FROMC) $(FROMCC) @@ -17,3 +19,19 @@ $(FROMC): %: %.c clean: rm -rf *~ $(ALL) + +dis: clean + rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar* + mkdir -p $(NAME)-$(VERSION) + find . -not -name "$(NAME)-$(VERSION)"|cpio -pd $(NAME)-$(VERSION)/ + find $(NAME)-$(VERSION) -type d -name CVS -o -name .cvsignore -o -name unused |xargs rm -rf + perl -p -i -e 's|^%define version.*|%define version $(VERSION)|' $(NAME).spec + tar cf ../$(NAME)-$(VERSION).tar $(NAME)-$(VERSION) + bzip2 -9f ../$(NAME)-$(VERSION).tar + rm -rf $(NAME)-$(VERSION) + +rpm: dis ../$(NAME)-$(VERSION).tar.bz2 $(RPM) + cp -f ../$(NAME)-$(VERSION).tar.bz2 $(RPM)/SOURCES + cp -f $(NAME).spec $(RPM)/SPECS/ + -rpm -ba --clean --rmsource $(NAME).spec + rm -f ../$(NAME)-$(VERSION).tar.bz2 \ No newline at end of file diff --git a/rpmtools.spec b/rpmtools.spec index 8dfe546..c3b5526 100644 --- a/rpmtools.spec +++ b/rpmtools.spec @@ -11,7 +11,7 @@ Copyright: GPL Group: System Environment/Base BuildRoot: /tmp/%{name}-buildroot Prefix: %{_prefix} -BuildRequires: rpm- +BuildRequires: rpm-devel >= 3.0.4 %description Various rpmtools. @@ -36,7 +36,9 @@ rm -rf $RPM_BUILD_ROOT %changelog * Thu Feb 17 2000 Chmouel Boudjnah 1.0-8mdk -- Porting to rpm-3.0.4. +- rpmtools.spec (BuildRequires): rpm-3.0.4. +- gendepslist.cc: port to rpm-3.0.4. +- Makefile: cvs support, add -lpopt. * Tue Jan 4 2000 Pixel - renamed hdlist2files in hdlist2names -- cgit v1.2.1