git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: SPEC files for Git

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Dec 1, 2008, 16:00 UTC
Message-ID
<49340A03.5090708@drmicha.warpmail.net>
In-Reply-To
<4933FFC6.8080306@morey-chaisemartin.com>
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
Previous: Jakub NarebskiNext: Todd Zullinger
Message 3 of 4 in “SPEC files for Git”
  1. Nicolas Morey-ChaisemartinDec 1, 2008
  2. Jakub NarebskiDec 1, 2008
  3. Michael J GruberDec 1, 2008
  4. Todd ZullingerDec 1, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.