From 02bc14ac205e0aba5bace865e8eec0e02a7766e4 Mon Sep 17 00:00:00 2001 From: Sergey Cherevko Date: Fri, 25 Oct 2024 11:44:25 +0300 Subject: [PATCH] import paper-2.3-6.el9 --- .gitignore | 1 + .paper.metadata | 1 + SOURCES/README.md | 6 ++ SPECS/paper.spec | 148 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 156 insertions(+) create mode 100644 .gitignore create mode 100644 .paper.metadata create mode 100644 SOURCES/README.md create mode 100644 SPECS/paper.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..061d9f5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/paper-2.3.tar.gz diff --git a/.paper.metadata b/.paper.metadata new file mode 100644 index 0000000..cc354b4 --- /dev/null +++ b/.paper.metadata @@ -0,0 +1 @@ +e27a543ad2aa4034dd91df473b478a10733df7c2 SOURCES/paper-2.3.tar.gz diff --git a/SOURCES/README.md b/SOURCES/README.md new file mode 100644 index 0000000..61dd133 --- /dev/null +++ b/SOURCES/README.md @@ -0,0 +1,6 @@ +# paper + +This package enables users to indicate their preferred paper size, provides +the paper(1) utility to find the user's preferred default paper size and give +information about known sizes, and specifies system-wide and per-user paper +size catalogs, which can be can also be used directly (see paperspecs(5)). \ No newline at end of file diff --git a/SPECS/paper.spec b/SPECS/paper.spec new file mode 100644 index 0000000..1c56fc3 --- /dev/null +++ b/SPECS/paper.spec @@ -0,0 +1,148 @@ +# Unbundle gnulib +%bcond_without paper_enables_unbundling_gnulib + +Name: paper +Version: 2.3 +Release: 6%{?dist} +Summary: Query paper size database and retrieve the preferred size +# COPYING: GPL-3.0 text +# lib/progname.c: GPL-3.0-or-later (bundled from gnulib) +# lib/progname.h: GPL-3.0-or-later (bundled from gnulib) +# src/localepaper.c: FSFAP +# src/paper.in.in: GPL-3.0-or-later +## Not in any binary package +# aclocal.m4: FSFULLR +# build-aux/compile: GPL-2.0-or-later WITH Libtool-exception +# +# build-aux/config.guess: GPL-3.0-or-later WITH Libtool-exception +# build-aux/config.sub: GPL-3.0-or-later WITH Libtool-exception +# build-aux/depcomp: GPL-2.0-or-later WITH Libtool-exception +# build-aux/install-sh: MIT +# build-aux/missing: GPL-2.0-or-later WITH Libtool-exception +# build-aux/relocatable.pl.in: GPL-3.0-or-later +# configure: FSFUL +# INSTALL: FSFAP +# lib/arg-nonnull.h: GPL-3.0-or-later +# lib/c++defs.h: GPL-3.0-or-later +# lib/langinfo.in.h: GPL-3.0-or-later +# lib/locale.in.h: GPL-3.0-or-later +# lib/Makefile.am: GPL-3.0-or-later WITH Libtool-exception +# lib/Makefile.in: GPL-3.0-or-later WITH Libtool-exception AND FSFULLR +# lib/stddef.in.h: GPL-3.0-or-later +# lib/warn-on-use.h: GPL-3.0-or-later +# m4/00gnulib.m4: FSFULLR +# m4/absolute-header.m4: FSFULLR +# m4/extensions.m4: FSFULLR +# m4/gnulib-cache.m4: GPL-3.0-or-later WITH Libtool-exception +# m4/gnulib-common.m4: FSFULLR +# m4/gnulib-comp.m4: GPL-3.0-or-later WITH Libtool-exception +# m4/include_next.m4: FSFULLR +# m4/langinfo_h.m4: FSFULLR +# m4/locale_h.m4: FSFULLR +# m4/relocatable-lib.m4: FSFULLR +# m4/stddef_h.m4: FSFULLR +# m4/warn-on-use.m4: FSFULLR +# m4/wchar_t.m4: FSFULLR +# Makefile.in: FSFULLR +# man/Makefile.in: FSFULLR +# src/Makefile.in: FSFULLR +License: GPL-3.0-or-later AND FSFAP +URL: https://github.com/rrthomas/%{name} +Source0: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: bash +# coreutils for chmod executed from src/Makefile.am +BuildRequires: coreutils +BuildRequires: gcc +%if %{with paper_enables_unbundling_gnulib} +BuildRequires: gnulib-devel +%endif +BuildRequires: help2man +BuildRequires: make +BuildRequires: perl-interpreter +BuildRequires: perl-generators +BuildRequires: sed +# Run-time: +BuildRequires: perl(:VERSION) >= 5.10.1 +BuildRequires: perl(Config) +BuildRequires: perl(Cwd) +BuildRequires: perl(File::Basename) +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(Getopt::Long) +BuildRequires: perl(locale) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Tests: +# glibc-common for locale tool +BuildRequires: glibc-common +BuildRequires: diffutils +Provides: bundled(gnulib)%(perl -ne 'if($. == 1 and /\A(\d+)-(\d+)-(\d+)/) {print qq{ = $1$2$3}}' %{_defaultdocdir}/gnulib/ChangeLog 2>/dev/null) + +%description +This package enables users to indicate their preferred paper size, provides +the paper(1) utility to find the user's preferred default paper size and give +information about known sizes, and specifies system-wide and per-user paper +size catalogs, which can also be used directly (see paperspecs(5)). + +%prep +%setup -q +%if %{with paper_enables_unbundling_gnulib} +gnulib-tool --import --no-conditional-dependencies --no-libtool \ + langinfo locale progname relocatable-perl +%endif +autoreconf -fi + +%build +%configure --disable-relocatable +%{make_build} + +%check +# No upstream tests +echo "Testing localepaper tool" +locale width height > expected +./src/localepaper | tr ' ' "\n" > got +diff -u expected got +echo "Testing paper tool" +perl -c ./src/paper + +%install +%{make_install} + +%files +%license COPYING +# ChangeLog, NEWS are not helpful +%doc AUTHORS README +%{_bindir}/paper +%config(noreplace) %{_sysconfdir}/paperspecs +%{_libexecdir}/localepaper +%{_mandir}/man1/paper.1* +%{_mandir}/man5/paperspecs.5* + +%changelog +* Thu Oct 24 2024 Sergey Cherevko - 2.3-6 +- Rebuilt for MSVSphere 9.4 + +* Wed Jan 04 2023 Petr Pisar - 2.3-6 +- Correct a typo in a description +- Convert a License tag to the SPDX format + +* Fri Jul 22 2022 Fedora Release Engineering - 2.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu Jan 20 2022 Fedora Release Engineering - 2.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 2.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 2.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Oct 15 2020 Petr Pisar - 2.3-1 +- 2.3 bump + +* Tue Oct 06 2020 Petr Pisar - 2.2-1 +- 2.2 version packaged +