diff options
author | Jim Radford <radford@blackbean.org> | 2005-11-05 11:38:02 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-08 01:24:54 -0800 |
commit | 7d4de59b1714d0ed78db7cafc083050e1b86e3df (patch) | |
tree | 11298de004ea3a869b025806bc9ed7da79d468c6 /git-core.spec.in | |
parent | 4bfb6b62ffc9460798ebc78c3a30e4eff7c409d0 (diff) | |
download | git-7d4de59b1714d0ed78db7cafc083050e1b86e3df.tar.gz git-7d4de59b1714d0ed78db7cafc083050e1b86e3df.tar.xz |
Separate RPMS for programs with non-standard dependencies.
Signed-off-by: Jim Radford <radford@blackbean.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-core.spec.in')
-rw-r--r-- | git-core.spec.in | 50 |
1 files changed, 44 insertions, 6 deletions
diff --git a/git-core.spec.in b/git-core.spec.in index 5240dd2c2..26846d005 100644 --- a/git-core.spec.in +++ b/git-core.spec.in @@ -19,32 +19,70 @@ distributed source code management system. This package includes rudimentary tools that can be used as a SCM, but you should look elsewhere for tools for ordinary humans layered on top of this. +%package svn +Summary: Git tools for importing Subversion repositories. +Group: Development/Tools +Requires: subversion +%description svn +Git tools for importing Subversion repositories. + +%package cvs +Summary: Git tools for importing CVS repositories. +Group: Development/Tools +Requires: cvs +%description cvs +Git tools for importing CVS repositories. + +%package email +Summary: Git tools for sending email. +Group: Development/Tools +%description email +Git tools for sending email. + %prep %setup -q %build -make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" WITH_OWN_SUBPROCESS_PY=YesPlease \ +make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" WITH_OWN_SUBPROCESS_PY=YesPlease WITH_SEND_EMAIL=1 \ prefix=%{_prefix} all %{!?_without_docs: doc} %install rm -rf $RPM_BUILD_ROOT -make %{_smp_mflags} DESTDIR=$RPM_BUILD_ROOT WITH_OWN_SUBPROCESS_PY=YesPlease \ +make %{_smp_mflags} DESTDIR=$RPM_BUILD_ROOT WITH_OWN_SUBPROCESS_PY=YesPlease WITH_SEND_EMAIL=1 \ prefix=%{_prefix} mandir=%{_mandir} \ install %{!?_without_docs: install-doc} +(find $RPM_BUILD_ROOT%{_bindir} -type f | grep -vE "svn|cvs|email" | sed -e s@^$RPM_BUILD_ROOT@@) > bin-man-files +%if %{!?_without_docs:1}0 +(find $RPM_BUILD_ROOT%{_mandir} -type f | grep -vE "svn|cvs|email" | sed -e s@^$RPM_BUILD_ROOT@@ -e 's/$/*/' ) >> bin-man-files +%endif + %clean rm -rf $RPM_BUILD_ROOT -%files +%files svn +%{_bindir}/*svn* +%{!?_without_docs: %{_mandir}/man1/*svn*.1*} + +%files cvs +%{_bindir}/*cvs* +%{!?_without_docs: %{_mandir}/man1/*cvs*.1*} + +%files email +%{_bindir}/*email* +%{!?_without_docs: %{_mandir}/man1/*email*.1*} + +%files -f bin-man-files %defattr(-,root,root) -%{_bindir}/* %{_datadir}/git-core/ %doc README COPYING Documentation/*.txt %{!?_without_docs: %doc Documentation/*.html } -%{!?_without_docs: %{_mandir}/man1/*.1*} -%{!?_without_docs: %{_mandir}/man7/*.7*} %changelog +* Tue Sep 27 2005 Jim Radford <radford@blackbean.org> +- Move programs with non-standard dependencies (svn, cvs, email) + into separate packages + * Tue Sep 27 2005 H. Peter Anvin <hpa@zytor.com> - parallelize build - COPTS -> CFLAGS |