Changeset 457 for spec/trunk/SPECS/git.spec
- Timestamp:
- Sep 10, 2014, 3:58:54 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/git.spec
r253 r457 1 # Note: this .spec is borrowed from git-2.1.0-1.fc22.src.rpm 2 3 # Pass --without docs to rpmbuild if you don't want the documentation (force it for now) 1 4 %define _without_docs 1 2 5 3 # Pass --without docs to rpmbuild if you don't want the documentation 4 % if 0%{?rhel} && 0%{?rhel} <= 55 %global gitcoredir %{_bindir}6 % else7 %global gitcoredir %{_libexecdir}/git-core 8 % endif6 %global gitcoredir %{_libexecdir}/git-core 7 %global libcurl_devel libcurl-devel 8 %global docbook_suppress_sp 0 9 %global enable_ipv6 0 10 11 %global use_systemd 0 9 12 10 13 Name: git 11 Version: 1.7.6.112 Release: 7%{?dist}14 Version: 2.0.0 15 Release: 1%{?dist} 13 16 Summary: Fast Version Control System 14 17 License: GPLv2 15 18 Group: Development/Tools 16 19 URL: http://git-scm.com/ 17 18 Source0: http://kernel.org/pub/software/scm/git/%{name}-%{version}.tar.bz2 19 Source1: git-os2.zip 20 21 Patch0: git-os2.diff 20 #Source0: http://www.kernel.org/pub/software/scm/git/%{name}-%{version}.tar.gz 21 22 %define svn_url http://svn.netlabs.org/repos/ports/git/branches/2.0 23 %define svn_rev 864 24 25 Source: %{name}-%{version}-r%{svn_rev}.zip 26 27 BuildRequires: gcc make subversion zip 22 28 23 29 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 24 30 25 #BuildRequires: desktop-file-utils 26 %if 0%{?fedora} 27 BuildRequires: emacs >= 22.2 31 %if ! 0%{?_without_docs} 32 BuildRequires: asciidoc >= 8.4.1 33 BuildRequires: xmlto 34 %endif 35 #BuildRequires: emacs 36 BuildRequires: expat-devel 37 BuildRequires: gettext 28 38 BuildRequires: libcurl-devel 29 %else 30 BuildRequires: curl-devel 31 %endif 32 #BuildRequires: expat-devel 33 BuildRequires: gettext 39 #BuildRequires: pcre-devel 34 40 BuildRequires: openssl-devel 35 41 BuildRequires: zlib-devel >= 1.2 36 #%{!?_without_docs:BuildRequires: asciidoc > 6.0.3, xmlto}37 42 38 43 #Requires: less 39 44 #Requires: openssh-clients 40 %if 0%{?fedora} || 0%{?rhel} >= 5 41 Requires: perl(Error) 42 %endif 43 #Requires: perl-Git = %{version}-%{release} 45 #Requires: perl(Error) 46 #Requires: perl(Term::ReadKey) 47 Requires: perl-Git = %{version}-%{release} 44 48 #Requires: rsync 45 49 Requires: zlib >= 1.2 46 50 47 51 Provides: git-core = %{version}-%{release} 48 %if 0%{?fedora} || 0%{?rhel} >= 5 49 Obsoletes: git-core <= 1.5.4.3 50 %else 51 # EL-4 has 1.5.4.7-3.el4. We don't support this, but no point making it more 52 # difficult than it needs to be (folks stuck on EL-4 have it bad enough ;). 53 Obsoletes: git-core <= 1.5.4.7-4 54 %endif 52 53 # Obsolete git-arch 54 Obsoletes: git-arch < %{version}-%{release} 55 55 56 56 %description … … 66 66 Summary: Meta-package to pull in all git tools 67 67 Group: Development/Tools 68 %if 0%{?fedora} >= 10 69 BuildArch: noarch 70 %endif 71 Requires: git = %{version}-%{release} 72 Requires: git-svn = %{version}-%{release} 68 BuildArch: noarch 69 Requires: git = %{version}-%{release} 73 70 Requires: git-cvs = %{version}-%{release} 74 71 Requires: git-email = %{version}-%{release} 75 Requires: gitk = %{version}-%{release} 76 Requires: git-gui = %{version}-%{release} 72 #Requires: git-gui = %{version}-%{release} 73 Requires: git-svn = %{version}-%{release} 74 Requires: git-p4 = %{version}-%{release} 75 #Requires: gitk = %{version}-%{release} 77 76 Requires: perl-Git = %{version}-%{release} 78 %if 0%{?fedora} 79 Requires: emacs-git = %{version}-%{release} 80 Requires: git-arch = %{version}-%{release} 81 %endif 82 %if 0%{?fedora} || 0%{?rhel} >= 5 77 #Requires: emacs-git = %{version}-%{release} 83 78 Obsoletes: git <= 1.5.4.3 84 %else85 # EL-4 has 1.5.4.7-3.el4. We don't support this, but no point making it more86 # difficult than it needs to be (folks stuck on EL-4 have it bad enough ;).87 Obsoletes: git <= 1.5.4.7-488 %endif89 79 90 80 %description all … … 95 85 This is a dummy package which brings in all subpackages. 96 86 87 %package bzr 88 Summary: Git tools for working with bzr repositories 89 Group: Development/Tools 90 BuildArch: noarch 91 Requires: git = %{version}-%{release} 92 Requires: bzr 93 94 %description bzr 95 %{summary}. 96 97 97 %package daemon 98 98 Summary: Git protocol dÊmon 99 99 Group: Development/Tools 100 100 Requires: git = %{version}-%{release} 101 #%if %{use_systemd} 102 #Requires: systemd 103 #Requires(post): systemd 104 #Requires(preun): systemd 105 #Requires(postun): systemd 106 #%else 101 107 #Requires: xinetd 108 #%endif 102 109 %description daemon 103 110 The git dÊmon for supporting git:// access to git repositories 104 111 112 %if 0 105 113 %package -n gitweb 106 114 Summary: Simple web interface to git repositories 107 115 Group: Development/Tools 108 %if 0%{?fedora} >= 10 109 BuildArch: noarch 110 %endif 116 BuildArch: noarch 111 117 Requires: git = %{version}-%{release} 112 118 113 119 %description -n gitweb 114 120 Simple web interface to track changes in git repositories 115 121 %endif 122 123 %package hg 124 Summary: Git tools for working with mercurial repositories 125 Group: Development/Tools 126 BuildArch: noarch 127 Requires: git = %{version}-%{release} 128 Requires: mercurial >= 1.8 129 130 %description hg 131 %{summary}. 132 133 %package p4 134 Summary: Git tools for working with Perforce depots 135 Group: Development/Tools 136 BuildArch: noarch 137 BuildRequires: python 138 Requires: git = %{version}-%{release} 139 %description p4 140 %{summary}. 116 141 117 142 %package svn 118 143 Summary: Git tools for importing Subversion repositories 119 144 Group: Development/Tools 120 %if 0%{?fedora} >= 10 121 BuildArch: noarch 122 %endif 123 Requires: git = %{version}-%{release}, subversion, perl(Term::ReadKey) 145 Requires: git = %{version}-%{release}, subversion, subversion-perl 146 #Requires: perl(Term::ReadKey) 124 147 %description svn 125 148 Git tools for importing Subversion repositories. … … 128 151 Summary: Git tools for importing CVS repositories 129 152 Group: Development/Tools 130 %if 0%{?fedora} >= 10 131 BuildArch: noarch 132 %endif 153 BuildArch: noarch 133 154 Requires: git = %{version}-%{release}, cvs 134 %if 0%{?fedora} || 0%{?rhel} >= 5135 155 Requires: cvsps 136 %endif 156 Requires: perl-DBD-SQLite 137 157 %description cvs 138 158 Git tools for importing CVS repositories. 139 159 140 %if 0%{?fedora}141 %package arch142 Summary: Git tools for importing Arch repositories143 Group: Development/Tools144 %if 0%{?fedora} >= 10145 BuildArch: noarch146 %endif147 Requires: git = %{version}-%{release}, tla148 %description arch149 Git tools for importing Arch repositories.150 %endif151 152 160 %package email 153 161 Summary: Git tools for sending email 154 162 Group: Development/Tools 155 %if 0%{?fedora} >= 10 156 BuildArch: noarch 157 %endif 163 BuildArch: noarch 158 164 Requires: git = %{version}-%{release}, perl-Git = %{version}-%{release} 159 165 Requires: perl(Authen::SASL) 160 %if 0%{?fedora} || 0%{?rhel} >= 5161 166 Requires: perl(Net::SMTP::SSL) 162 %endif163 167 %description email 164 168 Git tools for sending email. 165 169 170 %if 0 171 166 172 %package gui 167 173 Summary: Git GUI tool 168 174 Group: Development/Tools 169 %if 0%{?fedora} >= 10 170 BuildArch: noarch 171 %endif 175 BuildArch: noarch 172 176 Requires: git = %{version}-%{release}, tk >= 8.4 173 177 Requires: gitk = %{version}-%{release} … … 178 182 Summary: Git revision tree visualiser 179 183 Group: Development/Tools 180 %if 0%{?fedora} >= 10 181 BuildArch: noarch 182 %endif 184 BuildArch: noarch 183 185 Requires: git = %{version}-%{release}, tk >= 8.4 184 186 %description -n gitk 185 187 Git revision tree visualiser. 186 188 189 %endif 190 187 191 %package -n perl-Git 188 192 Summary: Perl interface to Git 189 193 Group: Development/Libraries 190 %if 0%{?fedora} >= 10 191 BuildArch: noarch 192 %endif 193 Requires: git = %{version}-%{release} 194 %if 0%{?fedora} || 0%{?rhel} >= 5 195 BuildRequires: perl(Error), perl(ExtUtils::MakeMaker) 196 Requires: perl(Error) 197 %endif 198 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) 194 BuildArch: noarch 195 Requires: git = %{version}-%{release} 196 #BuildRequires: perl(Error) 197 BuildRequires: perl(ExtUtils::MakeMaker) 198 #Requires: perl(Error) 199 #Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) 199 200 200 201 %description -n perl-Git 201 202 Perl interface to Git. 202 203 203 %if 0%{?fedora} 204 %package -n perl-Git-SVN 205 Summary: Perl interface to Git::SVN 206 Group: Development/Libraries 207 BuildArch: noarch 208 Requires: git = %{version}-%{release} 209 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) 210 211 %description -n perl-Git-SVN 212 Perl interface to Git. 213 214 %if 0 215 204 216 %package -n emacs-git 205 217 Summary: Git version control system support for Emacs 206 218 Group: Applications/Editors 207 %if 0%{?fedora} >= 10 208 BuildArch: noarch 209 %endif 210 Requires: git = %{version}-%{release}, emacs-common >= 22.2 219 Requires: git = %{version}-%{release} 220 BuildArch: noarch 221 Requires: emacs(bin) >= %{_emacs_version} 211 222 212 223 %description -n emacs-git 213 224 %{summary}. 214 %endif 225 226 %package -n emacs-git-el 227 Summary: Elisp source files for git version control system support for Emacs 228 Group: Applications/Editors 229 BuildArch: noarch 230 Requires: emacs-git = %{version}-%{release} 231 232 %description -n emacs-git-el 233 %{summary}. 234 235 %endif 236 215 237 216 238 %prep 217 %setup -q -a 1 218 %patch0 -p1 239 %if %(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi') 240 %setup -q 241 %else 242 %setup -n "%{name}-%{version}" -Tc 243 svn export -r %{svn_rev} %{svn_url} . --force 244 rm -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" 245 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" "%{name}-%{version}") 246 %endif 219 247 220 248 # Use these same options for every invocation of 'make'. … … 223 251 V = 1 224 252 CFLAGS = %{optflags} 225 BLK_SHA1 = 1226 NEEDS_CRYPTO_WITH_SSL = 1227 NO_PYTHON= 1253 #BLK_SHA1 = 1 254 #NEEDS_CRYPTO_WITH_SSL = 1 255 #USE_LIBPCRE = 1 228 256 ETC_GITCONFIG = %{_sysconfdir}/gitconfig 229 257 DESTDIR = %{buildroot} 230 258 INSTALL = install -p 231 259 GITWEB_PROJECTROOT = %{_var}/lib/git 232 htmldir = %{_docdir}/%{name}-%{version} 260 GNU_ROFF = 1 261 htmldir = %{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}} 233 262 prefix = %{_prefix} 263 gitwebdir = %{_var}/www/git 234 264 EOF 235 265 236 %if 0%{?fedora} 237 cat << \EOF >> config.mak 238 ASCIIDOC8 = 1 239 ASCIIDOC_NO_ROFF = 1 240 EOF 241 %endif 242 243 %if 0%{?rhel} && 0%{?rhel} <= 5 266 %if "%{gitcoredir}" == "%{_bindir}" 244 267 echo gitexecdir = %{_bindir} >> config.mak 245 268 %endif 246 269 247 # Filter bogus perl requires 248 # packed-refs comes from a comment in contrib/hooks/update-paranoid 249 cat << \EOF > %{name}-req 250 #!/bin/sh 251 %{__perl_requires} $* |\ 252 sed -e '/perl(packed-refs)/d' 253 EOF 254 255 %global __perl_requires %{_builddir}/%{name}-%{version}/%{name}-req 256 chmod +x %{__perl_requires} 270 %if %{docbook_suppress_sp} 271 # This is needed for 1.69.1-1.71.0 272 echo DOCBOOK_SUPPRESS_SP = 1 >> config.mak 273 %endif 257 274 258 275 %build 259 export MAKESHELL=/@unixroot/usr/bin/sh 260 export CONFIG_SHELL=/@unixroot/usr/bin/sh 261 export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zexe -Zargs-wild -Zargs-resp" 262 export LIBS="-lurpo" 263 %configure \ 264 --without-tcltk \ 265 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache" 266 267 make %{?_smp_mflags} all %{!?_without_docs: doc} 268 269 %if 0%{?fedora} 276 make %{?_smp_mflags} all 277 %if ! 0%{?_without_docs} 278 make doc 279 %endif 280 281 %if 0 270 282 make -C contrib/emacs 271 283 %endif 284 285 make -C contrib/subtree/ 272 286 273 287 # Remove shebang from bash-completion script … … 275 289 276 290 %install 277 export MAKESHELL=/@unixroot/usr/bin/sh278 291 rm -rf %{buildroot} 279 make %{?_smp_mflags} INSTALLDIRS=vendor install %{!?_without_docs: install-doc} 280 281 %if 0%{?fedora} 292 make INSTALLDIRS=vendor install 293 %if ! 0%{?_without_docs} 294 make INSTALLDIRS=vendor install-doc 295 %endif 296 297 %if 0 298 299 %global elispdir %{_emacs_sitelispdir}/git 282 300 make -C contrib/emacs install \ 283 emacsdir=%{buildroot}%{ _datadir}/emacs/site-lisp284 for elc in %{buildroot}%{ _datadir}/emacs/site-lisp/*.elc ; do301 emacsdir=%{buildroot}%{elispdir} 302 for elc in %{buildroot}%{elispdir}/*.elc ; do 285 303 install -pm 644 contrib/emacs/$(basename $elc .elc).el \ 286 %{buildroot}%{ _datadir}/emacs/site-lisp304 %{buildroot}%{elispdir} 287 305 done 288 install -Dpm 644 %{SOURCE1} \ 289 %{buildroot}%{_datadir}/emacs/site-lisp/site-start.d/git-init.el 290 %endif 291 292 mkdir -p %{buildroot}%{_var}/www/git 293 #install -pm 644 gitweb/*.css %{buildroot}%{_var}/www/git 294 #install -pm 644 gitweb/*.js %{buildroot}%{_var}/www/git 295 #install -pm 644 gitweb/*.png %{buildroot}%{_var}/www/git 296 #install -pm 755 gitweb/gitweb.cgi %{buildroot}%{_var}/www/git 297 #mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d 298 #install -pm 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/httpd/conf.d/git.conf 299 #sed "s|@PROJECTROOT@|%{_var}/lib/git|g" \ 300 # %{SOURCE5} > %{buildroot}%{_sysconfdir}/gitweb.conf 306 install -Dpm 644 %{SOURCE2} \ 307 %{buildroot}%{_emacs_sitestartdir}/git-init.el 308 309 %endif 310 311 make -C contrib/subtree install 312 %if ! 0%{?_without_docs} 313 make -C contrib/subtree install-doc 314 %endif 315 316 %if 0 317 mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d 318 install -pm 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/httpd/conf.d/git.conf 319 sed "s|@PROJECTROOT@|%{_var}/lib/git|g" \ 320 %{SOURCE6} > %{buildroot}%{_sysconfdir}/gitweb.conf 321 %else 322 rm -rf %{buildroot}%{_var}/www/git/ 323 %endif 301 324 302 325 find %{buildroot} -type f -name .packlist -exec rm -f {} ';' … … 304 327 find %{buildroot} -type f -name perllocal.pod -exec rm -f {} ';' 305 328 306 %if ! 0%{?fedora} 329 # git-archimport is not supported 307 330 find %{buildroot} Documentation -type f -name 'git-archimport*' -exec rm -f {} ';' 308 %endif 309 310 (find %{buildroot}%{_bindir} -type f | grep -vE "archimport|svn|cvs|email|gitk|git-gui|git-citool|git-daemon" | sed -e s@^%{buildroot}@@) > bin-man-doc-files 311 (find %{buildroot}%{_libexecdir} -type f | grep -vE "archimport|svn|cvs|email|gitk|git-gui|git-citool|git-daemon" | sed -e s@^%{buildroot}@@) >> bin-man-doc-files 312 #(find %{buildroot}%{perl_vendorlib} -type f | sed -e s@^%{buildroot}@@) >> perl-files 331 332 exclude_re="archimport|email|git-citool|git-cvs|git-daemon|git-gui|git-remote-bzr|git-remote-hg|gitk|p4|svn" 333 (find %{buildroot}%{_bindir} %{buildroot}%{_libexecdir} -type f | grep -vE "$exclude_re" | sed -e s@^%{buildroot}@@) > bin-man-doc-files 334 (find %{buildroot}%{_bindir} %{buildroot}%{_libexecdir} -mindepth 1 -type d | grep -vE "$exclude_re" | sed -e 's@^%{buildroot}@%dir @') >> bin-man-doc-files 335 (find %{buildroot}%{perl_vendorlib} -type f | sed -e s@^%{buildroot}@@) > perl-git-files 336 (find %{buildroot}%{perl_vendorlib} -mindepth 1 -type d | sed -e 's@^%{buildroot}@%dir @') >> perl-git-files 337 # Split out Git::SVN files 338 grep Git/SVN perl-git-files > perl-git-svn-files 339 sed -i "/Git\/SVN/ d" perl-git-files 313 340 %if %{!?_without_docs:1}0 314 (find %{buildroot}%{_mandir} -type f | grep -vE " archimport|svn|git-cvs|email|gitk|git-gui|git-citool|git-daemon" | sed -e s@^%{buildroot}@@ -e 's/$/*/' ) >> bin-man-doc-files341 (find %{buildroot}%{_mandir} -type f | grep -vE "$exclude_re|Git" | sed -e s@^%{buildroot}@@ -e 's/$/*/' ) >> bin-man-doc-files 315 342 %else 316 343 rm -rf %{buildroot}%{_mandir} … … 318 345 319 346 mkdir -p %{buildroot}%{_var}/lib/git 347 %if 0 348 %if %{use_systemd} 349 mkdir -p %{buildroot}%{_unitdir} 350 cp -a %{SOURCE12} %{SOURCE13} %{buildroot}%{_unitdir} 351 %else 320 352 mkdir -p %{buildroot}%{_sysconfdir}/xinetd.d 321 353 # On EL <= 5, xinetd does not enable IPv6 by default … … 325 357 -e "s|\@GITCOREDIR\@|%{gitcoredir}|g;" \ 326 358 -e "s|\@BASE_PATH\@|%{_var}/lib/git|g;" \ 327 %if 0%{?rhel} && 0%{?rhel} <= 5359 %if %{enable_ipv6} 328 360 -e "s|^}|$enable_ipv6\n$&|;" \ 329 361 %endif 330 %{SOURCE2} > %{buildroot}%{_sysconfdir}/xinetd.d/git 331 362 %{SOURCE3} > %{buildroot}%{_sysconfdir}/xinetd.d/git 363 %endif 364 %endif 365 366 # Install bzr and hg remote helpers from contrib 367 install -pm 755 contrib/remote-helpers/git-remote-* %{buildroot}%{gitcoredir} 368 369 # Setup bash completion 332 370 mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d 333 371 install -pm 644 contrib/completion/git-completion.bash %{buildroot}%{_sysconfdir}/bash_completion.d/git 334 372 373 # Install tcsh completion 374 mkdir -p %{buildroot}%{_datadir}/git-core/contrib/completion 375 install -pm 644 contrib/completion/git-completion.tcsh \ 376 %{buildroot}%{_datadir}/git-core/contrib/completion/ 377 335 378 # Move contrib/hooks out of %%docdir and make them executable 336 #mkdir -p %{buildroot}%{_datadir}/git-core/contrib 337 #mv contrib/hooks %{buildroot}%{_datadir}/git-core/contrib 338 #chmod +x %{buildroot}%{_datadir}/git-core/contrib/hooks/* 339 #pushd contrib > /dev/null 340 #ln -s ../../../git-core/contrib/hooks 341 #popd > /dev/null 342 343 # install git-gui .desktop file 344 #desktop-file-install \ 345 #%if 0%{?rhel} && 0%{?rhel} <= 5 346 # --vendor fedora \ 347 #%endif 348 # --dir=%{buildroot}%{_datadir}/applications %{SOURCE4} 379 mkdir -p %{buildroot}%{_datadir}/git-core/contrib 380 mv contrib/hooks %{buildroot}%{_datadir}/git-core/contrib 381 chmod +x %{buildroot}%{_datadir}/git-core/contrib/hooks/* 382 ln -s ../../../git-core/contrib/hooks contrib/ 383 384 # Install git-prompt.sh 385 mkdir -p %{buildroot}%{_datadir}/git-core/contrib/completion 386 install -pm 644 contrib/completion/git-prompt.sh \ 387 %{buildroot}%{_datadir}/git-core/contrib/completion/ 388 389 # find translations 390 %if 0 391 %find_lang %{name} %{name}.lang 392 cat %{name}.lang >> bin-man-doc-files 393 %else 394 find %{buildroot}%{_datadir}/locale/* -type f | sed -e s@^%{buildroot}@@ >> bin-man-doc-files 395 %endif 349 396 350 397 # quiet some rpmlint complaints 351 398 chmod -R g-w %{buildroot} 352 399 find %{buildroot} -name git-mergetool--lib | xargs chmod a-x 353 rm -f {Documentation/technical,contrib/emacs }/.gitignore400 rm -f {Documentation/technical,contrib/emacs,contrib/credential/gnome-keyring}/.gitignore 354 401 chmod a-x Documentation/technical/api-index.sh 355 402 find contrib -type f | xargs chmod -x … … 359 406 rm -rf %{buildroot} 360 407 408 %if %{use_systemd} 409 %post daemon 410 %systemd_post git.service 411 412 %preun daemon 413 %systemd_preun git.service 414 415 %postun daemon 416 %systemd_postun_with_restart git.service 417 %endif 361 418 362 419 %files -f bin-man-doc-files 363 420 %defattr(-,root,root) 364 421 %{_datadir}/git-core/ 365 %dir %{gitcoredir} 366 %doc README COPYING Documentation/*.txt contrib/ 422 %doc README COPYING Documentation/*.txt Documentation/RelNotes contrib/ 367 423 %{!?_without_docs: %doc Documentation/*.html Documentation/docbook-xsl.css} 368 424 %{!?_without_docs: %doc Documentation/howto Documentation/technical} 369 425 %{_sysconfdir}/bash_completion.d 370 426 427 %files bzr 428 %defattr(-,root,root) 429 %{gitcoredir}/git-remote-bzr 430 431 %files hg 432 %defattr(-,root,root) 433 %{gitcoredir}/git-remote-hg 434 435 %files p4 436 %defattr(-,root,root) 437 %{gitcoredir}/*p4* 438 %{gitcoredir}/mergetools/p4merge 439 %doc Documentation/*p4*.txt 440 %{!?_without_docs: %{_mandir}/man1/*p4*.1*} 441 %{!?_without_docs: %doc Documentation/*p4*.html } 371 442 372 443 %files svn 373 444 %defattr(-,root,root) 374 445 %{gitcoredir}/*svn* 375 #%doc Documentation/*svn*.txt446 %doc Documentation/*svn*.txt 376 447 %{!?_without_docs: %{_mandir}/man1/*svn*.1*} 377 448 %{!?_without_docs: %doc Documentation/*svn*.html } … … 379 450 %files cvs 380 451 %defattr(-,root,root) 381 #%doc Documentation/*git-cvs*.txt452 %doc Documentation/*git-cvs*.txt 382 453 %{_bindir}/git-cvsserver 383 454 %{gitcoredir}/*cvs* … … 385 456 %{!?_without_docs: %doc Documentation/*git-cvs*.html } 386 457 387 %if 0%{?fedora}388 %files arch389 %defattr(-,root,root)390 %doc Documentation/git-archimport.txt391 %{gitcoredir}/git-archimport392 %{!?_without_docs: %{_mandir}/man1/git-archimport.1*}393 %{!?_without_docs: %doc Documentation/git-archimport.html }394 %endif395 396 458 %files email 397 459 %defattr(-,root,root) 398 #%doc Documentation/*email*.txt460 %doc Documentation/*email*.txt 399 461 %{gitcoredir}/*email* 400 462 %{!?_without_docs: %{_mandir}/man1/*email*.1*} 401 463 %{!?_without_docs: %doc Documentation/*email*.html } 402 464 465 %if 0 466 403 467 %files gui 404 468 %defattr(-,root,root) 405 #%{gitcoredir}/git-gui*406 #%{gitcoredir}/git-citool407 #%{_datadir}/applications/*git-gui.desktop408 #%{_datadir}/git-gui/409 #%{!?_without_docs: %{_mandir}/man1/git-gui.1*}410 #%{!?_without_docs: %doc Documentation/git-gui.html}411 #%{!?_without_docs: %{_mandir}/man1/git-citool.1*}412 #%{!?_without_docs: %doc Documentation/git-citool.html}469 %{gitcoredir}/git-gui* 470 %{gitcoredir}/git-citool 471 %{_datadir}/applications/*git-gui.desktop 472 %{_datadir}/git-gui/ 473 %{!?_without_docs: %{_mandir}/man1/git-gui.1*} 474 %{!?_without_docs: %doc Documentation/git-gui.html} 475 %{!?_without_docs: %{_mandir}/man1/git-citool.1*} 476 %{!?_without_docs: %doc Documentation/git-citool.html} 413 477 414 478 %files -n gitk 415 479 %defattr(-,root,root) 416 #%doc Documentation/*gitk*.txt 417 #%{_bindir}/*gitk* 418 #%{_datadir}/gitk 419 #%{!?_without_docs: %{_mandir}/man1/*gitk*.1*} 420 #%{!?_without_docs: %doc Documentation/*gitk*.html } 421 422 %files -n perl-Git 423 # -f perl-files 424 %defattr(-,root,root) 425 %if 0%{?fedora} 480 %doc Documentation/*gitk*.txt 481 %{_bindir}/*gitk* 482 %{_datadir}/gitk 483 %{!?_without_docs: %{_mandir}/man1/*gitk*.1*} 484 %{!?_without_docs: %doc Documentation/*gitk*.html } 485 486 %endif 487 488 %files -n perl-Git -f perl-git-files 489 %defattr(-,root,root) 490 %{!?_without_docs: %exclude %{_mandir}/man3/*Git*SVN*.3pm*} 491 %{!?_without_docs: %{_mandir}/man3/*Git*.3pm*} 492 493 %files -n perl-Git-SVN -f perl-git-svn-files 494 %defattr(-,root,root) 495 %{!?_without_docs: %{_mandir}/man3/*Git*SVN*.3pm*} 496 497 %if 0 498 426 499 %files -n emacs-git 427 500 %defattr(-,root,root) 428 501 %doc contrib/emacs/README 429 %{_datadir}/emacs/site-lisp/*git*.el* 430 %{_datadir}/emacs/site-lisp/site-start.d/git-init.el 502 %dir %{elispdir} 503 %{elispdir}/*.elc 504 %{_emacs_sitestartdir}/git-init.el 505 506 %files -n emacs-git-el 507 %defattr(-,root,root) 508 %{elispdir}/*.el 509 431 510 %endif 432 511 … … 434 513 %defattr(-,root,root) 435 514 %doc Documentation/*daemon*.txt 515 %if %{use_systemd} 516 %{_unitdir}/git.socket 517 %{_unitdir}/git.service 518 %else 519 %if 0 436 520 %config(noreplace)%{_sysconfdir}/xinetd.d/git 437 %{gitcoredir}/git-daemon.exe 521 %endif 522 %endif 523 %{gitcoredir}/git-daemon* 438 524 %{_var}/lib/git 439 525 %{!?_without_docs: %{_mandir}/man1/*daemon*.1*} 440 526 %{!?_without_docs: %doc Documentation/*daemon*.html} 441 527 528 %if 0 442 529 %files -n gitweb 443 530 %defattr(-,root,root) 444 #%doc gitweb/INSTALL gitweb/README445 #%config(noreplace)%{_sysconfdir}/gitweb.conf446 #%config(noreplace)%{_sysconfdir}/httpd/conf.d/git.conf531 %doc gitweb/INSTALL gitweb/README 532 %config(noreplace)%{_sysconfdir}/gitweb.conf 533 %config(noreplace)%{_sysconfdir}/httpd/conf.d/git.conf 447 534 %{_var}/www/git/ 448 535 %endif 449 536 450 537 %files all … … 452 539 453 540 %changelog 541 * Wed Sep 10 2014 Dmitriy Kuminov <coding@dmik.org> 2.0.0-1 542 - Update git to version 2.0.0. 543 - Fix cloning and pushing over HTTP(S). 544 - Remove many old unneeded patches to have less OS/2-dependent code. 545 454 546 * Sat Dec 17 2011 yd 455 547 - rebuild due to gcc 4.4.6 bug.
Note:
See TracChangeset
for help on using the changeset viewer.