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