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