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
b3b0a25
Release:	18%{?dist}
221a548
License:	GPLv2+
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
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
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
%files
221a548
%dir %{emacs_lispdir}/%{pkg}
221a548
%{emacs_lispdir}/%{pkg}/%{pkg}.elc
221a548
%{emacs_startdir}/%{pkg}-init.el
221a548
221a548
%files el
221a548
%{emacs_lispdir}/%{pkg}/%{pkg}.el
221a548
221a548
%changelog
b3b0a25
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.34-18
b3b0a25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
b3b0a25
875d1ee
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.34-17
875d1ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
875d1ee
ef024c8
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.34-16
ef024c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ef024c8
0ed3243
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.34-15
0ed3243
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0ed3243
f3e28cf
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.34-14
f3e28cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f3e28cf
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.