]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - git/git.nm
glibc: Update to 2.19.
[people/ms/ipfire-3.x.git] / git / git.nm
CommitLineData
e2c1801f 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
e2c1801f
MT
4###############################################################################
5
802ea3af 6name = git
b40e81d4 7version = 1.8.1
6ba1bd00 8release = 3
e2c1801f 9
802ea3af
MT
10groups = Development/Tools
11url = http://git-scm.com/
12license = GPLv2
13summary = Fast Version Control System.
e2c1801f 14
802ea3af 15description
f50cc92e
SS
16 Git is a fast, scalable, distributed revision control system with an
17 unusually rich command set that provides both high-level operations
e2c1801f 18 and full access to internals.
802ea3af
MT
19end
20
edab1dd3 21source_dl = http://git-core.googlecode.com/files/
802ea3af
MT
22
23build
24 requires
f50cc92e 25 asciidoc
802ea3af
MT
26 expat-devel
27 gettext
28 libcurl-devel
29 openssl-devel
1f9bc2f0 30 perl-ExtUtils-MakeMaker
802ea3af
MT
31 perl-devel
32 zlib-devel
f50cc92e 33 xmlto
802ea3af 34 end
e2c1801f 35
802ea3af
MT
36 prepare_cmds
37 echo "CFLAGS = %{CFLAGS}" > %{DIR_APP}/config.mak
38 echo "BLK_SHA1 = 1" >> %{DIR_APP}/config.mak
39 echo "NEEDS_CRYPTO_WITH_SSL = 1" >> %{DIR_APP}/config.mak
40 echo "NO_PYTHON = 1" >> %{DIR_APP}/config.mak
41 echo "NO_TCLTK = 1" >> %{DIR_APP}/config.mak
42 echo "ETC_GITCONFIG = /etc/gitconfig" >> %{DIR_APP}/config.mak
43 echo "DESTDIR = %{BUILDROOT}" >> %{DIR_APP}/config.mak
44 echo "INSTALL = install -p" >> %{DIR_APP}/config.mak
45 echo "GITWEB_PROJECTROOT = /var/lib/git" >> %{DIR_APP}/config.mak
46 echo "htmldir = /usr/share/doc/%{thisapp}" >> %{DIR_APP}/config.mak
47 echo "prefix = /usr" >> %{DIR_APP}/config.mak
48 echo "gitwebdir = /var/www/git" >> %{DIR_APP}/config.mak
49 echo "gitexecdir = lib/git-core" >> %{DIR_APP}/config.mak
a5248e72
MT
50
51 # Remove shebang from bash-completion script.
52 sed -i '/^#!bash/,+1 d' contrib/completion/git-completion.bash
802ea3af 53 end
e2c1801f 54
802ea3af
MT
55 build
56 make %{PARALLELISMFLAGS}
57 end
e2c1801f 58
802ea3af 59 make_install_targets += INSTALLDIRS=vendor
a5248e72
MT
60
61 install_cmds
f50cc92e
SS
62 # Install man pages.
63 make install-doc DESTDIR=%{BUILDROOT}
64
a5248e72
MT
65 # Install bash completion file.
66 mkdir -pv %{BUILDROOT}%{sysconfdir}/bash_completion.d
67 install -v -m 644 contrib/completion/git-completion.bash \
68 %{BUILDROOT}%{sysconfdir}/bash_completion.d/git
9099585c
SS
69
70 # Create folder for git-daemon.
71 mkdir -pv %{BUILDROOT}%{sharedstatedir}/git
72
73 # Create folder for gitweb.
74 mkdir -pv %{BUILDROOT}%{sysconfdir}/httpd/conf.d
75
76 # Install config files for gitweb.
77 install -pm 0664 %{DIR_SOURCE}/gitweb.conf \
78 %{BUILDROOT}%{sysconfdir}/gitweb.conf
79
80 install -pm 0644 %{DIR_SOURCE}/git.conf.httpd \
81 %{BUILDROOT}%{sysconfdir}/httpd/conf.d/git.conf
a5248e72 82 end
802ea3af 83end
e2c1801f 84
802ea3af 85packages
9099585c
SS
86 # Define %{gitcoredir} to have a more handy name.
87 gitcoredir = %{prefix}/lib/git-core
88
802ea3af
MT
89 package %{name}
90 requires
91 less
92 openssh-clients
93 rsync
94 /usr/bin/vi
95 end
1f9bc2f0
MT
96
97 end
98
9099585c
SS
99 package %{name}-daemon
100 summary = Git protocol daemon.
101 description
102 The git daemon for supporting git:// access to git repositories.
103 end
104
105 requires
106 git=%{thisver}
107 end
108
109 files
110 %{gitcoredir}/git-daemon
111 %{mandir}/man1/git-daemon*
112 %{sharedstatedir}/git
113 end
114 end
115
116 package %{name}-gitweb
117 arch = noarch
118
119 summary = Simple web interface to git repositories.
120 description
121 Simple web interface to track changes in git repositories
122 end
123
124 requires
125 git=%{thisver}
126 end
127
128 configfiles
129 %{sysconfdir}/gitweb.conf
130 %{sysconfdir}/httpd/conf.d/git.conf
131 end
132
133 files
134 %{sysconfdir}/gitweb.conf
135 %{sysconfdir}/httpd/conf.d/git.conf
136 %{mandir}/man1/gitweb*
137 %{mandir}/man5/gitweb*
138 %{localstatedir}/www/git
139 end
140 end
141
142 package %{name}-svn
143 summary = Git tools for importing Subversion repositories.
144 description = %{summary}
145
146 requires
147 git=%{thisver}
148 subversion
149 end
150
151 files
152 %{gitcoredir}/*svn*
153 %{mandir}/man1/*svn*
154 end
155 end
156
157 package %{name}-cvs
158 summary = Git tools for importing CVS repositories.
159 description = %{summary}
160
161 requires
162 git=%{thisver}
163 end
164
165 files
166 %{bindir}/git-cvsserver
167 %{gitcoredir}/*cvs*
168 %{mandir}/man1/*cvs*
169 %{mandir}/man7/*cvs*
170 end
171 end
172
173 package %{name}-p4
174 arch = noarch
175
176 summary = Git tools for working with Perforce depots.
177 description = %{summary}
178
179 requires
180 git=%{thisver}
181 end
182
183 files
184 %{gitcoredir}/*p4*
185 %{gitcoredir}mergetools/p4merge
186 %{mandir}/man1/*p4*
187 end
188 end
189
190 package %{name}-email
191 summary = Git tools for sending emails.
192 description = %{summary}
193
194 requires
195 git=%{thisver}
196 perl-Git=%{thisver}
197 end
198
199 files
200 %{gitcoredir}/git-send-email
201 %{mandir}/man1/git-send-email*
202 end
203 end
204
205 package perl-Git
206 arch = noarch
207
208 summary = Perl interface to Git.
209 description = %{summary}
210
211 requires
212 git=%{thisver}
213 end
214
215 files
216 %{mandir}/man3/Git*
217 %{perl_archlib}
218 %{perl_vendorlib}/*.pm
219 %{perl_vendorlib}/Git/*.pm
220 end
221 end
222
223 package perl-Git-SVN
224 arch = noarch
225
226 summary = Perl interface to Git::SVN.
227 description = %{summary}
228
229 requires
230 git=%{thisver}
231 end
232
233 files
234 %{mandir}/man3/Git::SVN*
6ba1bd00 235 %{perl_vendorlib}/Git/SVN*.pm
9099585c
SS
236 %{perl_vendorlib}/Git/SVN/
237 end
238 end
239
1f9bc2f0
MT
240 package %{name}-debuginfo
241 template DEBUGINFO
802ea3af
MT
242 end
243end