From fe609809e07b9fa546e5bb7554cd675a0d998bda4cbedde60e14eeadbad44b57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 15:27:11 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main libpaper revision bc3c93f31d8ab52c940b033853b0442e --- .gitattributes | 23 +++++++++ libpaper-2.1.0.tar.gz | 3 ++ libpaper.changes | 106 ++++++++++++++++++++++++++++++++++++++++++ libpaper.spec | 104 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 236 insertions(+) create mode 100644 .gitattributes create mode 100644 libpaper-2.1.0.tar.gz create mode 100644 libpaper.changes create mode 100644 libpaper.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/libpaper-2.1.0.tar.gz b/libpaper-2.1.0.tar.gz new file mode 100644 index 0000000..9540e65 --- /dev/null +++ b/libpaper-2.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:474e9575e1235a0d8e3661f072de0193bab6ea1023363772f698a2cc39d640cf +size 1306128 diff --git a/libpaper.changes b/libpaper.changes new file mode 100644 index 0000000..1a2fbe2 --- /dev/null +++ b/libpaper.changes @@ -0,0 +1,106 @@ +------------------------------------------------------------------- +Thu Apr 20 07:37:34 UTC 2023 - Paolo Stivanin + +- Update to 2.1.0: + * This release reintroduces the old ‘paperconf’ utility, for + backwards compatibility only. + +------------------------------------------------------------------- +Mon Feb 27 10:40:11 UTC 2023 - Paolo Stivanin + +- Update to 2.0.10: + * minor build fix. + +------------------------------------------------------------------- +Mon Feb 20 13:58:04 UTC 2023 - Paolo Stivanin + +- update to 2.0.9: + * Tweak the documentation of how paper sizes are set to make it + easier to find and more accurate. + * Removes the requirement for help2man at build time + * Various fixes. + +------------------------------------------------------------------- +Thu Dec 8 20:33:45 UTC 2022 - Dirk Müller + +- update to 2.0.4: + * don't hardcode make binary name in tests + +------------------------------------------------------------------- +Mon Nov 7 15:45:30 UTC 2022 - Paolo Stivanin + +- Update to 2.0.3: + * avoid error in paperconfig + * paperinit: fix a space leak in case of error parsing paperspecs + * paper.c: make unit_list const char *, to fix a warning + * paper.c: fix a trivial leak + * fix segfault when HOME is unset (thanks, Werner Fink) + * fix a segfault in systempapername() (fix from Werner Fink, thanks!) + * hardwire papersize configuration filename to ‘papersize’ +- Remove upstreamed libpaper-foul.patch + +------------------------------------------------------------------- +Wed Aug 24 11:55:26 UTC 2022 - Dr. Werner Fink + +- Do not assume that HOME is set in the environment + +------------------------------------------------------------------- +Wed Aug 24 11:14:10 UTC 2022 - Dr. Werner Fink + +- As told: require libpaper for libpaper1 to get paperspecs back + +------------------------------------------------------------------- +Wed Aug 24 10:11:50 UTC 2022 - Dr. Werner Fink + +- Ignore existing /etc + +------------------------------------------------------------------- +Wed Aug 24 09:19:40 UTC 2022 - Dr. Werner Fink + +- Add required configure paperspecs to /etc as otherwise the + libpaper.so.1.2.2 and all tools like paper(1) to not know + any paper layout nor the size of those + +------------------------------------------------------------------- +Wed Aug 24 08:28:31 UTC 2022 - Dr. Werner Fink + +- Correct patch libpaper-foul.patch to patch the correct file! + +------------------------------------------------------------------- +Wed Aug 24 07:41:07 UTC 2022 - Dr. Werner Fink + +- Add patch libpaper-foul.patch + * Do not expect that defaultpapername() returns a default paper + size but also NULL (nada) + +------------------------------------------------------------------- +Mon Aug 22 12:37:32 UTC 2022 - Dominique Leuenberger + +- The new libpaper also conflicts with paper directly, as + /etc/paperspecs used to be in paper. Add split provides for the + move from paper to libpaper for /etc/paperspecs. + +------------------------------------------------------------------- +Mon Aug 22 08:54:13 UTC 2022 - Dominique Leuenberger + +- Try to fix upgrade issues: + + Move paper provides/obsoletes to libpaper-tools sub-package: + the paper binary is there, making this the most correct place. + + Have libpaper conflict with libpaper-utils: the old package + had doc files in /usr/share/doc/packages/libpaper, which now + conflicts. +- Do not package ChangeLog file: it only has a reference to 'check + git history' (not even with a link to the repository). + +------------------------------------------------------------------- +Wed Aug 3 06:35:24 UTC 2022 - Paolo Stivanin + +- Update to 1.2.2: + * Allow the user paperspecs file to be invalid. + * Make systempapername() return a value that must be freed by the caller. + * Set free_xdg_config_home precisely when needed. + +------------------------------------------------------------------- +Mon Jul 4 07:59:41 UTC 2022 - Paolo Stivanin + +- Initial OBS release. This package provides and obsoletes paper. diff --git a/libpaper.spec b/libpaper.spec new file mode 100644 index 0000000..1863851 --- /dev/null +++ b/libpaper.spec @@ -0,0 +1,104 @@ +# +# spec file for package libpaper +# +# Copyright (c) 2023 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 sover 2 + +Name: libpaper +Version: 2.1.0 +Release: 0 +Summary: Enables users to indicate their preferred paper size +License: GPL-3.0-or-later +URL: https://github.com/rrthomas/libpaper +Source: %{url}/releases/download/v%{version}/libpaper-%{version}.tar.gz +BuildRequires: autoconf >= 2.71 +BuildRequires: automake +BuildRequires: perl +# libpaper-utils meanly packaged doc files in /usr/share/doc/packaes/libpaper +Conflicts: libpaper-utils <= 1.1.28 +# /etc/paperspecs used to live in paper (main package) +Provides: paper:/etc/paperspecs +Conflicts: paper <= 2.3 + +%description +This package enables users to indicate their preferred paper +size, provides the libpaper(1) utility to find the user's preferred +default libpaper size and give information about known sizes, and +specifies system-wide and per-user libpaper size catalogues, which can be +can also be used directly (see libpaperspecs(5)). + +%package -n %{name}%{sover} +Summary: This package contains the paper library +# To get /etc/paperspecs installed as used by libpaper +Requires: %{name} >= %{version} + +%description -n %{name}%{sover} +This package provides the paper library + +%package -n %{name}-tools +Summary: Tools that make use of libpaper +Provides: paper = 2.4 +Obsoletes: paper <= 2.3 +Provides: libpaper-utils = 2.4 +Obsoletes: libpaper-utils <= 2.3 + +%description -n %{name}-tools +This package provides the 'paper' binary + +%package devel +Summary: This package contains the development files needed by libpaper +Requires: %{name}%{sover} = %{version} + +%description devel +This package contains all devel files needed by the libpaper package + +%prep +%autosetup -p1 + +%build +%configure \ + --disable-static +%make_build + +%install +%make_install +rm -vRf %{buildroot}%{_datadir}/doc/libpaper/README +find %{buildroot}%{_libdir} -name *libpaper.la -delete + +%post -n %{name}%{sover} -p /sbin/ldconfig +%postun -n %{name}%{sover} -p /sbin/ldconfig + +%files +%license COPYING +%doc README +%config %{_sysconfdir}/paperspecs +%{_mandir}/man5/paperspecs.5.gz + +%files -n %{name}-tools +%{_bindir}/paper +%{_bindir}/paperconf +%{_mandir}/man1/paper.1.gz + +%files -n %{name}%{sover} +%{_libdir}/libpaper.so.%{sover} +%{_libdir}/libpaper.so.%{sover}.* + +%files devel +%{_includedir}/paper.h +%{_libdir}/libpaper.so + +%changelog