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