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