Skip to contentSkip to conversation

SPEC files for Git

DISCUSSION Nicolas Morey-Chaisemartin 4 participants 4 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 6 lines · Nicolas Morey-Chaisemartin

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/

Signature · 3 lines
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Many people are secretly interested in life.
#2 lore raw
In reply to Nicolas Morey-Chaisemartin

Nicolas Morey-Chaisemartin venit, vidit, dixit 01.12.2008 16:16:

Quoted 6 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).

Quoted 2 lines

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

#3 lore raw

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

In reply to Nicolas Morey-Chaisemartin
Quoted 2 lines · Nicolas Morey-Chaisemartin

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/ ?

Quoted 4 lines

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

Signature · 3 lines
Jakub Narebski
Poland
ShadeHawk on #git