Blame SPECS/html2ps.spec

b24bb0
%define my_subversion b7
b24bb0
Name:           html2ps
b24bb0
Version:        1.0
3ceb8e
Release:        0.14.%{my_subversion}%{?dist}
b24bb0
Summary:        HTML to PostScript converter
b24bb0
b24bb0
Group:          Applications/Publishing
b24bb0
License:        GPLv2+
b24bb0
URL:            http://user.it.uu.se/~jan/%{name}.html
b24bb0
Source0:        http://user.it.uu.se/~jan/%{name}-1.0%{my_subversion}.tar.gz
b24bb0
Source1:        xhtml2ps.desktop
b24bb0
Patch0:         http://ftp.de.debian.org/debian/pool/main/h/%{name}/%{name}_1.0b5-5.diff.gz
b24bb0
# use xdg-open in xhtml2ps
b24bb0
Patch1:         %{name}-1.0b5-xdg-open.patch
b24bb0
# patch config file from debian to use dvips, avoid using weblint 
b24bb0
# don't set letter as default page type, paperconf will set the default
b24bb0
Patch2:         %{name}-1.0b5-config.patch
b24bb0
# Remove deprecated variable, bug #822117
b24bb0
Patch3:         %{name}-1.0b7-Remove-deprecated-variable.patch
b24bb0
b24bb0
BuildArch:      noarch
b24bb0
BuildRequires:  desktop-file-utils
b24bb0
# Depend on paperconf directly (instead of libpaper package) for rpmlint sake
b24bb0
Requires:       tex(tex) tex(dvips) ghostscript /usr/bin/paperconf
b24bb0
# not autodetected since they are called by require not at the beginning of 
b24bb0
# line
b24bb0
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
b24bb0
Requires:       perl(LWP::UserAgent) perl(HTTP::Cookies) perl(HTTP::Request)
b24bb0
b24bb0
%description
b24bb0
An HTML to PostScript converter written in Perl.
b24bb0
* Many possibilities to control the appearance. 
b24bb0
* Support for processing multiple documents.
b24bb0
* A table of contents can be generated.
b24bb0
* Configurable page headers/footers.
b24bb0
* Automatic hyphenation and text justification can be selected. 
b24bb0
b24bb0
b24bb0
%package -n xhtml2ps
b24bb0
Summary:     GUI front-end for html2ps
b24bb0
Group:       User Interface/X
b24bb0
Requires:    html2ps = %{version}-%{release}
b24bb0
Requires:    xdg-utils
b24bb0
b24bb0
%description -n xhtml2ps
b24bb0
X-html2ps is freely-available GUI front-end for html2ps, a HTML-to-PostScript
b24bb0
converter.
b24bb0
b24bb0
b24bb0
%prep
b24bb0
%setup -q -n %{name}-1.0%{my_subversion}
b24bb0
%patch0 -p1
b24bb0
%patch1 -p1 -b .xdg-open
b24bb0
%patch2 -p1 -b .config
b24bb0
%patch3 -p1 -b .deprecated
b24bb0
b24bb0
# convert README to utf8
b24bb0
iconv -f latin1 -t utf8 < README > README.utf8
b24bb0
touch -c -r README README.utf8
b24bb0
mv README.utf8 README
b24bb0
b24bb0
patch -p1 < debian/patches/01_manpages.dpatch
b24bb0
# 03_html2ps.dpatch is against 1.0b5, adjust it to 1.0b6
b24bb0
< debian/patches/03_html2ps.dpatch sed -e 's|/opt/misc/|/it/sw/share/www/|' | \
b24bb0
    patch -p1
b24bb0
b24bb0
%build
b24bb0
b24bb0
b24bb0
%install
b24bb0
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
b24bb0
mkdir -p $RPM_BUILD_ROOT%{_bindir}
b24bb0
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man{1,5}
b24bb0
b24bb0
sed -e 's;/etc/html2psrc;%{_sysconfdir}/html2psrc;' \
b24bb0
    -e 's;/usr/share/doc/html2ps;%{_docdir}/%{name}-%{version};' \
