|
|
221a548 |
%define pkg htmlize
|
|
|
221a548 |
%define pkgname HTMLize
|
|
|
221a548 |
|
|
|
221a548 |
%if %($(pkg-config emacs) ; echo $?)
|
|
|
221a548 |
%define emacs_lispdir %{_datadir}/emacs/site-lisp
|
|
|
221a548 |
%define emacs_startdir %{_datadir}/emacs/site-lisp/site-start.d
|
|
|
221a548 |
%define emacs_version 22.2
|
|
|
221a548 |
%else
|
|
|
221a548 |
%define emacs_lispdir %(pkg-config emacs --variable sitepkglispdir)
|
|
|
221a548 |
%define emacs_startdir %(pkg-config emacs --variable sitestartdir)
|
|
|
221a548 |
%define emacs_version %(pkg-config emacs --modversion)
|
|
|
221a548 |
%endif
|
|
|
221a548 |
|
|
|
221a548 |
Summary: Convert buffer text and decorations to HTML
|
|
|
221a548 |
Name: emacs-%{pkg}
|
|
|
221a548 |
Version: 1.34
|
|
|
e50f40d |
Release: 13%{?dist}
|
|
|
221a548 |
License: GPLv2+
|
|
|
221a548 |
Group: Applications/Publishing
|
|
|
221a548 |
URL: http://www.emacswiki.org/emacs-en/Htmlize
|
|
|
221a548 |
Source0: http://fly.srk.fer.hr/~hniksic/emacs/%{pkg}.el
|
|
|
221a548 |
Source1: %{pkg}-init.el
|
|
|
221a548 |
|
|
|
221a548 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
221a548 |
|
|
|
221a548 |
Requires: emacs(bin) >= emacs_version
|
|
|
221a548 |
|
|
|
221a548 |
BuildRequires: emacs
|
|
|
221a548 |
BuildRequires: emacs-el
|
|
|
221a548 |
|
|
|
221a548 |
BuildArch: noarch
|
|
|
221a548 |
|
|
|
221a548 |
%description
|
|
|
221a548 |
%{pkgname} is an add-on package for GNU Emacs. It converts the buffer text and
|
|
|
221a548 |
the associated decorations to HTML. The conversion is quite sophisticated, it
|
|
|
221a548 |
understands non-ascii characters, looks up colours in the X11 RGB database,
|
|
|
221a548 |
and can generate either CSS or old style font bits.
|
|
|
221a548 |
|
|
|
221a548 |
%package el
|
|
|
221a548 |
Summary: Emacs Lisp source files for %{name}
|
|
|
221a548 |
Group: Development/Libraries
|
|
|
221a548 |
|
|
|
221a548 |
Requires: %{name} = %{version}-%{release}
|
|
|
221a548 |
|
|
|
221a548 |
%description el
|
|
|
221a548 |
This package contains Emacs Lisp source files for %{name} under
|
|
|
221a548 |
GNU Emacs. You do not need to install this package to run %{pkgname}.
|
|
|
221a548 |
Install the %{name} package to use %{pkgname} with GNU Emacs.
|
|
|
221a548 |
|
|
|
221a548 |
%prep
|
|
|
221a548 |
%setup -cT
|
|
|
221a548 |
cp -p %{SOURCE0} .
|
|
|
221a548 |
|
|
|
221a548 |
%build
|
|
|
221a548 |
emacs -batch -f batch-byte-compile ./%{pkg}.el
|
|
|
221a548 |
|
|
|
221a548 |
%install
|
|
|
221a548 |
rm -rf $RPM_BUILD_ROOT
|
|
|
221a548 |
mkdir -p $RPM_BUILD_ROOT%{emacs_lispdir}/%{pkg}
|
|
|
221a548 |
mkdir -p $RPM_BUILD_ROOT%{emacs_startdir}
|
|
|
221a548 |
|
|
|
221a548 |
install -p -m644 ./%{pkg}.el $RPM_BUILD_ROOT%{emacs_lispdir}/%{pkg}
|
|
|
221a548 |
install -p -m644 ./%{pkg}.elc $RPM_BUILD_ROOT%{emacs_lispdir}/%{pkg}
|
|
|
221a548 |
install -p -m644 %{SOURCE1} $RPM_BUILD_ROOT%{emacs_startdir}
|
|
|
221a548 |
|
|
|
221a548 |
%clean
|
|
|
221a548 |
rm -rf $RPM_BUILD_ROOT
|
|
|
221a548 |
|
|
|
221a548 |
%files
|
|
|
221a548 |
%defattr(-,root,root,-)
|
|
|
221a548 |
%dir %{emacs_lispdir}/%{pkg}
|
|
|
221a548 |
%{emacs_lispdir}/%{pkg}/%{pkg}.elc
|
|
|
221a548 |
%{emacs_startdir}/%{pkg}-init.el
|
|
|
221a548 |
|
|
|
221a548 |
%files el
|
|
|
221a548 |
%defattr(-,root,root,-)
|
|
|
221a548 |
%{emacs_lispdir}/%{pkg}/%{pkg}.el
|
|
|
221a548 |
|
|
|
221a548 |
%changelog
|
|
|
e50f40d |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.34-13
|
|
|
e50f40d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
e50f40d |
|
|
|
608c839 |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.34-12
|
|
|
608c839 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
608c839 |
|
|
|
ab78407 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.34-11
|
|
|
ab78407 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
ab78407 |
|
|
|
2c24cf2 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.34-10
|
|
|
2c24cf2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
2c24cf2 |
|
|
|
3fc2793 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.34-9
|
|
|
3fc2793 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
3fc2793 |
|
|
|
c326abf |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.34-8
|
|
|
c326abf |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
c326abf |
|
|
|
3a4ff1c |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.34-7
|
|
|
3a4ff1c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
3a4ff1c |
|
|
|
77f5d25 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.34-6
|
|
|
77f5d25 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
77f5d25 |
|
|
|
c74f977 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.34-5
|
|
|
c74f977 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
c74f977 |
|
|
|
e0d93fe |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.34-4
|
|
|
e0d93fe |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
e0d93fe |
|
|
|
a137058 |
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.34-3
|
|
|
a137058 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
a137058 |
|
|
|
221a548 |
* Fri Jan 23 2009 Debarshi Ray <rishi@fedoraproject.org> - 1.34-2
|
|
|
221a548 |
- Added copyright and distribution notices to htmlize-init.el.
|
|
|
221a548 |
|
|
|
221a548 |
* Sat Jan 17 2009 Debarshi Ray <rishi@fedoraproject.org> - 1.34-1
|
|
|
221a548 |
- Initial build.
|