rpms/git/devel git-init.el,NONE,1.1 git.spec,1.33,1.34

Joshua W. Boyer (jwboyer) fedora-extras-commits at redhat.com
Fri Jun 22 13:22:10 UTC 2007


Author: jwboyer

Update of /cvs/pkgs/rpms/git/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16360

Modified Files:
	git.spec 
Added Files:
	git-init.el 
Log Message:
Add emacs-git package from Ville (#235431)



--- NEW FILE git-init.el ---
;; Git VC backend
(add-to-list 'vc-handled-backends 'GIT t)


Index: git.spec
===================================================================
RCS file: /cvs/pkgs/rpms/git/devel/git.spec,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- git.spec	18 Jun 2007 17:22:45 -0000	1.33
+++ git.spec	22 Jun 2007 13:21:35 -0000	1.34
@@ -1,15 +1,16 @@
 # Pass --without docs to rpmbuild if you don't want the documentation
 Name: 		git
 Version: 	1.5.2.2
-Release: 	1%{?dist}
+Release: 	2%{?dist}
 Summary:  	Git core and tools
 License: 	GPL
 Group: 		Development/Tools
 URL: 		http://kernel.org/pub/software/scm/git/
 Source: 	http://kernel.org/pub/software/scm/git/%{name}-%{version}.tar.gz
-BuildRequires:	perl-devel, zlib-devel >= 1.2, openssl-devel, curl-devel, expat-devel  %{!?_without_docs:, xmlto, asciidoc > 6.0.3}
+Source1:	git-init.el
+BuildRequires:	zlib-devel >= 1.2, openssl-devel, curl-devel, expat-devel, emacs  %{!?_without_docs:, xmlto, asciidoc > 6.0.3}
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires:	git-core, git-svn, git-cvs, git-arch, git-email, gitk, git-gui, perl-Git
+Requires:	git-core, git-svn, git-cvs, git-arch, git-email, gitk, git-gui, perl-Git, emacs-git
 
 %description
 Git is a fast, scalable, distributed revision control system with an
@@ -62,24 +63,32 @@
 Group:          Development/Tools
 Requires:       git-core = %{version}-%{release}, tk >= 8.4
 %description gui
-Git GUI tool
+Git GUI tool.
 
 %package -n gitk
-Summary:        Git revision tree visualiser ('gitk')
+Summary:        Git revision tree visualiser
 Group:          Development/Tools
 Requires:       git-core = %{version}-%{release}, tk >= 8.4
 %description -n gitk
-Git revision tree visualiser ('gitk')
+Git revision tree visualiser.
 
 %package -n perl-Git
 Summary:        Perl interface to Git
 Group:          Development/Libraries
 Requires:       git-core = %{version}-%{release}
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-BuildRequires:  perl(Error)
+BuildRequires:  perl(Error), perl(ExtUtils::MakeMaker)
 
 %description -n perl-Git
-Perl interface to Git
+Perl interface to Git.
+
+%package -n emacs-git
+Summary:       Git version control system support for Emacs
+Group:         Applications/Editors
+Requires:      git-core = %{version}-%{release}, emacs-common
+
+%description -n emacs-git
+%{summary}.
 
 %prep
 %setup -q
@@ -88,6 +97,7 @@
 make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" \
      ETC_GITCONFIG=/etc/gitconfig \
      prefix=%{_prefix} all %{!?_without_docs: doc}
+make -C contrib/emacs
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -95,6 +105,14 @@
      prefix=%{_prefix} mandir=%{_mandir} \
      ETC_GITCONFIG=/etc/gitconfig \
      INSTALLDIRS=vendor install %{!?_without_docs: install-doc}
+make -C contrib/emacs install \
+		 emacsdir=$RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp
+for elc in $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/*.elc ; do
+	install -pm 644 contrib/emacs/$(basename $elc .elc).el \
+	$RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp
+done
+install -Dpm 644 %{SOURCE1} \
+	$RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d/git-init.el
 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
 find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
 find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec rm -f {} ';'
@@ -162,6 +180,11 @@
 %files -n perl-Git -f perl-files
 %defattr(-,root,root)
 
+%files -n emacs-git
+%defattr(-,root,root)
+%{_datadir}/emacs/site-lisp/*git*.el*
+%{_datadir}/emacs/site-lisp/site-start.d/git-init.el
+
 %files core -f bin-man-doc-files
 %defattr(-,root,root)
 %{_datadir}/git-core/
@@ -170,6 +193,9 @@
 %{!?_without_docs: %doc Documentation/technical}
 
 %changelog
+* Thu Jun 21 2007 Josh Boyer <jwboyer at jdub.homelinux.org> 1.5.2.2-2
+- Add emacs-git package (#235431)
+
 * Mon Jun 18 2007 James Bowes <jbowes at redhat.com> 1.5.2.2-1
 - git-1.5.2.2
 




More information about the fedora-extras-commits mailing list