|
|
ef8877d |
%define pkg htmlize
|
|
|
ef8877d |
%define pkgname HTMLize
|
|
|
ef8877d |
|
|
|
ef8877d |
%if %($(pkg-config emacs) ; echo $?)
|
|
|
ef8877d |
%define emacs_lispdir %{_datadir}/emacs/site-lisp
|
|
|
ef8877d |
%define emacs_startdir %{_datadir}/emacs/site-lisp/site-start.d
|
|
|
ef8877d |
%define emacs_version 22.2
|
|
|
ef8877d |
%else
|
|
|
ef8877d |
%define emacs_lispdir %(pkg-config emacs --variable sitepkglispdir)
|
|
|
ef8877d |
%define emacs_startdir %(pkg-config emacs --variable sitestartdir)
|
|
|
ef8877d |
%define emacs_version %(pkg-config emacs --modversion)
|
|
|
ef8877d |
%endif
|
|
|
ef8877d |
|
|
|
ef8877d |
Summary: Convert buffer text and decorations to HTML
|
|
|
ef8877d |
Name: emacs-%{pkg}
|
|
|
ef8877d |
Version: 1.34
|
|
|
ef8877d |
Release: 2%{?dist}
|
|
|
ef8877d |
License: GPLv2+
|
|
|
ef8877d |
Group: Applications/Publishing
|
|
|
ef8877d |
URL: http://www.emacswiki.org/emacs-en/Htmlize
|
|
|
ef8877d |
Source0: http://fly.srk.fer.hr/~hniksic/emacs/%{pkg}.el
|
|
|
ef8877d |
Source1: %{pkg}-init.el
|
|
|
ef8877d |
|
|
|
ef8877d |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
ef8877d |
|
|
|
ef8877d |
Requires: emacs(bin) >= emacs_version
|
|
|
ef8877d |
|
|
|
ef8877d |
BuildRequires: emacs
|
|
|
ef8877d |
BuildRequires: emacs-el
|
|
|
ef8877d |
|
|
|
ef8877d |
BuildArch: noarch
|
|
|
ef8877d |
|
|
|
ef8877d |
%description
|
|
|
ef8877d |
%{pkgname} is an add-on package for GNU Emacs. It converts the buffer text and
|
|
|
ef8877d |
the associated decorations to HTML. The conversion is quite sophisticated, it
|
|
|
ef8877d |
understands non-ascii characters, looks up colours in the X11 RGB database,
|
|
|
ef8877d |
and can generate either CSS or old style font bits.
|
|
|
ef8877d |
|
|
|
ef8877d |
%package el
|
|
|
ef8877d |
Summary: Emacs Lisp source files for %{name}
|
|
|
ef8877d |
Group: Development/Libraries
|
|
|
ef8877d |
|
|
|
ef8877d |
Requires: %{name} = %{version}-%{release}
|
|
|
ef8877d |
|
|
|
ef8877d |
%description el
|
|
|
ef8877d |
This package contains Emacs Lisp source files for %{name} under
|
|
|
ef8877d |
GNU Emacs. You do not need to install this package to run %{pkgname}.
|
|
|
ef8877d |
Install the %{name} package to use %{pkgname} with GNU Emacs.
|
|
|
ef8877d |
|
|
|
ef8877d |
%prep
|
|
|
ef8877d |
%setup -cT
|
|
|
ef8877d |
cp -p %{SOURCE0} .
|
|
|
ef8877d |
|
|
|
ef8877d |
%build
|
|
|
ef8877d |
emacs -batch -f batch-byte-compile ./%{pkg}.el
|
|
|
ef8877d |
|
|
|
ef8877d |
%install
|
|
|
ef8877d |
rm -rf $RPM_BUILD_ROOT
|
|
|
ef8877d |
mkdir -p $RPM_BUILD_ROOT%{emacs_lispdir}/%{pkg}
|
|
|
ef8877d |
mkdir -p $RPM_BUILD_ROOT%{emacs_startdir}
|
|
|
ef8877d |
|
|
|
ef8877d |
install -p -m644 ./%{pkg}.el $RPM_BUILD_ROOT%{emacs_lispdir}/%{pkg}
|
|
|
ef8877d |
install -p -m644 ./%{pkg}.elc $RPM_BUILD_ROOT%{emacs_lispdir}/%{pkg}
|
|
|
ef8877d |
install -p -m644 %{SOURCE1} $RPM_BUILD_ROOT%{emacs_startdir}
|
|
|
ef8877d |
|
|
|
ef8877d |
%clean
|
|
|
ef8877d |
rm -rf $RPM_BUILD_ROOT
|
|
|
ef8877d |
|
|
|
ef8877d |
%files
|
|
|
ef8877d |
%defattr(-,root,root,-)
|
|
|
ef8877d |
%dir %{emacs_lispdir}/%{pkg}
|
|
|
ef8877d |
%{emacs_lispdir}/%{pkg}/%{pkg}.elc
|
|
|
ef8877d |
%{emacs_startdir}/%{pkg}-init.el
|
|
|
ef8877d |
|
|
|
ef8877d |
%files el
|
|
|
ef8877d |
%defattr(-,root,root,-)
|
|
|
ef8877d |
%{emacs_lispdir}/%{pkg}/%{pkg}.el
|
|
|
ef8877d |
|
|
|
ef8877d |
%changelog
|
|
|
ef8877d |
* Fri Jan 23 2009 Debarshi Ray <rishi@fedoraproject.org> - 1.34-2
|
|
|
ef8877d |
- Added copyright and distribution notices to htmlize-init.el.
|
|
|
ef8877d |
|
|
|
ef8877d |
* Sat Jan 17 2009 Debarshi Ray <rishi@fedoraproject.org> - 1.34-1
|
|
|
ef8877d |
- Initial build.
|