File emacs-color-theme.spec of Package emacs-color-theme
%global pkg color-theme
%global pkgname Emacs Color Themes
%global emacs_sitelispdir %{_datadir}/emacs/site-lisp
Name: emacs-color-theme
Summary: ELisp mode for skinning Emacs
Version: 6.6.0
Release: 1
Group: Productivity/Text/Editors
License: GPLv2+
URL: http://www.nongnu.org/color-theme/
Source0: http://download.savannah.gnu.org/releases/%{pkg}/%{pkg}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: emacs
%description
Emacs Color Theme provides an extensible theme library that is easy to
use to create more Emacs themes which you can also share with the
world. It also comes with a lot of default color themes.
%package -n %{name}-el
Summary: Elisp source files for %{pkgname} under GNU Emacs
Group: Applications/Editors
Requires: %{name} = %{version}-%{release}
%description -n %{name}-el
This package contains the elisp source files for %{pkgname} under GNU
Emacs. You do not need to install this package to run %{pkgname}.
Install the %{name} package to use %{pkgname} with GNU Emacs.
%prep
%setup -q -n %{pkg}-%{version}
%build
make
%install
mkdir -p %{buildroot}%{_emacs_sitelispdir}/%{pkg}
mkdir -p %{buildroot}%{_emacs_sitelispdir}/%{pkg}/themes
mkdir -p %{buildroot}%{_emacs_sitestartdir}/
cp *.el *.elc %{buildroot}%{_emacs_sitelispdir}/%{pkg}
cp themes/*.el themes/*.elc %{buildroot}%{_emacs_sitelispdir}/%{pkg}/themes
%files
%defattr(-,root,root,-)
%doc COPYING README
%{_emacs_sitelispdir}/%{pkg}/*.elc
%{_emacs_sitelispdir}/%{pkg}/themes/*.elc
%dir %{_emacs_sitelispdir}/%{pkg}
%files -n %{name}-el
%defattr(-,root,root,-)
%{_emacs_sitelispdir}/%{pkg}/*.el
%{_emacs_sitelispdir}/%{pkg}/themes/*.el