aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChmouel Boudjnah <chmouel@mandriva.org>2000-02-17 18:05:08 +0000
committerChmouel Boudjnah <chmouel@mandriva.org>2000-02-17 18:05:08 +0000
commitc278da3908fc84567530937725b16c81a3a887c7 (patch)
treefca4f80b2974e86ede4def065c2d731fcd70c81c
parentec103b683b1679b09e1d1a54b14a4ba178d67a37 (diff)
downloadrpmtools-c278da3908fc84567530937725b16c81a3a887c7.tar
rpmtools-c278da3908fc84567530937725b16c81a3a887c7.tar.gz
rpmtools-c278da3908fc84567530937725b16c81a3a887c7.tar.bz2
rpmtools-c278da3908fc84567530937725b16c81a3a887c7.tar.xz
rpmtools-c278da3908fc84567530937725b16c81a3a887c7.zip
"See_The_Changelog"
-rw-r--r--ChangeLog6
-rw-r--r--Makefile18
-rw-r--r--rpmtools.spec6
3 files changed, 28 insertions, 2 deletions
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 <chmouel@mandrakesoft.com>
+
+ * 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 <chmouel@mandrakesoft.com> 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 <pixel@mandrakesoft.com>
- renamed hdlist2files in hdlist2names