From: Kay Sievers <kay.sievers@vrfy.org>
To: git@vger.kernel.org
Cc: Linus Torvalds <torvalds@osdl.org>
Subject: [PATCH] add git.spec and adapt Makefile for RPM build
Date: Mon, 2 May 2005 12:23:03 +0200 [thread overview]
Message-ID: <20050502102303.GA22630@vrfy.org> (raw)
Add support for building the rpm package directly from the git tree.
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
---
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,10 @@
# BREAK YOUR LOCAL DIFFS! show-diff and anything using it will likely randomly
# break unless your underlying filesystem supports those sub-second times
# (my ext3 doesn't).
+
+prefix=$(HOME)
+bindir=$(prefix)/bin
+
CFLAGS=-g -O2 -Wall
CC=gcc
@@ -26,7 +30,11 @@ PROG= git-update-cache git-diff-files
all: $(PROG)
install: $(PROG) $(SCRIPTS)
- install $(PROG) $(SCRIPTS) $(HOME)/bin/
+ install -m755 -d $(DESTDIR)$(bindir)
+ install $(PROG) $(SCRIPTS) $(DESTDIR)$(bindir)
+
+uninstall:
+ cd $(DESTDIR)$(bindir) && rm $(PROG) $(SCRIPTS)
LIB_OBJS=read-cache.o sha1_file.o usage.o object.o commit.o tree.o blob.o \
tag.o date.o
Created: git.spec (mode:100644)
--- /dev/null
+++ b/git.spec
@@ -0,0 +1,44 @@
+Name: git
+Version: 0.7
+Release: 1
+Vendor: Linus Torvalds <torvalds@osdl.org>
+Summary: git
+License: GPL
+Group: Development/Tools
+URL: http://www.kernel.org/pub/software/scm/git/
+Source: http://www.kernel.org/pub/software/scm/git/%{name}-%{version}.tar.bz2
+Provides: git = %{version}
+BuildRequires: zlib-devel openssl-devel curl-devel
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+Prereq: sh-utils diffutils
+
+%description
+git is an fast and flexible filesystem-based database designed to store directory
+trees with regard to their history. It is the base for SCM tools bild on top of
+git like cogito.
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%build
+
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make DESTDIR=$RPM_BUILD_ROOT prefix=/usr install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)
+/usr/bin/*
+#%{_mandir}/*/*
+
+%changelog
+* Thu May 2 2005 Kay Sievers <kay.sievers@vrfy.org> 0.7-1
+- rpm build for core git
+
+* Thu Apr 21 2005 Chris Wright <chrisw@osdl.org> 0.6.3-1
+- Initial rpm build
next reply other threads:[~2005-05-02 10:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-02 10:23 Kay Sievers [this message]
2005-05-02 14:52 ` [PATCH] add git.spec and adapt Makefile for RPM build Kay Sievers
2005-05-02 17:41 ` Horst von Brand
2005-05-02 18:39 ` Chris Wright
2005-05-02 18:58 ` Horst von Brand
2005-05-02 19:06 ` Paul Jakma
2005-05-02 19:13 ` Paul Jakma
2005-05-02 19:08 ` Chris Wright
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050502102303.GA22630@vrfy.org \
--to=kay.sievers@vrfy.org \
--cc=git@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).