[par] Initial check-in following "fedpkg import par-1.52-7.fc16.src.rpm".

David Levine levined at fedoraproject.org
Wed Jul 11 21:35:54 UTC 2012


commit e0aba418d93e04b9fd9afd1382c04bdcdc5433b9
Author: David Levine <levinedl at acm.org>
Date:   Wed Jul 11 16:34:29 2012 -0500

    Initial check-in following "fedpkg import par-1.52-7.fc16.src.rpm".

 .gitignore |    2 +
 par.c.diff |   16 +++++++++++
 par.spec   |   87 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources    |    2 +
 4 files changed, 107 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a0ddcbf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/Par152.tar.gz
+/par_1.52-i18n.3.diff.gz
diff --git a/par.c.diff b/par.c.diff
new file mode 100644
index 0000000..81a48c7
--- /dev/null
+++ b/par.c.diff
@@ -0,0 +1,16 @@
+--- Par152/par.c.orig	Sun Mar 28 16:00:15 2004
++++ Par152/par.c	Sun Mar 28 16:04:00 2004
+@@ -422,10 +422,11 @@
+         }
+         continue;
+       }
+-      if (isspace(c)) 
+-        ch = ' ';
++      /* Fix from Jean-Baptiste Quenot <jb.quenot at caraldi.com>:
++       * Exclude non-breaking space from the class of space chars */
++      if (isspace(c) && isascii(c)) ch = ' ';
+       else 
+         blank = 0;
+       additem(cbuf, &ch, errmsg);
+       if (*errmsg) 
+         goto rlcleanup;
diff --git a/par.spec b/par.spec
new file mode 100644
index 0000000..df769f8
--- /dev/null
+++ b/par.spec
@@ -0,0 +1,87 @@
+Summary:        Paragraph reformatter, vaguely like fmt, but more elaborate
+Name:           par
+Version:        1.52
+Release:        7%{?dist}
+License:        Par
+Group:          Applications/Text
+Source0:        http://www.nicemice.net/par/Par152.tar.gz
+Patch1:         http://www.nicemice.net/par/par_1.52-i18n.3.diff.gz
+# Patch2 derived from:
+# http://www.freebsd.org/cgi/cvsweb.cgi/ports/textproc/par/files/patch-par.c
+# and then manually adjusted to be compatible with Patch1.
+Patch2:         par.c.diff
+URL:            http://www.nicemice.net/par/
+
+%description
+par is a filter which copies its input to its output, changing all
+white characters (except newlines) to spaces, and reformatting each
+paragraph.  Paragraphs are separated by protected, blank, and bodiless
+lines (see the man page Terminology section for definitions), and
+optionally delimited by indentation (see the d option in the Options
+section).  Each output paragraph is generated from the corresponding
+input paragraph as follows:
+
+  1) An optional prefix and/or suffix is removed from each input line.
+  2) The remainder is divided into words (separated by spaces).
+  3) The words are joined into lines to make an eye-pleasing paragraph.
+  4) The prefixes and suffixes are reattached.
+
+If there are suffixes, spaces are inserted before them so that they
+all end in the same column.
+
+
+%prep
+%setup -q -n Par152
+%patch1 -p 1
+%patch2 -p 1
+
+
+%build
+make -f protoMakefile CC="gcc -c $RPM_OPT_FLAGS"
+
+
+%install
+install -d %{buildroot}/%{_bindir}
+install -d %{buildroot}/%{_mandir}/man1
+install -d %{buildroot}/%{_docdir}/%{name}-%{version}
+install par %{buildroot}/%{_bindir}
+install -m 644 par.1 %{buildroot}/%{_mandir}/man1
+
+
+%files
+%{_bindir}/par
+%{_mandir}/man1/par.1*
+%doc par.doc releasenotes
+
+
+%changelog
+
+* Mon Jul 09 2012 David Levine <par.packager at gmail.com> 1.52-7
+- Removed -s from install of executable.  Changed summary to
+  be less pretentious.
+
+* Sun Jul 08 2012 David Levine <par.packager at gmail.com> 1.52-6
+- Moved executable to /usr/bin/par because par2cmdline removed
+  the conflict, as of Fedora 18.
+
+* Tue May 15 2012 David Levine <par.packager at gmail.com> 1.52-5
+- Moved executable to /usr/lib/par/.
+
+* Tue Apr 17 2012 David Levine <par.packager at gmail.com> 1.52-4
+- Addressed first round of comments on the spec.
+- Restored -s in install of executable.  That is much more consistent
+- with what is already in /usr/bin, and removes an rpmlint warning.
+
+* Mon Apr 16 2012 David Levine <par.packager at gmail.com> 1.52-3
+- In response to comments about packaging:  renamed binary to
+- parr to avoid conflict with par2cmdline, and removed -s from
+- install.
+
+* Sun Apr 15 2012 David Levine <par.packager at gmail.com> 1.52-2
+- Packaged for Fedora.  Borrowed from the Madriva spec of
+- Thierry Vignaud <tvignaud at mandriva.com>.  Added the two patches.
+
+* Tue Dec 30 2003 - Volker Kuhlmann <VolkerKuhlmann at gmx.de>
+- Package available from: http://volker.dnsalias.net/soft/
+- for SuSE 8.2
+- initial package version
diff --git a/sources b/sources
index e69de29..d963cea 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+4ccacd824171ba2c2f14fb8aba78b9bf  Par152.tar.gz
+e79b448cb14323a39d817afce4847cdf  par_1.52-i18n.3.diff.gz


More information about the scm-commits mailing list