b24bb0
        html2ps > $RPM_BUILD_ROOT%{_bindir}/html2ps
b24bb0
chmod 0755 $RPM_BUILD_ROOT%{_bindir}/html2ps
b24bb0
install -p -m0644 html2ps.1 $RPM_BUILD_ROOT%{_mandir}/man1
b24bb0
install -p -m0644 html2psrc.5 $RPM_BUILD_ROOT%{_mandir}/man5
b24bb0
sed -e 's;/usr/bin;%{_bindir};' \
b24bb0
    -e 's;/usr/share/texmf-texlive;%{_datadir}/texmf;' \
b24bb0
    debian/config/html2psrc > $RPM_BUILD_ROOT%{_sysconfdir}/html2psrc
b24bb0
b24bb0
install -m0755 -p contrib/xhtml2ps/xhtml2ps $RPM_BUILD_ROOT%{_bindir}
b24bb0
desktop-file-install \
b24bb0
  --dir=${RPM_BUILD_ROOT}%{_datadir}/applications         \
b24bb0
  %{SOURCE1}
b24bb0
b24bb0
b24bb0
%files
b24bb0
%doc COPYING README sample html2ps.html
b24bb0
%config(noreplace) %{_sysconfdir}/html2psrc
b24bb0
%{_bindir}/html2ps
b24bb0
%{_mandir}/man1/html2ps.1*
b24bb0
%{_mandir}/man5/html2psrc.5*
b24bb0
b24bb0
%files -n xhtml2ps
b24bb0
%doc contrib/xhtml2ps/README contrib/xhtml2ps/LICENSE
b24bb0
%{_bindir}/xhtml2ps
b24bb0
%{_datadir}/applications/*xhtml2ps.desktop
b24bb0
b24bb0
%changelog
3ceb8e
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.0-0.14.b7
3ceb8e
- Mass rebuild 2013-12-27
3ceb8e
b24bb0
* Wed Apr 24 2013 Jon Ciesla <limburgher@gmail.com> - 1.0-0.13.b7
b24bb0
- Drop desktop vendor tag.
b24bb0
b24bb0
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.12.b7
b24bb0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b24bb0
b24bb0
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.11.b7
b24bb0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b24bb0
b24bb0
* Fri Jun 08 2012 Petr Pisar <ppisar@redhat.com> - 1.0-0.10.b7
b24bb0
- Perl 5.16 rebuild
b24bb0
b24bb0
* Wed May 16 2012 Petr Pisar <ppisar@redhat.com> - 1.0-0.9.b7
b24bb0
- Remove deprecated variable (bug #822117)
b24bb0
- Clean spec file
b24bb0
- Insert dependency on perl
b24bb0
b24bb0
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.8.b7
b24bb0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b24bb0
b24bb0
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.7.b7
b24bb0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b24bb0
b24bb0
* Fri May  7 2010 Petr Pisar <ppisar@redhat.com> - 1.0-0.6.b7
b24bb0
- 1.0b7 bump
b24bb0
- Increase revision to 0.6 to have NVR upper then F-13 package
b24bb0
b24bb0
* Thu Apr 29 2010 Petr Pisar <ppisar@redhat.com> - 1.0-0.1.b6
b24bb0
- 1.0b6 bump (CVE-2009-5067, bug #530403)
b24bb0
- Fix regression from upstream 1.0b5..1.0b6
b24bb0
- Fix spelling
b24bb0
- Default attributes for xhtml2ps %%files
b24bb0
- Replace libpaper dependency with paperconf binary to make rpmlint happy
b24bb0
b24bb0
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.3.b5
b24bb0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b24bb0
b24bb0
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.2.b5
b24bb0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b24bb0
b24bb0
* Fri Apr 18 2008 Patrice Dumas <pertusus@free.fr> 1.0-0.1.b5
b24bb0
- initial release