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