]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - git/git.nm
glibc: Update to 2.19.
[people/ms/ipfire-3.x.git] / git / git.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = git
7 version = 1.8.1
8 release = 3
9
10 groups = Development/Tools
11 url = http://git-scm.com/
12 license = GPLv2
13 summary = Fast Version Control System.
14
15 description
16 Git is a fast, scalable, distributed revision control system with an
17 unusually rich command set that provides both high-level operations
18 and full access to internals.
19 end
20
21 source_dl = http://git-core.googlecode.com/files/
22
23 build
24 requires
25 asciidoc
26 expat-devel
27 gettext
28 libcurl-devel
29 openssl-devel
30 perl-ExtUtils-MakeMaker
31 perl-devel
32 zlib-devel
33 xmlto
34 end
35
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
50
51 # Remove shebang from bash-completion script.
52 sed -i '/^#!bash/,+1 d' contrib/completion/git-completion.bash
53 end
54
55 build
56 make %{PARALLELISMFLAGS}
57 end
58
59 make_install_targets += INSTALLDIRS=vendor
60
61 install_cmds
62 # Install man pages.
63 make install-doc DESTDIR=%{BUILDROOT}
64
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
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
82 end
83 end
84
85 packages
86 # Define %{gitcoredir} to have a more handy name.
87 gitcoredir = %{prefix}/lib/git-core
88
89 package %{name}
90 requires
91 less
92 openssh-clients
93 rsync
94 /usr/bin/vi
95 end
96
97 end
98
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*
235 %{perl_vendorlib}/Git/SVN*.pm
236 %{perl_vendorlib}/Git/SVN/
237 end
238 end
239
240 package %{name}-debuginfo
241 template DEBUGINFO
242 end
243 end