Created
January 3, 2013 12:21
-
-
Save ttakezawa/4443086 to your computer and use it in GitHub Desktop.
CentOS6.3でemacs 24.2のRPM作成に使ったSPECファイル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: emacs-latest | |
Version: 24.2 | |
Release: 1%{?dist} | |
Summary: GNU Emacs | |
#Group: | |
License: GPL | |
URL: http://www.gnu.org/software/emacs/ | |
Source0: http://ftp.gnu.org/pub/gnu/emacs/emacs-24.2.tar.xz | |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | |
BuildRequires: ncurses-devel | |
#Requires: | |
Conflicts: emacs | |
%description | |
Latest GNU Emacs | |
%prep | |
%setup -q -n emacs-%{version} | |
%build | |
%configure --without-x | |
make %{?_smp_mflags} | |
%install | |
rm -rf $RPM_BUILD_ROOT | |
make install DESTDIR=$RPM_BUILD_ROOT | |
# suppress conflict (ref: emacs.spec) | |
mv %{buildroot}%{_bindir}/{etags,etags.emacs} | |
mv %{buildroot}%{_mandir}/man1/{ctags.1.gz,gctags.1.gz} | |
mv %{buildroot}%{_mandir}/man1/{etags.1.gz,etags.emacs.1.gz} | |
mv %{buildroot}%{_bindir}/{ctags,gctags} | |
rm -f %{buildroot}%{_infodir}/dir | |
%clean | |
rm -rf $RPM_BUILD_ROOT | |
%files | |
%defattr(-,root,root,-) | |
%doc | |
%{_bindir}/* | |
%{_mandir}/*/* | |
%{_infodir}/* | |
/usr/libexec/emacs/%{version} | |
/usr/share/applications/emacs.desktop | |
/usr/share/emacs/%{version} | |
/usr/share/emacs/site-lisp/subdirs.el | |
/usr/share/icons/hicolor/*/apps/* | |
/usr/share/icons/hicolor/scalable/mimetypes/emacs-document.svg | |
/var/games/emacs/snake-scores | |
/var/games/emacs/tetris-scores | |
%changelog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment