Accepting request 831529 from home:mcepl:work

The initial packaging effort for par(1).

The only possible problem is conflicting name with par (Parity Archive File Generator), but I don’t think it is much probable that these two would be installed on one system, so pure Conflict should work. update-alternatives doesn’t feel like the right solution, anyway.

OBS-URL: https://build.opensuse.org/request/show/831529
OBS-URL: https://build.opensuse.org/package/show/Base:System/par_text?expand=0&rev=1
This commit is contained in:
Andreas Jaeger 2020-09-21 06:17:30 +00:00 committed by Git OBS Bridge
commit 87ad4b769e
9 changed files with 169 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

16
_service Normal file
View File

@ -0,0 +1,16 @@
<services>
<service name="obs_scm">
<param name="versionprefix">1.53.0+git</param>
<param name="url">https://bitbucket.org/amc-nicemice/par.git</param>
<param name="scm">git</param>
<param name="exclude">.git*</param>
<param name="changesgenerate">enable</param>
<param name="changesauthor">mcepl@cepl.eu</param>
</service>
<service mode="buildtime" name="tar" />
<service name="recompress" mode="buildtime">
<param name="compression">xz</param>
<param name="file">*.tar</param>
</service>
<service name="set_version" mode="buildtime"/>
</services>

View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://bitbucket.org/amc-nicemice/par.git</param>
<param name="changesrevision">eb0590f6bafc4f9e44a5ad7e0baadc29c69e79e7</param></service></servicedata>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ff345b0bfbf8748fda94aef6766bcfa07596ec3057082352ab956ed0add71e59
size 209931

View File

@ -0,0 +1,5 @@
name: par
version: 1.53.0+git.1584347654.eb0590f
mtime: 1584347654
commit: eb0590f6bafc4f9e44a5ad7e0baadc29c69e79e7

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://bitbucket.org/amc-nicemice/par.git</param>
<param name="changesrevision">eb0590f6bafc4f9e44a5ad7e0baadc29c69e79e7</param></service></servicedata>

39
par_text.changes Normal file
View File

@ -0,0 +1,39 @@
-------------------------------------------------------------------
Wed Sep 02 18:00:45 UTC 2020 - mcepl@cepl.eu
- Update to version 1.53.0+git.1584347654.eb0590f:
* Par 1.53.0 released 2020-Mar-14
* Par 1.52 released 2001-Apr-29
* Par 1.51 released 2000-Feb-24
* Par 1.50 released 1996-Feb-11
* Par 1.41 released 1993-Oct-31
* Par 1.40 released 1993-Oct-10
* Par 1.32 released 1993-Sep-13
* Par 1.31 released 1993-Sep-07
* Par 1.30 released 1993-Aug-18
* Par 1.20 released 1993-Aug-10
-------------------------------------------------------------------
Fri Mar 06 09:01:16 UTC 2020 - mcepl@cepl.eu
- Update to version 152+git.1583481202.96076a2:
* Reapply patches correctly.
-------------------------------------------------------------------
Thu Mar 05 08:44:06 UTC 2020 - mcepl@cepl.eu
- Switch to the new upstream https://gitlab.com/mcepl/par
- Update to version 152+git.1583397706.93d6247:
* Remove incorrect settings of CC macro.
-------------------------------------------------------------------
Thu Mar 5 00:24:23 CET 2020 - Matej Cepl <mcepl@suse.com>
- Add fix_build_failures.patch to got gcc warnings to go away.
- Still broken UTF-8.
-------------------------------------------------------------------
Sat Feb 29 01:58:28 CET 2020 - Matej Cepl <mcepl@suse.com>
- Restart of attempts to package par 1.52.

74
par_text.spec Normal file
View File

@ -0,0 +1,74 @@
#
# spec file for package Par
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define upname par
Name: par_text
Version: 1.53.0+git.1584347654.eb0590f
Release: 0
Summary: Paragraph reformatter
License: MIT
Group: Productivity/Text/Convertors
URL: http://www.nicemice.net/par/
Source0: par-%{version}.tar.xz
# I hope that these two packages are so specialised, they
# shouldn't be on one system.
Conflicts: 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, and optionally delimited by indentation.
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.
NOTE: This package should really be named "par" not "Par".
It has existed thus since at least 1993. But it was never packaged
for openSUSE before now and, being fairly obscure and little known,
a more recent utility from http://parchive.sourceforge.net, or at
least the openSUSE packaging of it, has already been using the name
"par" for some time, AND, at least one other package, "dar" expects
and depends on this. So this package can't realistically use it's
own rightful name as it would conflict with gpar/par-cmdline, and
break -at least- dar, which are both more widely installed and used
and so can't be changed easily now.
%prep
%autosetup -p1 -n %{upname}-%{version}
%build
make -f protoMakefile CC="cc -c" LINK1="cc" LINK2="-o" RM="rm" JUNK="" %{?_smp_mflags} CFLAGS="%{optflags}"$*
%install
install -D -t %{buildroot}/%{_bindir} par
install -p -m 0644 -D -t %{buildroot}/%{_mandir}/man1 par.1
%files
%{_bindir}/par
%doc par.doc releasenotes
%{_mandir}/man1/par.1%{?ext_man}
%changelog