]>
Commit | Line | Data |
---|---|---|
0867b012 | 1 | # Pass --without docs to rpmbuild if you don't want the documentation |
faced1af | 2 | |
27dedf0c | 3 | Name: git |
a9db2974 | 4 | Version: @@VERSION@@ |
0e60471c | 5 | Release: 1%{?dist} |
7c33d3a5 | 6 | Summary: Core git tools |
a9db2974 CW |
7 | License: GPL |
8 | Group: Development/Tools | |
9 | URL: http://kernel.org/pub/software/scm/git/ | |
10 | Source: http://kernel.org/pub/software/scm/git/%{name}-%{version}.tar.gz | |
e94a45de | 11 | BuildRequires: zlib-devel >= 1.2, openssl-devel, curl-devel, expat-devel, gettext %{!?_without_docs:, xmlto, asciidoc > 6.0.3} |
0e60471c | 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
42616335 | 13 | |
42616335 | 14 | Requires: perl-Git = %{version}-%{release} |
4744d723 | 15 | Requires: zlib >= 1.2, rsync, less, openssh-clients, expat |
7c33d3a5 KH |
16 | Provides: git-core = %{version}-%{release} |
17 | Obsoletes: git-core <= 1.5.4.2 | |
18 | Obsoletes: git-p4 | |
a9db2974 CW |
19 | |
20 | %description | |
e19b91b4 NP |
21 | Git is a fast, scalable, distributed revision control system with an |
22 | unusually rich command set that provides both high-level operations | |
23 | and full access to internals. | |
a9db2974 | 24 | |
7c33d3a5 KH |
25 | The git rpm installs the core tools with minimal dependencies. To |
26 | install all git packages, including tools for integrating with other | |
27 | SCMs, install the git-all meta-package. | |
27dedf0c | 28 | |
7c33d3a5 KH |
29 | %package all |
30 | Summary: Meta-package to pull in all git tools | |
27dedf0c | 31 | Group: Development/Tools |
7c33d3a5 KH |
32 | Requires: git = %{version}-%{release} |
33 | Requires: git-svn = %{version}-%{release} | |
34 | Requires: git-cvs = %{version}-%{release} | |
35 | Requires: git-arch = %{version}-%{release} | |
36 | Requires: git-email = %{version}-%{release} | |
37 | Requires: gitk = %{version}-%{release} | |
38 | Requires: git-gui = %{version}-%{release} | |
39 | Obsoletes: git <= 1.5.4.2 | |
40 | ||
41 | %description all | |
e19b91b4 NP |
42 | Git is a fast, scalable, distributed revision control system with an |
43 | unusually rich command set that provides both high-level operations | |
44 | and full access to internals. | |
27dedf0c | 45 | |
7c33d3a5 | 46 | This is a dummy package which brings in all subpackages. |
27dedf0c | 47 | |
7d4de59b | 48 | %package svn |
0867b012 | 49 | Summary: Git tools for importing Subversion repositories |
7d4de59b | 50 | Group: Development/Tools |
7c33d3a5 | 51 | Requires: git = %{version}-%{release}, subversion |
7d4de59b JR |
52 | %description svn |
53 | Git tools for importing Subversion repositories. | |
54 | ||
55 | %package cvs | |
0867b012 | 56 | Summary: Git tools for importing CVS repositories |
7d4de59b | 57 | Group: Development/Tools |
7c33d3a5 | 58 | Requires: git = %{version}-%{release}, cvs, cvsps |
7d4de59b JR |
59 | %description cvs |
60 | Git tools for importing CVS repositories. | |
61 | ||
0867b012 CW |
62 | %package arch |
63 | Summary: Git tools for importing Arch repositories | |
64 | Group: Development/Tools | |
7c33d3a5 | 65 | Requires: git = %{version}-%{release}, tla |
0867b012 CW |
66 | %description arch |
67 | Git tools for importing Arch repositories. | |
68 | ||
7d4de59b | 69 | %package email |
0867b012 | 70 | Summary: Git tools for sending email |
7d4de59b | 71 | Group: Development/Tools |
7c33d3a5 | 72 | Requires: git = %{version}-%{release} |
7d4de59b JR |
73 | %description email |
74 | Git tools for sending email. | |
75 | ||
92360538 JH |
76 | %package gui |
77 | Summary: Git GUI tool | |
78 | Group: Development/Tools | |
7c33d3a5 | 79 | Requires: git = %{version}-%{release}, tk >= 8.4 |
92360538 JH |
80 | %description gui |
81 | Git GUI tool | |
82 | ||
27dedf0c | 83 | %package -n gitk |
ba1dbb61 TM |
84 | Summary: Git revision tree visualiser ('gitk') |
85 | Group: Development/Tools | |
7c33d3a5 | 86 | Requires: git = %{version}-%{release}, tk >= 8.4 |
27dedf0c | 87 | %description -n gitk |
ba1dbb61 TM |
88 | Git revision tree visualiser ('gitk') |
89 | ||
b9795608 PR |
90 | %package -n perl-Git |
91 | Summary: Perl interface to Git | |
92 | Group: Development/Libraries | |
7c33d3a5 | 93 | Requires: git = %{version}-%{release} |
b9795608 PR |
94 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
95 | BuildRequires: perl(Error) | |
96 | ||
97 | %description -n perl-Git | |
98 | Perl interface to Git | |
99 | ||
ab2fdb3b | 100 | %define path_settings ETC_GITCONFIG=/etc/gitconfig prefix=%{_prefix} mandir=%{_mandir} htmldir=%{_docdir}/%{name}-%{version} |
9f7a3c19 | 101 | %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
39bf13f2 | 102 | |
a9db2974 CW |
103 | %prep |
104 | %setup -q | |
105 | ||
106 | %build | |
21ad5446 | 107 | make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" \ |
39bf13f2 JH |
108 | %{path_settings} \ |
109 | all %{!?_without_docs: doc} | |
a9db2974 CW |
110 | |
111 | %install | |
112 | rm -rf $RPM_BUILD_ROOT | |
0b2958a8 | 113 | make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" DESTDIR=$RPM_BUILD_ROOT \ |
39bf13f2 | 114 | %{path_settings} \ |
5250929d | 115 | INSTALLDIRS=vendor install %{!?_without_docs: install-doc} |
a9c7c436 | 116 | test ! -d $RPM_BUILD_ROOT%{python_sitelib} || rm -fr $RPM_BUILD_ROOT%{python_sitelib} |
b9795608 PR |
117 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' |
118 | find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';' | |
119 | find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec rm -f {} ';' | |
a9db2974 | 120 | |
21ad5446 | 121 | (find $RPM_BUILD_ROOT%{_bindir} -type f | grep -vE "archimport|svn|cvs|email|gitk|git-gui|git-citool" | sed -e s@^$RPM_BUILD_ROOT@@) > bin-man-doc-files |
f28ac70f | 122 | (find $RPM_BUILD_ROOT%{_libexecdir}/git-core -type f | grep -vE "archimport|svn|cvs|email|gitk|git-gui|git-citool" | sed -e s@^$RPM_BUILD_ROOT@@) >> bin-man-doc-files |
0503f9c1 | 123 | (find $RPM_BUILD_ROOT%{perl_vendorlib} -type f | sed -e s@^$RPM_BUILD_ROOT@@) >> perl-files |
7d4de59b | 124 | %if %{!?_without_docs:1}0 |
21ad5446 | 125 | (find $RPM_BUILD_ROOT%{_mandir} $RPM_BUILD_ROOT/Documentation -type f | grep -vE "archimport|svn|git-cvs|email|gitk|git-gui|git-citool" | sed -e s@^$RPM_BUILD_ROOT@@ -e 's/$/*/' ) >> bin-man-doc-files |
1434dbce PR |
126 | %else |
127 | rm -rf $RPM_BUILD_ROOT%{_mandir} | |
7d4de59b JR |
128 | %endif |
129 | ||
3bfdf87c IWC |
130 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d |
131 | install -m 644 -T contrib/completion/git-completion.bash $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/git | |
132 | ||
a9db2974 CW |
133 | %clean |
134 | rm -rf $RPM_BUILD_ROOT | |
135 | ||
7c33d3a5 KH |
136 | %files -f bin-man-doc-files |
137 | %defattr(-,root,root) | |
138 | %{_datadir}/git-core/ | |
139 | %doc README COPYING Documentation/*.txt | |
140 | %{!?_without_docs: %doc Documentation/*.html Documentation/howto} | |
141 | %{!?_without_docs: %doc Documentation/technical} | |
3bfdf87c | 142 | %{_sysconfdir}/bash_completion.d |
27dedf0c | 143 | |
7d4de59b | 144 | %files svn |
0867b012 | 145 | %defattr(-,root,root) |
f28ac70f | 146 | %{_libexecdir}/git-core/*svn* |
0867b012 | 147 | %doc Documentation/*svn*.txt |
7d4de59b | 148 | %{!?_without_docs: %{_mandir}/man1/*svn*.1*} |
0867b012 | 149 | %{!?_without_docs: %doc Documentation/*svn*.html } |
7d4de59b JR |
150 | |
151 | %files cvs | |
0867b012 CW |
152 | %defattr(-,root,root) |
153 | %doc Documentation/*git-cvs*.txt | |
f1f15fbf | 154 | %{_bindir}/git-cvsserver |
f28ac70f | 155 | %{_libexecdir}/git-core/*cvs* |
7d4de59b | 156 | %{!?_without_docs: %{_mandir}/man1/*cvs*.1*} |
0867b012 CW |
157 | %{!?_without_docs: %doc Documentation/*git-cvs*.html } |
158 | ||
159 | %files arch | |
160 | %defattr(-,root,root) | |
a4e3bddc | 161 | %doc Documentation/git-archimport.txt |
f28ac70f | 162 | %{_libexecdir}/git-core/git-archimport |
a4e3bddc JH |
163 | %{!?_without_docs: %{_mandir}/man1/git-archimport.1*} |
164 | %{!?_without_docs: %doc Documentation/git-archimport.html } | |
7d4de59b JR |
165 | |
166 | %files email | |
0867b012 CW |
167 | %defattr(-,root,root) |
168 | %doc Documentation/*email*.txt | |
f28ac70f | 169 | %{_libexecdir}/git-core/*email* |
7d4de59b | 170 | %{!?_without_docs: %{_mandir}/man1/*email*.1*} |
0867b012 | 171 | %{!?_without_docs: %doc Documentation/*email*.html } |
7d4de59b | 172 | |
92360538 JH |
173 | %files gui |
174 | %defattr(-,root,root) | |
f28ac70f NTND |
175 | %{_libexecdir}/git-core/git-gui |
176 | %{_libexecdir}/git-core/git-citool | |
aaab7ea3 | 177 | %{_libexecdir}/git-core/git-gui--askpass |
7b6e0eb3 | 178 | %{_datadir}/git-gui/ |
4fb8c807 | 179 | %{!?_without_docs: %{_mandir}/man1/git-gui.1*} |
37cd4f7e | 180 | %{!?_without_docs: %doc Documentation/git-gui.html} |
4fb8c807 | 181 | %{!?_without_docs: %{_mandir}/man1/git-citool.1*} |
37cd4f7e | 182 | %{!?_without_docs: %doc Documentation/git-citool.html} |
92360538 | 183 | |
27dedf0c | 184 | %files -n gitk |
ba1dbb61 TM |
185 | %defattr(-,root,root) |
186 | %doc Documentation/*gitk*.txt | |
187 | %{_bindir}/*gitk* | |
a5d7e3a2 | 188 | %{_datadir}/gitk/ |
ba1dbb61 TM |
189 | %{!?_without_docs: %{_mandir}/man1/*gitk*.1*} |
190 | %{!?_without_docs: %doc Documentation/*gitk*.html } | |
191 | ||
b9795608 PR |
192 | %files -n perl-Git -f perl-files |
193 | %defattr(-,root,root) | |
194 | ||
7c33d3a5 KH |
195 | %files all |
196 | # No files for you! | |
a9db2974 CW |
197 | |
198 | %changelog | |
3bfdf87c IWC |
199 | * Fri Mar 26 2010 Ian Ward Comfort <icomfort@stanford.edu> |
200 | - Ship bash completion support from contrib/ in the core package. | |
201 | ||
9f7a3c19 JH |
202 | * Sun Jan 31 2010 Junio C Hamano <gitster@pobox.com> |
203 | - Do not use %define inside %{!?...} construct. | |
204 | ||
a9c7c436 JH |
205 | * Sat Jan 30 2010 Junio C Hamano <gitster@pobox.com> |
206 | - We don't ship Python bits until a real foreign scm interface comes. | |
207 | ||
ab2fdb3b DM |
208 | * Mon Feb 04 2009 David J. Mellor <dmellor@whistlingcat.com> |
209 | - fixed broken git help -w after renaming the git-core package to git. | |
210 | ||
f1f15fbf QT |
211 | * Fri Sep 12 2008 Quy Tonthat <qtonthat@gmail.com> |
212 | - move git-cvsserver to bindir. | |
213 | ||
4744d723 JH |
214 | * Sun Jun 15 2008 Junio C Hamano <gitster@pobox.com> |
215 | - Remove curl from Requires list. | |
216 | ||
7c33d3a5 KH |
217 | * Fri Feb 15 2008 Kristian Høgsberg <krh@redhat.com> |
218 | - Rename git-core to just git and rename meta package from git to git-all. | |
219 | ||
e94a45de JB |
220 | * Sun Feb 03 2008 James Bowes <jbowes@dangerouslyinc.com> |
221 | - Add a BuildRequires for gettext | |
222 | ||
a5d7e3a2 JH |
223 | * Fri Jan 11 2008 Junio C Hamano <gitster@pobox.com> |
224 | - Include gitk message files | |
225 | ||
42616335 JB |
226 | * Sun Jan 06 2008 James Bowes <jbowes@dangerouslyinc.com> |
227 | - Make the metapackage require the same version of the subpackages. | |
228 | ||
39bf13f2 JH |
229 | * Wed Dec 12 2007 Junio C Hamano <gitster@pobox.com> |
230 | - Adjust htmldir to point at /usr/share/doc/git-core-$version/ | |
231 | ||
21ad5446 SE |
232 | * Sun Jul 15 2007 Sean Estabrooks <seanlkml@sympatico.ca> |
233 | - Removed p4import. | |
234 | ||
4fb8c807 QT |
235 | * Tue Jun 26 2007 Quy Tonthat <qtonthat@gmail.com> |
236 | - Fixed problems looking for wrong manpages. | |
237 | ||
37cd4f7e SP |
238 | * Thu Jun 21 2007 Shawn O. Pearce <spearce@spearce.org> |
239 | - Added documentation files for git-gui | |
240 | ||
b24dd51b QT |
241 | * Tue May 13 2007 Quy Tonthat <qtonthat@gmail.com> |
242 | - Added lib files for git-gui | |
243 | - Added Documentation/technical (As needed by Git Users Manual) | |
244 | ||
22f09585 QT |
245 | * Tue May 8 2007 Quy Tonthat <qtonthat@gmail.com> |
246 | - Added howto files | |
247 | ||
7a585c0e ER |
248 | * Tue Mar 27 2007 Eygene Ryabinkin <rea-git@codelabs.ru> |
249 | - Added the git-p4 package: Perforce import stuff. | |
250 | ||
03aa8ff3 | 251 | * Mon Feb 13 2007 Nicolas Pitre <nico@fluxnic.net> |
e19b91b4 NP |
252 | - Update core package description (Git isn't as stupid as it used to be) |
253 | ||
92360538 JH |
254 | * Mon Feb 12 2007 Junio C Hamano <junkio@cox.net> |
255 | - Add git-gui and git-citool. | |
256 | ||
27dedf0c JH |
257 | * Mon Nov 14 2005 H. Peter Anvin <hpa@zytor.com> 0.99.9j-1 |
258 | - Change subpackage names to git-<name> instead of git-core-<name> | |
259 | - Create empty root package which brings in all subpackages | |
260 | - Rename git-tk -> gitk | |
261 | ||
0867b012 CW |
262 | * Thu Nov 10 2005 Chris Wright <chrisw@osdl.org> 0.99.9g-1 |
263 | - zlib dependency fix | |
264 | - Minor cleanups from split | |
265 | - Move arch import to separate package as well | |
266 | ||
7d4de59b JR |
267 | * Tue Sep 27 2005 Jim Radford <radford@blackbean.org> |
268 | - Move programs with non-standard dependencies (svn, cvs, email) | |
269 | into separate packages | |
270 | ||
8fc7ba85 PA |
271 | * Tue Sep 27 2005 H. Peter Anvin <hpa@zytor.com> |
272 | - parallelize build | |
e8f71fce | 273 | - COPTS -> CFLAGS |
8fc7ba85 | 274 | |
0e60471c CW |
275 | * Fri Sep 16 2005 Chris Wright <chrisw@osdl.org> 0.99.6-1 |
276 | - update to 0.99.6 | |
277 | ||
c6ae6159 HB |
278 | * Fri Sep 16 2005 Horst H. von Brand <vonbrand@inf.utfsm.cl> |
279 | - Linus noticed that less is required, added to the dependencies | |
280 | ||
663a5ed5 HB |
281 | * Sun Sep 11 2005 Horst H. von Brand <vonbrand@inf.utfsm.cl> |
282 | - Updated dependencies | |
283 | - Don't assume manpages are gzipped | |
284 | ||
0e60471c CW |
285 | * Thu Aug 18 2005 Chris Wright <chrisw@osdl.org> 0.99.4-4 |
286 | - drop sh_utils, sh-utils, diffutils, mktemp, and openssl Requires | |
287 | - use RPM_OPT_FLAGS in spec file, drop patch0 | |
288 | ||
289 | * Wed Aug 17 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.99.4-3 | |
290 | - use dist tag to differentiate between branches | |
291 | - use rpm optflags by default (patch0) | |
292 | - own %{_datadir}/git-core/ | |
293 | ||
294 | * Mon Aug 15 2005 Chris Wright <chrisw@osdl.org> | |
295 | - update spec file to fix Buildroot, Requires, and drop Vendor | |
296 | ||
24db845c HB |
297 | * Sun Aug 07 2005 Horst H. von Brand <vonbrand@inf.utfsm.cl> |
298 | - Redid the description | |
299 | - Cut overlong make line, loosened changelog a bit | |
300 | - I think Junio (or perhaps OSDL?) should be vendor... | |
301 | ||
49ce3d0c EB |
302 | * Thu Jul 14 2005 Eric Biederman <ebiederm@xmission.com> |
303 | - Add the man pages, and the --without docs build option | |
24db845c | 304 | |
a9db2974 CW |
305 | * Wed Jul 7 2005 Chris Wright <chris@osdl.org> |
306 | - initial git spec file |