1 | # Note: this .spec is borrowed from http://pkgs.fedoraproject.org/cgit/rpms/git.git
|
---|
2 |
|
---|
3 | # Pass --without docs to rpmbuild if you don't want the documentation (force it for now)
|
---|
4 | %define _without_docs 1
|
---|
5 |
|
---|
6 | %global gitcoredir %{_libexecdir}/git-core
|
---|
7 | %global noarch_sub 1
|
---|
8 | %global libcurl_devel libcurl-devel
|
---|
9 | %global docbook_suppress_sp 0
|
---|
10 | %global enable_ipv6 0
|
---|
11 | %global use_prebuilt_docs 0
|
---|
12 |
|
---|
13 | %global bashcompdir %{_sysconfdir}/bash_completion.d
|
---|
14 | %global bashcomproot %{bashcompdir}
|
---|
15 | %global use_systemd 0
|
---|
16 |
|
---|
17 | Name: git
|
---|
18 | Version: 2.11.0
|
---|
19 | Release: 1%{?dist}
|
---|
20 | Summary: Fast Version Control System
|
---|
21 | License: GPLv2
|
---|
22 | Group: Development/Tools
|
---|
23 | URL: https://git-scm.com/
|
---|
24 |
|
---|
25 | %define svn_url http://svn.netlabs.org/repos/ports/git/trunk
|
---|
26 | %define svn_rev 1885
|
---|
27 |
|
---|
28 | Source: %{name}-%{version}-r%{svn_rev}.zip
|
---|
29 |
|
---|
30 | BuildRequires: gcc make subversion zip
|
---|
31 |
|
---|
32 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
---|
33 |
|
---|
34 | %if ! %{use_prebuilt_docs} && ! 0%{?_without_docs}
|
---|
35 | BuildRequires: asciidoc >= 8.4.1
|
---|
36 | BuildRequires: xmlto
|
---|
37 | %endif
|
---|
38 | #BuildRequires: emacs
|
---|
39 | BuildRequires: expat-devel
|
---|
40 | BuildRequires: gettext
|
---|
41 | BuildRequires: %{libcurl_devel}
|
---|
42 | #BuildRequires: pcre-devel
|
---|
43 | #BuildRequires: perl-generators
|
---|
44 | #BuildRequires: perl(Test)
|
---|
45 | BuildRequires: openssl-devel
|
---|
46 | BuildRequires: zlib-devel >= 1.2
|
---|
47 | %if %{use_systemd}
|
---|
48 | # For macros
|
---|
49 | BuildRequires: systemd
|
---|
50 | %endif
|
---|
51 |
|
---|
52 | Requires: git-core = %{version}-%{release}
|
---|
53 | Requires: git-core-doc = %{version}-%{release}
|
---|
54 | #Requires: perl(Error)
|
---|
55 | %if ! %{defined perl_bootstrap}
|
---|
56 | #Requires: perl(Term::ReadKey)
|
---|
57 | %endif
|
---|
58 | Requires: perl-Git = %{version}-%{release}
|
---|
59 |
|
---|
60 | # Obsolete git-arch
|
---|
61 | Obsoletes: git-arch < %{version}-%{release}
|
---|
62 |
|
---|
63 | %description
|
---|
64 | Git is a fast, scalable, distributed revision control system with an
|
---|
65 | unusually rich command set that provides both high-level operations
|
---|
66 | and full access to internals.
|
---|
67 |
|
---|
68 | The git rpm installs common set of tools which are usually using with
|
---|
69 | small amount of dependencies. To install all git packages, including
|
---|
70 | tools for integrating with other SCMs, install the git-all meta-package.
|
---|
71 |
|
---|
72 | %package all
|
---|
73 | Summary: Meta-package to pull in all git tools
|
---|
74 | Group: Development/Tools
|
---|
75 | %if %{noarch_sub}
|
---|
76 | BuildArch: noarch
|
---|
77 | %endif
|
---|
78 | Requires: git = %{version}-%{release}
|
---|
79 | Requires: git-cvs = %{version}-%{release}
|
---|
80 | Requires: git-email = %{version}-%{release}
|
---|
81 | Requires: git-gui = %{version}-%{release}
|
---|
82 | Requires: git-svn = %{version}-%{release}
|
---|
83 | Requires: git-p4 = %{version}-%{release}
|
---|
84 | Requires: gitk = %{version}-%{release}
|
---|
85 | Requires: perl-Git = %{version}-%{release}
|
---|
86 | %if ! %{defined perl_bootstrap}
|
---|
87 | #Requires: perl(Term::ReadKey)
|
---|
88 | %endif
|
---|
89 | #Requires: emacs-git = %{version}-%{release}
|
---|
90 | Obsoletes: git <= 1.5.4.3
|
---|
91 |
|
---|
92 | %description all
|
---|
93 | Git is a fast, scalable, distributed revision control system with an
|
---|
94 | unusually rich command set that provides both high-level operations
|
---|
95 | and full access to internals.
|
---|
96 |
|
---|
97 | This is a dummy package which brings in all subpackages.
|
---|
98 |
|
---|
99 | %package core
|
---|
100 | Summary: Core package of git with minimal funcionality
|
---|
101 | Group: Development/Tools
|
---|
102 | Requires: less
|
---|
103 | #Requires: openssh-clients
|
---|
104 | #Requires: rsync
|
---|
105 | Requires: zlib >= 1.2
|
---|
106 | %description core
|
---|
107 | Git is a fast, scalable, distributed revision control system with an
|
---|
108 | unusually rich command set that provides both high-level operations
|
---|
109 | and full access to internals.
|
---|
110 |
|
---|
111 | The git-core rpm installs really the core tools with minimal
|
---|
112 | dependencies. Install git package for common set of tools.
|
---|
113 | To install all git packages, including tools for integrating with
|
---|
114 | other SCMs, install the git-all meta-package.
|
---|
115 |
|
---|
116 | %package core-doc
|
---|
117 | Summary: Documentation files for git-core
|
---|
118 | Group: Development/Tools
|
---|
119 | Requires: git-core = %{version}-%{release}
|
---|
120 |
|
---|
121 | %description core-doc
|
---|
122 | Documentation files for git-core package including man pages.
|
---|
123 |
|
---|
124 | %package daemon
|
---|
125 | Summary: Git protocol dÊmon
|
---|
126 | Group: Development/Tools
|
---|
127 | Requires: git = %{version}-%{release}
|
---|
128 | %if %{use_systemd}
|
---|
129 | Requires: systemd
|
---|
130 | Requires(post): systemd
|
---|
131 | Requires(preun): systemd
|
---|
132 | Requires(postun): systemd
|
---|
133 | %else
|
---|
134 | #Requires: xinetd
|
---|
135 | %endif
|
---|
136 | %description daemon
|
---|
137 | The git dÊmon for supporting git:// access to git repositories
|
---|
138 |
|
---|
139 | %if 0
|
---|
140 | %package -n gitweb
|
---|
141 | Summary: Simple web interface to git repositories
|
---|
142 | Group: Development/Tools
|
---|
143 | %if %{noarch_sub}
|
---|
144 | BuildArch: noarch
|
---|
145 | %endif
|
---|
146 | Requires: git = %{version}-%{release}
|
---|
147 |
|
---|
148 | %description -n gitweb
|
---|
149 | Simple web interface to track changes in git repositories
|
---|
150 | %endif
|
---|
151 |
|
---|
152 | %package p4
|
---|
153 | Summary: Git tools for working with Perforce depots
|
---|
154 | Group: Development/Tools
|
---|
155 | %if %{noarch_sub}
|
---|
156 | BuildArch: noarch
|
---|
157 | %endif
|
---|
158 | BuildRequires: python
|
---|
159 | Requires: git = %{version}-%{release}
|
---|
160 | %description p4
|
---|
161 | %{summary}.
|
---|
162 |
|
---|
163 | %package svn
|
---|
164 | Summary: Git tools for importing Subversion repositories
|
---|
165 | Group: Development/Tools
|
---|
166 | Requires: git = %{version}-%{release}, subversion
|
---|
167 | Requires: perl(Digest::MD5)
|
---|
168 | %if ! %{defined perl_bootstrap}
|
---|
169 | #Requires: perl(Term::ReadKey)
|
---|
170 | %endif
|
---|
171 | %description svn
|
---|
172 | Git tools for importing Subversion repositories.
|
---|
173 |
|
---|
174 | %package cvs
|
---|
175 | Summary: Git tools for importing CVS repositories
|
---|
176 | Group: Development/Tools
|
---|
177 | %if %{noarch_sub}
|
---|
178 | BuildArch: noarch
|
---|
179 | %endif
|
---|
180 | Requires: git = %{version}-%{release}, cvs
|
---|
181 | Requires: cvsps
|
---|
182 | Requires: perl(DBD::SQLite)
|
---|
183 | %description cvs
|
---|
184 | Git tools for importing CVS repositories.
|
---|
185 |
|
---|
186 | %package email
|
---|
187 | Summary: Git tools for sending email
|
---|
188 | Group: Development/Tools
|
---|
189 | %if %{noarch_sub}
|
---|
190 | BuildArch: noarch
|
---|
191 | %endif
|
---|
192 | Requires: git = %{version}-%{release}, perl-Git = %{version}-%{release}
|
---|
193 | Requires: perl(Authen::SASL)
|
---|
194 | Requires: perl(Net::SMTP::SSL)
|
---|
195 | %description email
|
---|
196 | Git tools for sending email.
|
---|
197 |
|
---|
198 | %if 0
|
---|
199 |
|
---|
200 | %package gui
|
---|
201 | Summary: Git GUI tool
|
---|
202 | Group: Development/Tools
|
---|
203 | %if %{noarch_sub}
|
---|
204 | BuildArch: noarch
|
---|
205 | %endif
|
---|
206 | Requires: git = %{version}-%{release}, tk >= 8.4
|
---|
207 | Requires: gitk = %{version}-%{release}
|
---|
208 | %description gui
|
---|
209 | Git GUI tool.
|
---|
210 |
|
---|
211 | %package -n gitk
|
---|
212 | Summary: Git revision tree visualiser
|
---|
213 | Group: Development/Tools
|
---|
214 | %if %{noarch_sub}
|
---|
215 | BuildArch: noarch
|
---|
216 | %endif
|
---|
217 | Requires: git = %{version}-%{release}, tk >= 8.4
|
---|
218 | %description -n gitk
|
---|
219 | Git revision tree visualiser.
|
---|
220 |
|
---|
221 | %endif
|
---|
222 |
|
---|
223 | %package -n perl-Git
|
---|
224 | Summary: Perl interface to Git
|
---|
225 | Group: Development/Libraries
|
---|
226 | %if %{noarch_sub}
|
---|
227 | BuildArch: noarch
|
---|
228 | %endif
|
---|
229 | Requires: git = %{version}-%{release}
|
---|
230 | #BuildRequires: perl(Error)
|
---|
231 | BuildRequires: perl(ExtUtils::MakeMaker)
|
---|
232 | #Requires: perl(Error)
|
---|
233 | #Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
---|
234 |
|
---|
235 | %description -n perl-Git
|
---|
236 | Perl interface to Git.
|
---|
237 |
|
---|
238 | %package -n perl-Git-SVN
|
---|
239 | Summary: Perl interface to Git::SVN
|
---|
240 | Group: Development/Libraries
|
---|
241 | %if %{noarch_sub}
|
---|
242 | BuildArch: noarch
|
---|
243 | %endif
|
---|
244 | Requires: git = %{version}-%{release}
|
---|
245 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
---|
246 |
|
---|
247 | %description -n perl-Git-SVN
|
---|
248 | Perl interface to Git.
|
---|
249 |
|
---|
250 | %if 0
|
---|
251 |
|
---|
252 | %package -n emacs-git
|
---|
253 | Summary: Git version control system support for Emacs
|
---|
254 | Group: Applications/Editors
|
---|
255 | Requires: git = %{version}-%{release}
|
---|
256 | %if %{noarch_sub}
|
---|
257 | BuildArch: noarch
|
---|
258 | Requires: emacs(bin) >= %{_emacs_version}
|
---|
259 | %else
|
---|
260 | Requires: emacs-common
|
---|
261 | %endif
|
---|
262 |
|
---|
263 | %description -n emacs-git
|
---|
264 | %{summary}.
|
---|
265 |
|
---|
266 | %package -n emacs-git-el
|
---|
267 | Summary: Elisp source files for git version control system support for Emacs
|
---|
268 | Group: Applications/Editors
|
---|
269 | %if %{noarch_sub}
|
---|
270 | BuildArch: noarch
|
---|
271 | %endif
|
---|
272 | Requires: emacs-git = %{version}-%{release}
|
---|
273 |
|
---|
274 | %description -n emacs-git-el
|
---|
275 | %{summary}.
|
---|
276 |
|
---|
277 | %endif
|
---|
278 |
|
---|
279 | %debug_package
|
---|
280 |
|
---|
281 | %prep
|
---|
282 | %if %(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')
|
---|
283 | %setup -q
|
---|
284 | %else
|
---|
285 | %setup -n "%{name}-%{version}" -Tc
|
---|
286 | svn export -r %{svn_rev} %{svn_url} . --force
|
---|
287 | rm -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip"
|
---|
288 | (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" "%{name}-%{version}")
|
---|
289 | %endif
|
---|
290 |
|
---|
291 | # Use these same options for every invocation of 'make'.
|
---|
292 | # Otherwise it will rebuild in %%install due to flags changes.
|
---|
293 | cat << \EOF > config.mak
|
---|
294 | V = 1
|
---|
295 | CFLAGS = %{optflags}
|
---|
296 | #LDFLAGS = %{__global_ldflags}
|
---|
297 | #BLK_SHA1 = 1
|
---|
298 | #NEEDS_CRYPTO_WITH_SSL = 1
|
---|
299 | #USE_LIBPCRE = 1
|
---|
300 | ETC_GITCONFIG = %{_sysconfdir}/gitconfig
|
---|
301 | DESTDIR = %{buildroot}
|
---|
302 | INSTALL = %{_bindir}/install -p
|
---|
303 | GITWEB_PROJECTROOT = %{_var}/lib/git
|
---|
304 | GNU_ROFF = 1
|
---|
305 | htmldir = %{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}
|
---|
306 | prefix = %{_prefix}
|
---|
307 | gitwebdir = %{_var}/www/git
|
---|
308 | EOF
|
---|
309 |
|
---|
310 | %if "%{gitcoredir}" == "%{_bindir}"
|
---|
311 | echo gitexecdir = %{_bindir} >> config.mak
|
---|
312 | %endif
|
---|
313 |
|
---|
314 | %if %{docbook_suppress_sp}
|
---|
315 | # This is needed for 1.69.1-1.71.0
|
---|
316 | echo DOCBOOK_SUPPRESS_SP = 1 >> config.mak
|
---|
317 | %endif
|
---|
318 |
|
---|
319 | %build
|
---|
320 | make %{?_smp_mflags} all
|
---|
321 | %if ! %{use_prebuilt_docs} && ! 0%{?_without_docs}
|
---|
322 | make %{?_smp_mflags} doc
|
---|
323 | %endif
|
---|
324 |
|
---|
325 | %if 0
|
---|
326 | make -C contrib/emacs
|
---|
327 | %endif
|
---|
328 |
|
---|
329 | make -C contrib/subtree/
|
---|
330 |
|
---|
331 | # Remove shebang from bash-completion script
|
---|
332 | sed -i '/^#!bash/,+1 d' contrib/completion/git-completion.bash
|
---|
333 |
|
---|
334 | %install
|
---|
335 | rm -rf %{buildroot}
|
---|
336 | make %{?_smp_mflags} INSTALLDIRS=vendor install
|
---|
337 | %if ! %{use_prebuilt_docs} && ! 0%{?_without_docs}
|
---|
338 | make %{?_smp_mflags} INSTALLDIRS=vendor install-doc
|
---|
339 | %else
|
---|
340 | %if %{use_prebuilt_docs}
|
---|
341 | cp -a prebuilt_docs/man/* %{buildroot}%{_mandir}
|
---|
342 | cp -a prebuilt_docs/html/* Documentation/
|
---|
343 | %endif
|
---|
344 | %endif
|
---|
345 |
|
---|
346 | %if 0
|
---|
347 |
|
---|
348 | %global elispdir %{_emacs_sitelispdir}/git
|
---|
349 | make -C contrib/emacs install \
|
---|
350 | emacsdir=%{buildroot}%{elispdir}
|
---|
351 | for elc in %{buildroot}%{elispdir}/*.elc ; do
|
---|
352 | install -pm 644 contrib/emacs/$(basename $elc .elc).el \
|
---|
353 | %{buildroot}%{elispdir}
|
---|
354 | done
|
---|
355 | install -Dpm 644 %{SOURCE10} \
|
---|
356 | %{buildroot}%{_emacs_sitestartdir}/git-init.el
|
---|
357 |
|
---|
358 | %endif
|
---|
359 |
|
---|
360 | make -C contrib/subtree install
|
---|
361 | %if ! %{use_prebuilt_docs} && ! 0%{?_without_docs}
|
---|
362 | make -C contrib/subtree install-doc
|
---|
363 | %endif
|
---|
364 | # it's ugly hack, but this file don't need to be copied to this directory
|
---|
365 | # it's already part of git-core-doc and it's alone here
|
---|
366 | rm -f %{buildroot}%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}/git-subtree.html
|
---|
367 |
|
---|
368 | %if 0
|
---|
369 | mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d
|
---|
370 | install -pm 0644 %{SOURCE12} %{buildroot}%{_sysconfdir}/httpd/conf.d/git.conf
|
---|
371 | sed "s|@PROJECTROOT@|%{_var}/lib/git|g" \
|
---|
372 | %{SOURCE14} > %{buildroot}%{_sysconfdir}/gitweb.conf
|
---|
373 | %else
|
---|
374 | rm -rf %{buildroot}%{_var}/www/git/
|
---|
375 | %endif
|
---|
376 |
|
---|
377 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
---|
378 | find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
|
---|
379 | find %{buildroot} -type f -name perllocal.pod -exec rm -f {} ';'
|
---|
380 |
|
---|
381 | # git-archimport is not supported
|
---|
382 | find %{buildroot} Documentation -type f -name 'git-archimport*' -exec rm -f {} ';'
|
---|
383 |
|
---|
384 | exclude_re="archimport|email|git-citool|git-cvs|git-daemon|git-gui|git-remote-bzr|git-remote-hg|gitk|p4|svn"
|
---|
385 | (find %{buildroot}%{_bindir} %{buildroot}%{_libexecdir} -type f | grep -vE "$exclude_re" | sed -e s@^%{buildroot}@@) > bin-man-doc-files
|
---|
386 | (find %{buildroot}%{_bindir} %{buildroot}%{_libexecdir} -mindepth 1 -type d | grep -vE "$exclude_re" | sed -e 's@^%{buildroot}@%dir @') >> bin-man-doc-files
|
---|
387 | (find %{buildroot}%{perl_vendorlib} -type f | sed -e s@^%{buildroot}@@) > perl-git-files
|
---|
388 | (find %{buildroot}%{perl_vendorlib} -mindepth 1 -type d | sed -e 's@^%{buildroot}@%dir @') >> perl-git-files
|
---|
389 | # Split out Git::SVN files
|
---|
390 | grep Git/SVN perl-git-files > perl-git-svn-files
|
---|
391 | sed -i "/Git\/SVN/ d" perl-git-files
|
---|
392 | %if %{!?_without_docs:1}0
|
---|
393 | (find %{buildroot}%{_mandir} -type f | grep -vE "$exclude_re|Git" | sed -e s@^%{buildroot}@@ -e 's/$/*/' ) >> bin-man-doc-files
|
---|
394 | %else
|
---|
395 | rm -rf %{buildroot}%{_mandir}
|
---|
396 | %endif
|
---|
397 |
|
---|
398 | mkdir -p %{buildroot}%{_var}/lib/git
|
---|
399 | %if %{use_systemd}
|
---|
400 | mkdir -p %{buildroot}%{_unitdir}
|
---|
401 | cp -a %{SOURCE15} %{SOURCE16} %{buildroot}%{_unitdir}
|
---|
402 | %else
|
---|
403 | %if 0
|
---|
404 | mkdir -p %{buildroot}%{_sysconfdir}/xinetd.d
|
---|
405 | # On EL <= 5, xinetd does not enable IPv6 by default
|
---|
406 | enable_ipv6=" # xinetd does not enable IPv6 by default
|
---|
407 | flags = IPv6"
|
---|
408 | perl -p \
|
---|
409 | -e "s|\@GITCOREDIR\@|%{gitcoredir}|g;" \
|
---|
410 | -e "s|\@BASE_PATH\@|%{_var}/lib/git|g;" \
|
---|
411 | %if %{enable_ipv6}
|
---|
412 | -e "s|^}|$enable_ipv6\n$&|;" \
|
---|
413 | %endif
|
---|
414 | %{SOURCE11} > %{buildroot}%{_sysconfdir}/xinetd.d/git
|
---|
415 | %endif
|
---|
416 | %endif
|
---|
417 |
|
---|
418 | # Setup bash completion
|
---|
419 | install -Dpm 644 contrib/completion/git-completion.bash %{buildroot}%{bashcompdir}/git
|
---|
420 | ln -s git %{buildroot}%{bashcompdir}/gitk
|
---|
421 |
|
---|
422 | # Install tcsh completion
|
---|
423 | mkdir -p %{buildroot}%{_datadir}/git-core/contrib/completion
|
---|
424 | install -pm 644 contrib/completion/git-completion.tcsh \
|
---|
425 | %{buildroot}%{_datadir}/git-core/contrib/completion/
|
---|
426 |
|
---|
427 | # Move contrib/hooks out of %%docdir and make them executable
|
---|
428 | mkdir -p %{buildroot}%{_datadir}/git-core/contrib
|
---|
429 | mv contrib/hooks %{buildroot}%{_datadir}/git-core/contrib
|
---|
430 | chmod +x %{buildroot}%{_datadir}/git-core/contrib/hooks/*
|
---|
431 | ln -s %{buildroot}%{_datadir}/git-core/contrib/hooks contrib/
|
---|
432 |
|
---|
433 | # Install git-prompt.sh
|
---|
434 | mkdir -p %{buildroot}%{_datadir}/git-core/contrib/completion
|
---|
435 | install -pm 644 contrib/completion/git-prompt.sh \
|
---|
436 | %{buildroot}%{_datadir}/git-core/contrib/completion/
|
---|
437 |
|
---|
438 | %if 0
|
---|
439 | # install git-gui .desktop file
|
---|
440 | desktop-file-install \
|
---|
441 | %if %{desktop_vendor_tag}
|
---|
442 | --vendor fedora \
|
---|
443 | %endif
|
---|
444 | --dir=%{buildroot}%{_datadir}/applications %{SOURCE13}
|
---|
445 | %endif
|
---|
446 |
|
---|
447 | # find translations
|
---|
448 | %find_lang %{name} %{name}.lang
|
---|
449 | cat %{name}.lang >> bin-man-doc-files
|
---|
450 |
|
---|
451 | # quiet some rpmlint complaints
|
---|
452 | chmod -R g-w %{buildroot}
|
---|
453 | find %{buildroot} -name git-mergetool--lib | xargs chmod a-x
|
---|
454 | # rm -f {Documentation/technical,contrib/emacs,contrib/credential/gnome-keyring}/.gitignore
|
---|
455 | # These files probably are not needed
|
---|
456 | find . -name .gitignore -delete
|
---|
457 | chmod a-x Documentation/technical/api-index.sh
|
---|
458 | find contrib -type f | xargs chmod -x
|
---|
459 |
|
---|
460 | # Split core files
|
---|
461 | not_core_re="git-(add--interactive|am|credential-netrc|difftool|instaweb|relink|request-pull|send-mail|submodule)|gitweb|prepare-commit-msg|pre-rebase"
|
---|
462 | grep -vE "$not_core_re|\/man\/" bin-man-doc-files > bin-files-core
|
---|
463 | %if %{use_prebuilt_docs} || ! 0%{?_without_docs}
|
---|
464 | grep -vE "$not_core_re" bin-man-doc-files | grep "\/man\/" > man-doc-files-core
|
---|
465 | %endif
|
---|
466 | grep -E "$not_core_re" bin-man-doc-files > bin-man-doc-git-files
|
---|
467 |
|
---|
468 |
|
---|
469 | %clean
|
---|
470 | rm -rf %{buildroot}
|
---|
471 |
|
---|
472 | %if %{use_systemd}
|
---|
473 | %post daemon
|
---|
474 | %systemd_post git@.service
|
---|
475 |
|
---|
476 | %preun daemon
|
---|
477 | %systemd_preun git@.service
|
---|
478 |
|
---|
479 | %postun daemon
|
---|
480 | %systemd_postun_with_restart git@.service
|
---|
481 | %endif
|
---|
482 |
|
---|
483 | %files -f bin-man-doc-git-files
|
---|
484 | %defattr(-,root,root)
|
---|
485 | %if 0
|
---|
486 | %{elispdir}
|
---|
487 | %{_emacs_sitestartdir}/git-init.el
|
---|
488 | %endif
|
---|
489 | %{_datadir}/git-core/contrib/hooks/update-paranoid
|
---|
490 | %{_datadir}/git-core/contrib/hooks/setgitperms.perl
|
---|
491 | #%{_datadir}/git-core/*
|
---|
492 | #%doc Documentation/*.txt
|
---|
493 | #%{!?_without_docs: %doc Documentation/*.html}
|
---|
494 | #%{!?_without_docs: %doc Documentation/howto/* Documentation/technical/*}
|
---|
495 |
|
---|
496 | %files core -f bin-files-core
|
---|
497 | %defattr(-,root,root)
|
---|
498 | %{!?_licensedir:%global license %doc}
|
---|
499 | %license COPYING
|
---|
500 | # exlude is best way here because of troubels with symlinks inside git-core/
|
---|
501 | %exclude %{_datadir}/git-core/contrib/hooks/update-paranoid
|
---|
502 | %exclude %{_datadir}/git-core/contrib/hooks/setgitperms.perl
|
---|
503 | %{bashcomproot}
|
---|
504 | %{_datadir}/git-core/
|
---|
505 |
|
---|
506 | %if %{use_prebuilt_docs} || ! 0%{?_without_docs}
|
---|
507 | %files core-doc -f man-doc-files-core
|
---|
508 | %else
|
---|
509 | %files core-doc
|
---|
510 | %endif
|
---|
511 | %defattr(-,root,root)
|
---|
512 | %doc README.md Documentation/*.txt Documentation/RelNotes contrib/
|
---|
513 | %{!?_without_docs: %doc Documentation/*.html Documentation/docbook-xsl.css}
|
---|
514 | %{!?_without_docs: %doc Documentation/howto Documentation/technical}
|
---|
515 | %if ! %{use_prebuilt_docs}
|
---|
516 | %{!?_without_docs: %doc contrib/subtree/git-subtree.html}
|
---|
517 | %endif
|
---|
518 |
|
---|
519 | %files p4
|
---|
520 | %defattr(-,root,root)
|
---|
521 | %{gitcoredir}/*p4*
|
---|
522 | %{gitcoredir}/mergetools/p4merge
|
---|
523 | %doc Documentation/*p4*.txt
|
---|
524 | %{!?_without_docs: %{_mandir}/man1/*p4*.1*}
|
---|
525 | %{!?_without_docs: %doc Documentation/*p4*.html }
|
---|
526 |
|
---|
527 | %files svn
|
---|
528 | %defattr(-,root,root)
|
---|
529 | %{gitcoredir}/*svn*
|
---|
530 | %doc Documentation/*svn*.txt
|
---|
531 | %{!?_without_docs: %{_mandir}/man1/*svn*.1*}
|
---|
532 | %{!?_without_docs: %doc Documentation/*svn*.html }
|
---|
533 |
|
---|
534 | %files cvs
|
---|
535 | %defattr(-,root,root)
|
---|
536 | %doc Documentation/*git-cvs*.txt
|
---|
537 | %if "%{gitcoredir}" != "%{_bindir}"
|
---|
538 | %{_bindir}/git-cvsserver
|
---|
539 | %endif
|
---|
540 | %{gitcoredir}/*cvs*
|
---|
541 | %{!?_without_docs: %{_mandir}/man1/*cvs*.1*}
|
---|
542 | %{!?_without_docs: %doc Documentation/*git-cvs*.html }
|
---|
543 |
|
---|
544 | %files email
|
---|
545 | %defattr(-,root,root)
|
---|
546 | %doc Documentation/*email*.txt
|
---|
547 | %{gitcoredir}/*email*
|
---|
548 | %{!?_without_docs: %{_mandir}/man1/*email*.1*}
|
---|
549 | %{!?_without_docs: %doc Documentation/*email*.html }
|
---|
550 |
|
---|
551 | %if 0
|
---|
552 |
|
---|
553 | %files gui
|
---|
554 | %defattr(-,root,root)
|
---|
555 | %{gitcoredir}/git-gui*
|
---|
556 | %{gitcoredir}/git-citool
|
---|
557 | %{_datadir}/applications/*git-gui.desktop
|
---|
558 | %{_datadir}/git-gui/
|
---|
559 | %{!?_without_docs: %{_mandir}/man1/git-gui.1*}
|
---|
560 | %{!?_without_docs: %doc Documentation/git-gui.html}
|
---|
561 | %{!?_without_docs: %{_mandir}/man1/git-citool.1*}
|
---|
562 | %{!?_without_docs: %doc Documentation/git-citool.html}
|
---|
563 |
|
---|
564 | %files -n gitk
|
---|
565 | %defattr(-,root,root)
|
---|
566 | %doc Documentation/*gitk*.txt
|
---|
567 | %{_bindir}/*gitk*
|
---|
568 | %{_datadir}/gitk
|
---|
569 | %{!?_without_docs: %{_mandir}/man1/*gitk*.1*}
|
---|
570 | %{!?_without_docs: %doc Documentation/*gitk*.html }
|
---|
571 |
|
---|
572 | %endif
|
---|
573 |
|
---|
574 | %files -n perl-Git -f perl-git-files
|
---|
575 | %defattr(-,root,root)
|
---|
576 | %{!?_without_docs: %exclude %{_mandir}/man3/*Git*SVN*.3pm*}
|
---|
577 | %{!?_without_docs: %{_mandir}/man3/*Git*.3pm*}
|
---|
578 |
|
---|
579 | %files -n perl-Git-SVN -f perl-git-svn-files
|
---|
580 | %defattr(-,root,root)
|
---|
581 | %{!?_without_docs: %{_mandir}/man3/*Git*SVN*.3pm*}
|
---|
582 |
|
---|
583 | %if 0
|
---|
584 |
|
---|
585 | %files -n emacs-git
|
---|
586 | %defattr(-,root,root)
|
---|
587 | %doc contrib/emacs/README
|
---|
588 | %dir %{elispdir}
|
---|
589 | %{elispdir}/*.elc
|
---|
590 | %{_emacs_sitestartdir}/git-init.el
|
---|
591 |
|
---|
592 | %files -n emacs-git-el
|
---|
593 | %defattr(-,root,root)
|
---|
594 | %{elispdir}/*.el
|
---|
595 |
|
---|
596 | %endif
|
---|
597 |
|
---|
598 | %files daemon
|
---|
599 | %defattr(-,root,root)
|
---|
600 | %doc Documentation/*daemon*.txt
|
---|
601 | %if %{use_systemd}
|
---|
602 | %{_unitdir}/git.socket
|
---|
603 | %{_unitdir}/git@.service
|
---|
604 | %else
|
---|
605 | %if 0
|
---|
606 | %config(noreplace)%{_sysconfdir}/xinetd.d/git
|
---|
607 | %endif
|
---|
608 | %endif
|
---|
609 | %{gitcoredir}/git-daemon*
|
---|
610 | %{_var}/lib/git
|
---|
611 | %{!?_without_docs: %{_mandir}/man1/*daemon*.1*}
|
---|
612 | %{!?_without_docs: %doc Documentation/*daemon*.html}
|
---|
613 |
|
---|
614 | %if 0
|
---|
615 | %files -n gitweb
|
---|
616 | %defattr(-,root,root)
|
---|
617 | %doc gitweb/INSTALL gitweb/README
|
---|
618 | %config(noreplace)%{_sysconfdir}/gitweb.conf
|
---|
619 | %config(noreplace)%{_sysconfdir}/httpd/conf.d/git.conf
|
---|
620 | %{_var}/www/git/
|
---|
621 | %endif
|
---|
622 |
|
---|
623 | %files all
|
---|
624 | # No files for you!
|
---|
625 |
|
---|
626 | %changelog
|
---|
627 | * Tue Dec 13 2016 Dmitriy Kuminov <coding@dmik.org> 2.11.0-1
|
---|
628 | - Update git to version 2.11.0.
|
---|
629 | - Increase stack size to 8 MB to fix crashes when cloning huge repos.
|
---|
630 | - Link against LIBCx 0.4 (this brings EXCEPTQ TRP report generator).
|
---|
631 | - Rebuild against LIBC 0.6.6 and GCC 4.9.2.
|
---|
632 | - Enable %lang definitions.
|
---|
633 |
|
---|
634 | * Wed Sep 10 2014 yd
|
---|
635 | - added debug package with symbolic info for exceptq.
|
---|
636 |
|
---|
637 | * Wed Sep 10 2014 Dmitriy Kuminov <coding@dmik.org> 2.0.0-1
|
---|
638 | - Update git to version 2.0.0.
|
---|
639 | - Fix cloning and pushing over HTTP(S).
|
---|
640 | - Remove many old unneeded patches to have less OS/2-dependent code.
|
---|
641 |
|
---|
642 | * Sat Dec 17 2011 yd
|
---|
643 | - rebuild due to gcc 4.4.6 bug.
|
---|
644 |
|
---|
645 | * Sun Nov 27 2011 yd
|
---|
646 | - use /@unixroot/usr/bin shell.
|
---|
647 |
|
---|
648 | * Wed Sep 28 2011 yd
|
---|
649 | - fixed build patches.
|
---|
650 | - fixed expat support.
|
---|
651 |
|
---|
652 | * Sat Sep 24 2011 yd
|
---|
653 | - symlink script files to exe, so execvp can find them.
|
---|
654 | - ignore CR while reading CRLF terminated text files.
|
---|
655 |
|
---|
656 | * Tue Sep 20 2011 yd
|
---|
657 | - disable broken_path_fix macro.
|
---|
658 |
|
---|
659 | * Mon Sep 19 2011 yd
|
---|
660 | - use bigger stack for threads; use socketpair instead of pipes.
|
---|