git.spec.inon commit test-regex: Add a test to check for a bug in the regex routines (c918415)
   1# Pass --without docs to rpmbuild if you don't want the documentation
   2
   3Name:           git
   4Version:        @@VERSION@@
   5Release:        1%{?dist}
   6Summary:        Core git 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
  11BuildRequires:  zlib-devel >= 1.2, openssl-devel, curl-devel, expat-devel, gettext  %{!?_without_docs:, xmlto, asciidoc > 6.0.3}
  12BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  13
  14Requires:       perl-Git = %{version}-%{release}
  15Requires:       zlib >= 1.2, rsync, less, openssh-clients, expat
  16Provides:       git-core = %{version}-%{release}
  17Obsoletes:      git-core <= 1.5.4.2
  18Obsoletes:      git-p4
  19
  20%description
  21Git is a fast, scalable, distributed revision control system with an
  22unusually rich command set that provides both high-level operations
  23and full access to internals.
  24
  25The git rpm installs the core tools with minimal dependencies.  To
  26install all git packages, including tools for integrating with other
  27SCMs, install the git-all meta-package.
  28
  29%package all
  30Summary:        Meta-package to pull in all git tools
  31Group:          Development/Tools
  32Requires:       git = %{version}-%{release}
  33Requires:       git-svn = %{version}-%{release}
  34Requires:       git-cvs = %{version}-%{release}
  35Requires:       git-arch = %{version}-%{release}
  36Requires:       git-email = %{version}-%{release}
  37Requires:       gitk = %{version}-%{release}
  38Requires:       gitweb = %{version}-%{release}
  39Requires:       git-gui = %{version}-%{release}
  40Obsoletes:      git <= 1.5.4.2
  41
  42%description all
  43Git is a fast, scalable, distributed revision control system with an
  44unusually rich command set that provides both high-level operations
  45and full access to internals.
  46
  47This is a dummy package which brings in all subpackages.
  48
  49%package svn
  50Summary:        Git tools for importing Subversion repositories
  51Group:          Development/Tools
  52Requires:       git = %{version}-%{release}, subversion
  53%description svn
  54Git tools for importing Subversion repositories.
  55
  56%package cvs
  57Summary:        Git tools for importing CVS repositories
  58Group:          Development/Tools
  59Requires:       git = %{version}-%{release}, cvs, cvsps
  60%description cvs
  61Git tools for importing CVS repositories.
  62
  63%package arch
  64Summary:        Git tools for importing Arch repositories
  65Group:          Development/Tools
  66Requires:       git = %{version}-%{release}, tla
  67%description arch
  68Git tools for importing Arch repositories.
  69
  70%package email
  71Summary:        Git tools for sending email
  72Group:          Development/Tools
  73Requires:       git = %{version}-%{release}
  74%description email
  75Git tools for sending email.
  76
  77%package gui
  78Summary:        Git GUI tool
  79Group:          Development/Tools
  80Requires:       git = %{version}-%{release}, tk >= 8.4
  81%description gui
  82Git GUI tool
  83
  84%package -n gitk
  85Summary:        Git revision tree visualiser ('gitk')
  86Group:          Development/Tools
  87Requires:       git = %{version}-%{release}, tk >= 8.4
  88%description -n gitk
  89Git revision tree visualiser ('gitk')
  90
  91%package -n gitweb
  92Summary:        Git web interface
  93Group:          Development/Tools
  94Requires:       git = %{version}-%{release}
  95%description -n gitweb
  96Browsing git repository on the web
  97
  98%package -n perl-Git
  99Summary:        Perl interface to Git
 100Group:          Development/Libraries
 101Requires:       git = %{version}-%{release}
 102Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 103BuildRequires:  perl(Error)
 104
 105%description -n perl-Git
 106Perl interface to Git
 107
 108%define path_settings ETC_GITCONFIG=/etc/gitconfig prefix=%{_prefix} mandir=%{_mandir} htmldir=%{_docdir}/%{name}-%{version}
 109%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 110
 111%prep
 112%setup -q
 113
 114%build
 115make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" \
 116     %{path_settings} \
 117     all %{!?_without_docs: doc}
 118
 119%install
 120rm -rf $RPM_BUILD_ROOT
 121make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" DESTDIR=$RPM_BUILD_ROOT \
 122     %{path_settings} \
 123     INSTALLDIRS=vendor install %{!?_without_docs: install-doc}
 124test ! -d $RPM_BUILD_ROOT%{python_sitelib} || rm -fr $RPM_BUILD_ROOT%{python_sitelib}
 125find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
 126find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
 127find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec rm -f {} ';'
 128
 129(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
 130(find $RPM_BUILD_ROOT%{_libexecdir}/git-core -type f | grep -vE "archimport|svn|cvs|email|gitk|git-gui|git-citool" | sed -e s@^$RPM_BUILD_ROOT@@)               >> bin-man-doc-files
 131(find $RPM_BUILD_ROOT%{perl_vendorlib} -type f | sed -e s@^$RPM_BUILD_ROOT@@) >> perl-files
 132%if %{!?_without_docs:1}0
 133(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
 134%else
 135rm -rf $RPM_BUILD_ROOT%{_mandir}
 136%endif
 137rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
 138
 139mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
 140install -m 644 -T contrib/completion/git-completion.bash $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/git
 141
 142%clean
 143rm -rf $RPM_BUILD_ROOT
 144
 145%files -f bin-man-doc-files
 146%defattr(-,root,root)
 147%{_datadir}/git-core/
 148%doc README COPYING Documentation/*.txt
 149%{!?_without_docs: %doc Documentation/*.html Documentation/howto}
 150%{!?_without_docs: %doc Documentation/technical}
 151%{_sysconfdir}/bash_completion.d
 152
 153%files svn
 154%defattr(-,root,root)
 155%{_libexecdir}/git-core/*svn*
 156%doc Documentation/*svn*.txt
 157%{!?_without_docs: %{_mandir}/man1/*svn*.1*}
 158%{!?_without_docs: %doc Documentation/*svn*.html }
 159
 160%files cvs
 161%defattr(-,root,root)
 162%doc Documentation/*git-cvs*.txt
 163%{_bindir}/git-cvsserver
 164%{_libexecdir}/git-core/*cvs*
 165%{!?_without_docs: %{_mandir}/man1/*cvs*.1*}
 166%{!?_without_docs: %doc Documentation/*git-cvs*.html }
 167
 168%files arch
 169%defattr(-,root,root)
 170%doc Documentation/git-archimport.txt
 171%{_libexecdir}/git-core/git-archimport
 172%{!?_without_docs: %{_mandir}/man1/git-archimport.1*}
 173%{!?_without_docs: %doc Documentation/git-archimport.html }
 174
 175%files email
 176%defattr(-,root,root)
 177%doc Documentation/*email*.txt
 178%{_libexecdir}/git-core/*email*
 179%{!?_without_docs: %{_mandir}/man1/*email*.1*}
 180%{!?_without_docs: %doc Documentation/*email*.html }
 181
 182%files gui
 183%defattr(-,root,root)
 184%{_libexecdir}/git-core/git-gui
 185%{_libexecdir}/git-core/git-citool
 186%{_libexecdir}/git-core/git-gui--askpass
 187%{_datadir}/git-gui/
 188%{!?_without_docs: %{_mandir}/man1/git-gui.1*}
 189%{!?_without_docs: %doc Documentation/git-gui.html}
 190%{!?_without_docs: %{_mandir}/man1/git-citool.1*}
 191%{!?_without_docs: %doc Documentation/git-citool.html}
 192
 193%files -n gitk
 194%defattr(-,root,root)
 195%doc Documentation/*gitk*.txt
 196%{_bindir}/*gitk*
 197%{_datadir}/gitk/
 198%{!?_without_docs: %{_mandir}/man1/*gitk*.1*}
 199%{!?_without_docs: %doc Documentation/*gitk*.html }
 200
 201%files -n gitweb
 202%defattr(-,root,root)
 203%doc gitweb/README gitweb/INSTALL Documentation/*gitweb*.txt
 204%{_datadir}/gitweb
 205%{!?_without_docs: %{_mandir}/man1/*gitweb*.1*}
 206%{!?_without_docs: %{_mandir}/man5/*gitweb*.5*}
 207%{!?_without_docs: %doc Documentation/*gitweb*.html }
 208
 209%files -n perl-Git -f perl-files
 210%defattr(-,root,root)
 211
 212%files all
 213# No files for you!
 214
 215%changelog
 216* Sun Sep 18 2011 Jakub Narebski <jnareb@gmail.com>
 217- Add gitweb manpages to 'gitweb' subpackage
 218
 219* Wed Jun 30 2010 Junio C Hamano <gitster@pobox.com>
 220- Add 'gitweb' subpackage.
 221
 222* Fri Mar 26 2010 Ian Ward Comfort <icomfort@stanford.edu>
 223- Ship bash completion support from contrib/ in the core package.
 224
 225* Sun Jan 31 2010 Junio C Hamano <gitster@pobox.com>
 226- Do not use %define inside %{!?...} construct.
 227
 228* Sat Jan 30 2010 Junio C Hamano <gitster@pobox.com>
 229- We don't ship Python bits until a real foreign scm interface comes.
 230
 231* Mon Feb 04 2009 David J. Mellor <dmellor@whistlingcat.com>
 232- fixed broken git help -w after renaming the git-core package to git.
 233
 234* Fri Sep 12 2008 Quy Tonthat <qtonthat@gmail.com>
 235- move git-cvsserver to bindir.
 236
 237* Sun Jun 15 2008 Junio C Hamano <gitster@pobox.com>
 238- Remove curl from Requires list.
 239
 240* Fri Feb 15 2008 Kristian Høgsberg <krh@redhat.com>
 241- Rename git-core to just git and rename meta package from git to git-all.
 242
 243* Sun Feb 03 2008 James Bowes <jbowes@dangerouslyinc.com>
 244- Add a BuildRequires for gettext
 245
 246* Fri Jan 11 2008 Junio C Hamano <gitster@pobox.com>
 247- Include gitk message files
 248
 249* Sun Jan 06 2008 James Bowes <jbowes@dangerouslyinc.com>
 250- Make the metapackage require the same version of the subpackages.
 251
 252* Wed Dec 12 2007 Junio C Hamano <gitster@pobox.com>
 253- Adjust htmldir to point at /usr/share/doc/git-core-$version/
 254
 255* Sun Jul 15 2007 Sean Estabrooks <seanlkml@sympatico.ca>
 256- Removed p4import.
 257
 258* Tue Jun 26 2007 Quy Tonthat <qtonthat@gmail.com>
 259- Fixed problems looking for wrong manpages.
 260
 261* Thu Jun 21 2007 Shawn O. Pearce <spearce@spearce.org>
 262- Added documentation files for git-gui
 263
 264* Tue May 13 2007 Quy Tonthat <qtonthat@gmail.com>
 265- Added lib files for git-gui
 266- Added Documentation/technical (As needed by Git Users Manual)
 267
 268* Tue May 8 2007 Quy Tonthat <qtonthat@gmail.com>
 269- Added howto files
 270
 271* Tue Mar 27 2007 Eygene Ryabinkin <rea-git@codelabs.ru>
 272- Added the git-p4 package: Perforce import stuff.
 273
 274* Mon Feb 13 2007 Nicolas Pitre <nico@fluxnic.net>
 275- Update core package description (Git isn't as stupid as it used to be)
 276
 277* Mon Feb 12 2007 Junio C Hamano <junkio@cox.net>
 278- Add git-gui and git-citool.
 279
 280* Mon Nov 14 2005 H. Peter Anvin <hpa@zytor.com> 0.99.9j-1
 281- Change subpackage names to git-<name> instead of git-core-<name>
 282- Create empty root package which brings in all subpackages
 283- Rename git-tk -> gitk
 284
 285* Thu Nov 10 2005 Chris Wright <chrisw@osdl.org> 0.99.9g-1
 286- zlib dependency fix
 287- Minor cleanups from split
 288- Move arch import to separate package as well
 289
 290* Tue Sep 27 2005 Jim Radford <radford@blackbean.org>
 291- Move programs with non-standard dependencies (svn, cvs, email)
 292  into separate packages
 293
 294* Tue Sep 27 2005 H. Peter Anvin <hpa@zytor.com>
 295- parallelize build
 296- COPTS -> CFLAGS
 297
 298* Fri Sep 16 2005 Chris Wright <chrisw@osdl.org> 0.99.6-1
 299- update to 0.99.6
 300
 301* Fri Sep 16 2005 Horst H. von Brand <vonbrand@inf.utfsm.cl>
 302- Linus noticed that less is required, added to the dependencies
 303
 304* Sun Sep 11 2005 Horst H. von Brand <vonbrand@inf.utfsm.cl>
 305- Updated dependencies
 306- Don't assume manpages are gzipped
 307
 308* Thu Aug 18 2005 Chris Wright <chrisw@osdl.org> 0.99.4-4
 309- drop sh_utils, sh-utils, diffutils, mktemp, and openssl Requires
 310- use RPM_OPT_FLAGS in spec file, drop patch0
 311
 312* Wed Aug 17 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.99.4-3
 313- use dist tag to differentiate between branches
 314- use rpm optflags by default (patch0)
 315- own %{_datadir}/git-core/
 316
 317* Mon Aug 15 2005 Chris Wright <chrisw@osdl.org>
 318- update spec file to fix Buildroot, Requires, and drop Vendor
 319
 320* Sun Aug 07 2005 Horst H. von Brand <vonbrand@inf.utfsm.cl>
 321- Redid the description
 322- Cut overlong make line, loosened changelog a bit
 323- I think Junio (or perhaps OSDL?) should be vendor...
 324
 325* Thu Jul 14 2005 Eric Biederman <ebiederm@xmission.com>
 326- Add the man pages, and the --without docs build option
 327
 328* Wed Jul 7 2005 Chris Wright <chris@osdl.org>
 329- initial git spec file