Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add an rpm .spec file

Add a modest rpm .spec file and ensure that it's autoconf'd to keep
step with the release version number.

Ignore the generated .spec file, but ensure it's distributed with any
tarballs.

Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
  • Loading branch information...
commit d589942f5a29179f50bd2bec8f5d3b072ae5c076 1 parent 7bf25f3
Ben Walton authored philjackson committed
Showing with 48 additions and 2 deletions.
  1. +1 −0  .gitignore
  2. +1 −1  Makefile.am
  3. +2 −1  configure.ac
  4. +44 −0 magit.spec.in
View
1  .gitignore
@@ -35,3 +35,4 @@
/magit.pdf
/magit.ps
/magit-pkg.el
+magit.spec
View
2  Makefile.am
@@ -7,7 +7,7 @@ sitestart_DATA = 50magit.el
info_TEXINFOS = magit.texi
CLEANFILES = magit.elc
-EXTRA_DIST = magit.el 50magit.el
+EXTRA_DIST = magit.el 50magit.el magit.spec
%.elc: %.el
@if [ $(builddir) != $(srcdir) ]; then ln $(srcdir)/$*.el .; fi
View
3  configure.ac
@@ -9,6 +9,7 @@ AC_ARG_WITH([site-start],
AC_SUBST([SITESTART])
AC_CONFIG_FILES([Makefile
- magit-pkg.el])
+ magit-pkg.el
+ magit.spec])
AC_OUTPUT
View
44 magit.spec.in
@@ -0,0 +1,44 @@
+Name: magit
+Version: @VERSION@
+Release: 1%{?dist}
+Summary: An Emacs Extension for Git
+BuildArch: noarch
+Group: Development/Tools
+License: GPLv3
+URL: http://zagadka.vm.bytemark.co.uk/magit
+Source0: %{url}/%{name}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: texinfo, autoconf, automake, emacs
+Requires: git, emacs
+
+%description
+Magit is an interface to the version control system Git, implemented
+as an extension to Emacs.
+
+%prep
+%setup -q
+
+%build
+%configure --prefix=/usr --sysconfdir=/etc --with-site-start=/usr/share/emacs/site-lisp/site-start.d
+make %{?_smp_mflags}
+
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+rm $RPM_BUILD_ROOT/usr/share/info/dir
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+/usr/share/emacs/site-lisp/site-start.d/50magit.el
+/usr/share/emacs/site-lisp/magit.el
+/usr/share/emacs/site-lisp/magit.elc
+%doc README NEWS COPYING AUTHORS
+/usr/share/info/magit.info.gz
+
+%changelog
+* Sun Mar 14 2010 Ben Walton <bwalton@artsci.utoronto.ca>
+- Initial spec file creation.
Please sign in to comment.
Something went wrong with that request. Please try again.