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