threads / discuss / 16539

SPEC files for Git

Subject: SPEC files for Git

## tl;dr

4 messages between Dec 1, 2008 and Dec 1, 2008.

replies: 3people: 4as markdown or json

Nicolas Morey-Chaisemartin· Dec 1, 2008, 15:16 UTC · lore
Hi,

I'm trying to recompile gitweb1.6.0.4-1 for RHEL5, but I'm missing the spec file. I've checked the git SRP. It generates a lot of things but no RPM for gitweb.

Is there any place with an official spec file? Or has anyone made one which he could share?

Best regards
Nicolas
Jakub Narebski· Dec 1, 2008, 15:57 UTC · re: Nicolas Morey-Chaisemartin · lore

Re: RPM for gitweb (was: SPEC files for git)

Nicolas Morey-Chaisemartin <devel@morey-chaisemartin.com> writes:
> I'm trying to recompile gitweb-1.6.0.4-1 for RHEL5, but I'm missing
> the spec file.  I've checked the git SRPM. 

Which SRPM? The one for RHEL or Fedora Core, or the one from http://www.kernel.org/pub/software/scm/git/RPMS/SRPMS/ ?

> It generates a lot of things but no RPM for gitweb.
> 
> Is there any place with an official spec file? Or has anyone made one
> which he could share?

The .spec file for various git subpackages (git, git-all, git-svn, gitk, git-gui, git-email, perl-Git, etc.) is in git src.rpm file, and source for it can be found as git.spec.in file in git.git repository.

There is no gitweb RPM subpackage in generic .spec file from git.git repository (from kernel.org) because 1.) installation of CGI scripts (or mod_perl legacy scripts) depends on distribution (what web server is installed, where and how config for this web server is managed); 2.) there is no standard place where to put git repositories to be hosted by gitweb like /var/www/html/ or /var/www/cgi-bin/

Read gitweb/INSTALL[1] from git repository on how to install gitweb.
[1] http://repo.or.cz/w/git.git/:/gitweb/README
-- 
Jakub Narebski
Poland
ShadeHawk on #git
Michael J Gruber· Dec 1, 2008, 16:00 UTC · re: Nicolas Morey-Chaisemartin · lore

Re: SPEC files for Git

Nicolas Morey-Chaisemartin venit, vidit, dixit 01.12.2008 16:16:
Show 6 quoted lines
> Hi,
> 
> I'm trying to recompile gitweb1.6.0.4-1 for RHEL5, but I'm missing the
> spec file.
> I've checked the git SRP. It generates a lot of things but no RPM for
> gitweb.

RHEL5 probably comes with git 1.5.something, and its spec file won't work nicely with git 1.6.x (because of new install locations).

> Is there any place with an official spec file? Or has anyone made one
> which he could share?

git source comes with a spec file template. If you have a git checkout (or source tree) then "make git.spec" will generate it.

It does not generate a gitweb subpackage, but you only need to add a few lines, following the example of the archimport package, say.

Or, even simpler: Just take the srpm from Fedora 10 and rebuild (gitweb is a subpackage of git in F10, so you need the git srpm (e.g. 'yumdownloader --source gitweb' on an F10 instance). Installing the srpm (as non-root) gives you the spec, I'm sure you know ;)

Michael
Todd Zullinger· Dec 1, 2008, 16:42 UTC · re: Nicolas Morey-Chaisemartin · lore

Re: SPEC files for Git

Nicolas Morey-Chaisemartin wrote:
Show 6 quoted lines
> I'm trying to recompile gitweb1.6.0.4-1 for RHEL5, but I'm missing
> the spec file.  I've checked the git SRP. It generates a lot of
> things but no RPM for gitweb.
> 
> Is there any place with an official spec file? Or has anyone made
> one which he could share?

Far from official, but here's what I've been using, based on the Fedora and EPEL packages: http://tmz.fedorapeople.org/tmp/git/el5/

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Many people are secretly interested in life.

← back to recent threads