cache_tree_find(): remove redundant check
[git/mjg.git] / git.spec.in
blobd61d537ef0cbdfa9d4a719ca622e148bbe436fd1
1 # Pass --without docs to rpmbuild if you don't want the documentation
3 Name: git
4 Version: @@VERSION@@
5 Release: 1%{?dist}
6 Summary: Core git tools
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
11 BuildRequires: zlib-devel >= 1.2, openssl-devel, curl-devel, expat-devel, gettext %{!?_without_docs:, xmlto, asciidoc > 6.0.3}
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
14 Requires: perl-Git = %{version}-%{release}
15 Requires: zlib >= 1.2, rsync, less, openssh-clients, expat
16 Provides: git-core = %{version}-%{release}
17 Obsoletes: git-core <= 1.5.4.2
18 Obsoletes: git-p4
20 %description
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.
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.
29 %package all
30 Summary: Meta-package to pull in all git tools
31 Group: Development/Tools
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: gitweb = %{version}-%{release}
39 Requires: git-gui = %{version}-%{release}
40 Obsoletes: git <= 1.5.4.2
42 %description all
43 Git is a fast, scalable, distributed revision control system with an
44 unusually rich command set that provides both high-level operations
45 and full access to internals.
47 This is a dummy package which brings in all subpackages.
49 %package svn
50 Summary: Git tools for importing Subversion repositories
51 Group: Development/Tools
52 Requires: git = %{version}-%{release}, subversion
53 %description svn
54 Git tools for importing Subversion repositories.
56 %package cvs
57 Summary: Git tools for importing CVS repositories
58 Group: Development/Tools
59 Requires: git = %{version}-%{release}, cvs, cvsps
60 %description cvs
61 Git tools for importing CVS repositories.
63 %package arch
64 Summary: Git tools for importing Arch repositories
65 Group: Development/Tools
66 Requires: git = %{version}-%{release}, tla
67 %description arch
68 Git tools for importing Arch repositories.
70 %package email
71 Summary: Git tools for sending email
72 Group: Development/Tools
73 Requires: git = %{version}-%{release}
74 %description email
75 Git tools for sending email.
77 %package gui
78 Summary: Git GUI tool
79 Group: Development/Tools
80 Requires: git = %{version}-%{release}, tk >= 8.4
81 %description gui
82 Git GUI tool
84 %package -n gitk
85 Summary: Git revision tree visualiser ('gitk')
86 Group: Development/Tools
87 Requires: git = %{version}-%{release}, tk >= 8.4
88 %description -n gitk
89 Git revision tree visualiser ('gitk')
91 %package -n gitweb
92 Summary: Git web interface
93 Group: Development/Tools
94 Requires: git = %{version}-%{release}
95 %description -n gitweb
96 Browsing git repository on the web
98 %package -n perl-Git
99 Summary: Perl interface to Git
100 Group: Development/Libraries
101 Requires: git = %{version}-%{release}
102 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
103 BuildRequires: perl(Error)
104 BuildRequires: perl(ExtUtils::MakeMaker)
106 %description -n perl-Git
107 Perl interface to Git
109 %define path_settings ETC_GITCONFIG=/etc/gitconfig prefix=%{_prefix} mandir=%{_mandir} htmldir=%{_docdir}/%{name}-%{version}
110 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
112 %prep
113 %setup -q
115 %build
116 make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" \
117 %{path_settings} \
118 all %{!?_without_docs: doc}
120 %install
121 rm -rf $RPM_BUILD_ROOT
122 make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" DESTDIR=$RPM_BUILD_ROOT \
123 %{path_settings} \
124 INSTALLDIRS=vendor install %{!?_without_docs: install-doc}
125 test ! -d $RPM_BUILD_ROOT%{python_sitelib} || rm -fr $RPM_BUILD_ROOT%{python_sitelib}
126 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
127 find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
128 find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec rm -f {} ';'
130 (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
131 (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
132 (find $RPM_BUILD_ROOT%{perl_vendorlib} -type f | sed -e s@^$RPM_BUILD_ROOT@@) >> perl-files
133 %if %{!?_without_docs:1}0
134 (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
135 %else
136 rm -rf $RPM_BUILD_ROOT%{_mandir}
137 %endif
138 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
140 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
141 install -m 644 -T contrib/completion/git-completion.bash $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/git
143 %clean
144 rm -rf $RPM_BUILD_ROOT
146 %files -f bin-man-doc-files
147 %defattr(-,root,root)
148 %{_datadir}/git-core/
149 %doc README COPYING Documentation/*.txt
150 %{!?_without_docs: %doc Documentation/*.html Documentation/howto}
151 %{!?_without_docs: %doc Documentation/technical}
152 %{_sysconfdir}/bash_completion.d
154 %files svn
155 %defattr(-,root,root)
156 %{_libexecdir}/git-core/*svn*
157 %doc Documentation/*svn*.txt
158 %{!?_without_docs: %{_mandir}/man1/*svn*.1*}
159 %{!?_without_docs: %doc Documentation/*svn*.html }
161 %files cvs
162 %defattr(-,root,root)
163 %doc Documentation/*git-cvs*.txt
164 %{_bindir}/git-cvsserver
165 %{_libexecdir}/git-core/*cvs*
166 %{!?_without_docs: %{_mandir}/man1/*cvs*.1*}
167 %{!?_without_docs: %doc Documentation/*git-cvs*.html }
169 %files arch
170 %defattr(-,root,root)
171 %doc Documentation/git-archimport.txt
172 %{_libexecdir}/git-core/git-archimport
173 %{!?_without_docs: %{_mandir}/man1/git-archimport.1*}
174 %{!?_without_docs: %doc Documentation/git-archimport.html }
176 %files email
177 %defattr(-,root,root)
178 %doc Documentation/*email*.txt
179 %{_libexecdir}/git-core/*email*
180 %{!?_without_docs: %{_mandir}/man1/*email*.1*}
181 %{!?_without_docs: %doc Documentation/*email*.html }
183 %files gui
184 %defattr(-,root,root)
185 %{_libexecdir}/git-core/git-gui
186 %{_libexecdir}/git-core/git-citool
187 %{_libexecdir}/git-core/git-gui--askpass
188 %{_datadir}/git-gui/
189 %{!?_without_docs: %{_mandir}/man1/git-gui.1*}
190 %{!?_without_docs: %doc Documentation/git-gui.html}
191 %{!?_without_docs: %{_mandir}/man1/git-citool.1*}
192 %{!?_without_docs: %doc Documentation/git-citool.html}
194 %files -n gitk
195 %defattr(-,root,root)
196 %doc Documentation/*gitk*.txt
197 %{_bindir}/*gitk*
198 %{_datadir}/gitk/
199 %{!?_without_docs: %{_mandir}/man1/*gitk*.1*}
200 %{!?_without_docs: %doc Documentation/*gitk*.html }
202 %files -n gitweb
203 %defattr(-,root,root)
204 %doc gitweb/README gitweb/INSTALL Documentation/*gitweb*.txt
205 %{_datadir}/gitweb
206 %{!?_without_docs: %{_mandir}/man1/*gitweb*.1*}
207 %{!?_without_docs: %{_mandir}/man5/*gitweb*.5*}
208 %{!?_without_docs: %doc Documentation/*gitweb*.html }
210 %files -n perl-Git -f perl-files
211 %defattr(-,root,root)
213 %files all
214 # No files for you!
216 %changelog
217 * Sun Sep 18 2011 Jakub Narebski <jnareb@gmail.com>
218 - Add gitweb manpages to 'gitweb' subpackage
220 * Wed Jun 30 2010 Junio C Hamano <gitster@pobox.com>
221 - Add 'gitweb' subpackage.
223 * Fri Mar 26 2010 Ian Ward Comfort <icomfort@stanford.edu>
224 - Ship bash completion support from contrib/ in the core package.
226 * Sun Jan 31 2010 Junio C Hamano <gitster@pobox.com>
227 - Do not use %define inside %{!?...} construct.
229 * Sat Jan 30 2010 Junio C Hamano <gitster@pobox.com>
230 - We don't ship Python bits until a real foreign scm interface comes.
232 * Mon Feb 04 2009 David J. Mellor <dmellor@whistlingcat.com>
233 - fixed broken git help -w after renaming the git-core package to git.
235 * Fri Sep 12 2008 Quy Tonthat <qtonthat@gmail.com>
236 - move git-cvsserver to bindir.
238 * Sun Jun 15 2008 Junio C Hamano <gitster@pobox.com>
239 - Remove curl from Requires list.
241 * Fri Feb 15 2008 Kristian Høgsberg <krh@redhat.com>
242 - Rename git-core to just git and rename meta package from git to git-all.
244 * Sun Feb 03 2008 James Bowes <jbowes@dangerouslyinc.com>
245 - Add a BuildRequires for gettext
247 * Fri Jan 11 2008 Junio C Hamano <gitster@pobox.com>
248 - Include gitk message files
250 * Sun Jan 06 2008 James Bowes <jbowes@dangerouslyinc.com>
251 - Make the metapackage require the same version of the subpackages.
253 * Wed Dec 12 2007 Junio C Hamano <gitster@pobox.com>
254 - Adjust htmldir to point at /usr/share/doc/git-core-$version/
256 * Sun Jul 15 2007 Sean Estabrooks <seanlkml@sympatico.ca>
257 - Removed p4import.
259 * Tue Jun 26 2007 Quy Tonthat <qtonthat@gmail.com>
260 - Fixed problems looking for wrong manpages.
262 * Thu Jun 21 2007 Shawn O. Pearce <spearce@spearce.org>
263 - Added documentation files for git-gui
265 * Tue May 13 2007 Quy Tonthat <qtonthat@gmail.com>
266 - Added lib files for git-gui
267 - Added Documentation/technical (As needed by Git Users Manual)
269 * Tue May 8 2007 Quy Tonthat <qtonthat@gmail.com>
270 - Added howto files
272 * Tue Mar 27 2007 Eygene Ryabinkin <rea-git@codelabs.ru>
273 - Added the git-p4 package: Perforce import stuff.
275 * Mon Feb 13 2007 Nicolas Pitre <nico@fluxnic.net>
276 - Update core package description (Git isn't as stupid as it used to be)
278 * Mon Feb 12 2007 Junio C Hamano <junkio@cox.net>
279 - Add git-gui and git-citool.
281 * Mon Nov 14 2005 H. Peter Anvin <hpa@zytor.com> 0.99.9j-1
282 - Change subpackage names to git-<name> instead of git-core-<name>
283 - Create empty root package which brings in all subpackages
284 - Rename git-tk -> gitk
286 * Thu Nov 10 2005 Chris Wright <chrisw@osdl.org> 0.99.9g-1
287 - zlib dependency fix
288 - Minor cleanups from split
289 - Move arch import to separate package as well
291 * Tue Sep 27 2005 Jim Radford <radford@blackbean.org>
292 - Move programs with non-standard dependencies (svn, cvs, email)
293 into separate packages
295 * Tue Sep 27 2005 H. Peter Anvin <hpa@zytor.com>
296 - parallelize build
297 - COPTS -> CFLAGS
299 * Fri Sep 16 2005 Chris Wright <chrisw@osdl.org> 0.99.6-1
300 - update to 0.99.6
302 * Fri Sep 16 2005 Horst H. von Brand <vonbrand@inf.utfsm.cl>
303 - Linus noticed that less is required, added to the dependencies
305 * Sun Sep 11 2005 Horst H. von Brand <vonbrand@inf.utfsm.cl>
306 - Updated dependencies
307 - Don't assume manpages are gzipped
309 * Thu Aug 18 2005 Chris Wright <chrisw@osdl.org> 0.99.4-4
310 - drop sh_utils, sh-utils, diffutils, mktemp, and openssl Requires
311 - use RPM_OPT_FLAGS in spec file, drop patch0
313 * Wed Aug 17 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.99.4-3
314 - use dist tag to differentiate between branches
315 - use rpm optflags by default (patch0)
316 - own %{_datadir}/git-core/
318 * Mon Aug 15 2005 Chris Wright <chrisw@osdl.org>
319 - update spec file to fix Buildroot, Requires, and drop Vendor
321 * Sun Aug 07 2005 Horst H. von Brand <vonbrand@inf.utfsm.cl>
322 - Redid the description
323 - Cut overlong make line, loosened changelog a bit
324 - I think Junio (or perhaps OSDL?) should be vendor...
326 * Thu Jul 14 2005 Eric Biederman <ebiederm@xmission.com>
327 - Add the man pages, and the --without docs build option
329 * Wed Jul 7 2005 Chris Wright <chris@osdl.org>
330 - initial git spec file