rpms/html2ps/F-13 html2ps-1.0b6-preserve_prefix_suffix.patch, NONE, 1.1 .cvsignore, 1.2, 1.3 html2ps.spec, 1.3, 1.4 sources, 1.2, 1.3
Petr Pisar
ppisar at fedoraproject.org
Mon May 3 08:55:38 UTC 2010
Author: ppisar
Update of /cvs/pkgs/rpms/html2ps/F-13
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv20807
Modified Files:
.cvsignore html2ps.spec sources
Added Files:
html2ps-1.0b6-preserve_prefix_suffix.patch
Log Message:
1.0b6 bump
html2ps-1.0b6-preserve_prefix_suffix.patch:
html2ps | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- NEW FILE html2ps-1.0b6-preserve_prefix_suffix.patch ---
This fixes regression introduced by 1.0b6.
diff --git a/html2ps b/html2ps
index 98d3b8c..b6fb943 100755
--- a/html2ps
+++ b/html2ps
@@ -2525,6 +2525,7 @@ sub Subst{
while(/<!--#(include|config|echo)\s+(\w+)\s*="([^"]+)"\s*-->/) {
$inc="";
$file=$3;
+ my ($prefix, $suffix) = ($`,$');
if($1 eq "include" && ($file !~m"^/|\.\." || $opt_r)) {
if(substr($file,0,1) ne "/") {
$file=$B2.$file;
@@ -2545,7 +2546,7 @@ sub Subst{
} elsif ($1 eq "echo") {
$inc=$var{$3};
}
- $_=$`.$inc.$';
+ $_=$prefix.$inc.$suffix;
}
}
s/(­?|­?|<!--hy-->)/)HY(/g;
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/html2ps/F-13/.cvsignore,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- .cvsignore 12 May 2008 09:32:44 -0000 1.2
+++ .cvsignore 3 May 2010 08:55:37 -0000 1.3
@@ -1,2 +1,2 @@
-html2ps-1.0b5.tar.gz
html2ps_1.0b5-5.diff.gz
+html2ps-1.0b6.tar.gz
Index: html2ps.spec
===================================================================
RCS file: /cvs/pkgs/rpms/html2ps/F-13/html2ps.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- html2ps.spec 25 Jul 2009 02:14:58 -0000 1.3
+++ html2ps.spec 3 May 2010 08:55:38 -0000 1.4
@@ -1,25 +1,27 @@
Name: html2ps
Version: 1.0
-Release: 0.3.b5%{?dist}
+Release: 0.1.b6%{?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
+URL: http://user.it.uu.se/~jan/%{name}.html
+Source0: http://user.it.uu.se/~jan/%{name}-1.0b6.tar.gz
Source1: xhtml2ps.desktop
-Patch0: http://ftp.de.debian.org/debian/pool/main/h/html2ps/html2ps_1.0b5-5.diff.gz
+Patch0: http://ftp.de.debian.org/debian/pool/main/h/%{name}/%{name}_1.0b5-5.diff.gz
# use xdg-open in xhtml2ps
-Patch1: html2ps-1.0b5-xdg-open.patch
+Patch1: %{name}-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
+Patch2: %{name}-1.0b5-config.patch
+# Regression from upstream 1.0b5..1.0b6
+Patch3: %{name}-1.0b6-preserve_prefix_suffix.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
+# Depend on paperconf directly (instead of libpaper package) for rpmlint sake
+Requires: tex(tex) tex(dvips) ghostscript /usr/bin/paperconf
# not autodetected since they are called by require not at the beginning of
# line
Requires: perl(LWP::UserAgent) perl(HTTP::Cookies) perl(HTTP::Request)
@@ -34,21 +36,22 @@ An HTML to PostScript converter written
%package -n xhtml2ps
-Summary: GUI frontend for html2ps
+Summary: GUI front-end 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
+X-html2ps is freely-available GUI front-end for html2ps, a HTML-to-PostScript
converter.
%prep
-%setup -q -n %{name}-1.0b5
+%setup -q -n %{name}-1.0b6
%patch0 -p1
%patch1 -p1 -b .xdg-open
%patch2 -p1 -b .config
+%patch3 -p1 -b .preserve_prefix_suffix
# convert README to utf8
iconv -f latin1 -t utf8 < README > README.utf8
@@ -56,7 +59,9 @@ touch -c -r README README.utf8
mv README.utf8 README
patch -p1 < debian/patches/01_manpages.dpatch
-patch -p1 < debian/patches/03_html2ps.dpatch
+# 03_html2ps.dpatch is against 1.0b5, adjust it to 1.0b6
+< debian/patches/03_html2ps.dpatch sed -e 's|/opt/misc/|/it/sw/share/www/|' | \
+ patch -p1
%build
@@ -96,11 +101,19 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man5/html2psrc.5*
%files -n xhtml2ps
+%defattr(-,root,root,-)
%doc contrib/xhtml2ps/README contrib/xhtml2ps/LICENSE
%{_bindir}/xhtml2ps
%{_datadir}/applications/*xhtml2ps.desktop
%changelog
+* Thu Apr 29 2010 Petr Pisar <ppisar at redhat.com> - 1.0-0.1.b6
+- 1.0b6 bump (#530403)
+- Fix regression from upstream 1.0b5..1.0b6
+- Fix spelling
+- Default attributes for xhtml2ps %%files
+- Replace libpaper dependency with paperconf binary to make rpmlint happy
+
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0-0.3.b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/html2ps/F-13/sources,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- sources 12 May 2008 09:32:44 -0000 1.2
+++ sources 3 May 2010 08:55:38 -0000 1.3
@@ -1,2 +1,2 @@
-0998fefa4c8f9a04c88cfac7a83df629 html2ps-1.0b5.tar.gz
ec9c01db20d025d97cc592e8319125e0 html2ps_1.0b5-5.diff.gz
+fc313982655061d63108396c0dd4c137 html2ps-1.0b6.tar.gz
More information about the scm-commits
mailing list