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>
This commit is contained in:
parent
4bfb6b62ff
commit
7d4de59b17
@ -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
|
rudimentary tools that can be used as a SCM, but you should look
|
||||||
elsewhere for tools for ordinary humans layered on top of this.
|
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
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%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}
|
prefix=%{_prefix} all %{!?_without_docs: doc}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
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} \
|
prefix=%{_prefix} mandir=%{_mandir} \
|
||||||
install %{!?_without_docs: install-doc}
|
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
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
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)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/*
|
|
||||||
%{_datadir}/git-core/
|
%{_datadir}/git-core/
|
||||||
%doc README COPYING Documentation/*.txt
|
%doc README COPYING Documentation/*.txt
|
||||||
%{!?_without_docs: %doc Documentation/*.html }
|
%{!?_without_docs: %doc Documentation/*.html }
|
||||||
%{!?_without_docs: %{_mandir}/man1/*.1*}
|
|
||||||
%{!?_without_docs: %{_mandir}/man7/*.7*}
|
|
||||||
|
|
||||||
%changelog
|
%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>
|
* Tue Sep 27 2005 H. Peter Anvin <hpa@zytor.com>
|
||||||
- parallelize build
|
- parallelize build
|
||||||
- COPTS -> CFLAGS
|
- COPTS -> CFLAGS
|
||||||
|
Loading…
Reference in New Issue
Block a user