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