slackbuilds/magit.spec.in
Ben Walton d589942f5a 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>
2010-03-24 10:14:22 +00:00

44 lines
1 KiB
RPMSpec

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.