rpms/html2ps/devel html2ps-1.0b5-config.patch, NONE, 1.1 html2ps-1.0b5-xdg-open.patch, NONE, 1.1 html2ps.spec, NONE, 1.1 xhtml2ps.desktop, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Patrice Dumas (pertusus) fedora-extras-commits at redhat.com
Mon May 12 09:33:59 UTC 2008


Author: pertusus

Update of /cvs/extras/rpms/html2ps/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv28408/devel

Modified Files:
	.cvsignore sources 
Added Files:
	html2ps-1.0b5-config.patch html2ps-1.0b5-xdg-open.patch 
	html2ps.spec xhtml2ps.desktop 
Log Message:
Initial import.


html2ps-1.0b5-config.patch:

--- NEW FILE html2ps-1.0b5-config.patch ---
diff -up html2ps-1.0b5/debian/config/html2psrc.config html2ps-1.0b5/debian/config/html2psrc
--- html2ps-1.0b5/debian/config/html2psrc.config	2008-04-19 00:34:31.000000000 +0200
+++ html2ps-1.0b5/debian/config/html2psrc	2008-04-19 00:34:57.000000000 +0200
@@ -5,14 +5,11 @@
     ImageMagick: 1;
     PerlMagick: 1;
     TeX: 1;
+    dvips: 1;
     Ghostscript: 1;
-    check: weblint;
     libwww-perl: 1;
     path: "/usr/bin";
   }
-  paper {
-    type: letter;
-  }
   hyphenation {
     en {
       file: "/usr/share/texmf-texlive/tex/generic/hyphen/hyphen.tex";

html2ps-1.0b5-xdg-open.patch:

--- NEW FILE html2ps-1.0b5-xdg-open.patch ---
diff -up html2ps-1.0b5/contrib/xhtml2ps/xhtml2ps.xdg-open html2ps-1.0b5/contrib/xhtml2ps/xhtml2ps
--- html2ps-1.0b5/contrib/xhtml2ps/xhtml2ps.xdg-open	2008-04-18 23:33:50.000000000 +0200
+++ html2ps-1.0b5/contrib/xhtml2ps/xhtml2ps	2008-04-18 23:34:05.000000000 +0200
@@ -804,7 +804,7 @@ proc UT_Config {} {
   array set stusr {
     command     "html2ps"
     checker     "weblint -x Netscape"
-    viewer      "ghostview -magstep -2 -a4"
+    viewer      "xdg-open"
     printcmd    "lp"
     filepcmd    "exec cp"
     orientation " "


--- NEW FILE html2ps.spec ---
Name:           html2ps
Version:        1.0
Release:        0.1.b5%{?dist}
Summary:        HTML to PostScript converter

Group:          Applications/Publishing
License:        GPLv2+
URL:            http://user.it.uu.se/~jan/html2ps.html
Source0:        http://user.it.uu.se/~jan/html2ps-1.0b5.tar.gz
Source1:        xhtml2ps.desktop
Patch0:         http://ftp.de.debian.org/debian/pool/main/h/html2ps/html2ps_1.0b5-5.diff.gz
# use xdg-open in xhtml2ps
Patch1:         html2ps-1.0b5-xdg-open.patch
# patch config file from debian to use dvips, avoid using weblint 
# don't set letter as default page type, paperconf will set the default
Patch2:         html2ps-1.0b5-config.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  desktop-file-utils
# libpaper is required for paperconf
Requires:       tex(tex) tex(dvips) ghostscript libpaper
# not autodetected since they are called by require not at the beginning of 
# line
Requires:       perl(LWP::UserAgent) perl(HTTP::Cookies) perl(HTTP::Request)

%description
An HTML to PostScript converter written in Perl.
* Many possibilities to control the appearance. 
* Support for processing multiple documents.
* A table of contents can be generated.
* Configurable page headers/footers.
* Automatic hyphenation and text justification can be selected. 


%package -n xhtml2ps
Summary:     GUI frontend for html2ps
Group:       User Interface/X
Requires:    html2ps = %{version}-%{release}
Requires:    xdg-utils

%description -n xhtml2ps
X-html2ps is freely-available GUI frontend for html2ps, a HTML-to-PostScript
converter.


%prep
%setup -q -n %{name}-1.0b5
%patch0 -p1
%patch1 -p1 -b .xdg-open
%patch2 -p1 -b .config

# convert README to utf8
iconv -f latin1 -t utf8 < README > README.utf8
touch -c -r README README.utf8
mv README.utf8 README

patch -p1 < debian/patches/01_manpages.dpatch
patch -p1 < debian/patches/03_html2ps.dpatch

%build


%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man{1,5}

sed -e 's;/etc/html2psrc;%{_sysconfdir}/html2psrc;' \
    -e 's;/usr/share/doc/html2ps;%{_docdir}/%{name}-%{version};' \
        html2ps > $RPM_BUILD_ROOT%{_bindir}/html2ps
chmod 0755 $RPM_BUILD_ROOT%{_bindir}/html2ps
install -p -m0644 html2ps.1 $RPM_BUILD_ROOT%{_mandir}/man1
install -p -m0644 html2psrc.5 $RPM_BUILD_ROOT%{_mandir}/man5
sed -e 's;/usr/bin;%{_bindir};' \
    -e 's;/usr/share/texmf-texlive;%{_datadir}/texmf;' \
    debian/config/html2psrc > $RPM_BUILD_ROOT%{_sysconfdir}/html2psrc

install -m0755 -p contrib/xhtml2ps/xhtml2ps $RPM_BUILD_ROOT%{_bindir}
desktop-file-install --vendor="fedora"               \
  --dir=${RPM_BUILD_ROOT}%{_datadir}/applications         \
  %{SOURCE1}


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc COPYING README sample html2ps.html
%config(noreplace) %{_sysconfdir}/html2psrc
%{_bindir}/html2ps
%{_mandir}/man1/html2ps.1*
%{_mandir}/man5/html2psrc.5*

%files -n xhtml2ps
%doc contrib/xhtml2ps/README contrib/xhtml2ps/LICENSE
%{_bindir}/xhtml2ps
%{_datadir}/applications/*xhtml2ps.desktop

%changelog
* Fri Apr 18 2008 Patrice Dumas <pertusus at free.fr> 1.0-0.1.b5
- initial release


--- NEW FILE xhtml2ps.desktop ---
[Desktop Entry]
Encoding=UTF-8
Name=X-html2ps
GenericName=html2ps frontend
Comment=GUI frontend for html2ps
Exec=xhtml2ps
Terminal=false
Type=Application
Categories=Utility;


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/html2ps/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	4 May 2008 03:34:29 -0000	1.1
+++ .cvsignore	12 May 2008 09:32:44 -0000	1.2
@@ -0,0 +1,2 @@
+html2ps-1.0b5.tar.gz
+html2ps_1.0b5-5.diff.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/html2ps/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	4 May 2008 03:34:29 -0000	1.1
+++ sources	12 May 2008 09:32:44 -0000	1.2
@@ -0,0 +1,2 @@
+0998fefa4c8f9a04c88cfac7a83df629  html2ps-1.0b5.tar.gz
+ec9c01db20d025d97cc592e8319125e0  html2ps_1.0b5-5.diff.gz




More information about the scm-commits mailing list