From 06cbb3b7fd8081616903f095c7f53fa14dbc1a200888f489c70b9207fb4c9539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Mon, 18 Nov 2024 09:48:10 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main libjodycode revision 90c66243f06a285e22b3c9bc049d23c7 --- .gitattributes | 23 ++++++++++++++ libjodycode.changes | 19 ++++++++++++ libjodycode.spec | 73 +++++++++++++++++++++++++++++++++++++++++++++ v3.1.tar.gz | 3 ++ 4 files changed, 118 insertions(+) create mode 100644 .gitattributes create mode 100644 libjodycode.changes create mode 100644 libjodycode.spec create mode 100644 v3.1.tar.gz 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/libjodycode.changes b/libjodycode.changes new file mode 100644 index 0000000..f4a208e --- /dev/null +++ b/libjodycode.changes @@ -0,0 +1,19 @@ +------------------------------------------------------------------- +Wed Oct 30 13:44:08 UTC 2024 - Giacomo Leidi + +- Update specfile to match new source tarball structure + +------------------------------------------------------------------- +Wed Oct 30 13:35:58 UTC 2024 - Giacomo Leidi + +- update source tarball after migration to Codeberg. + +------------------------------------------------------------------- +Fri Oct 18 12:43:44 UTC 2024 - Giacomo Leidi + +- libjodycode migrated to codeberg, see https://www.jdupes.com/2023/10/05/news-github-is-out-codeberg-is-in/ + +------------------------------------------------------------------- +Tue Aug 22 14:56:03 UTC 2023 - Michael Vetter + +- Initial package of libjodycode 3.1 for openSUSE diff --git a/libjodycode.spec b/libjodycode.spec new file mode 100644 index 0000000..a23e4b2 --- /dev/null +++ b/libjodycode.spec @@ -0,0 +1,73 @@ +# +# spec file for package libjodycode +# +# Copyright (c) 2024 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 c_lib libjodycode3 +Name: libjodycode +Version: 3.1 +Release: 0 +Summary: Shared code used by several utilities written by Jody Bruchon +License: MIT +Group: Development/Libraries/C and C++ +URL: https://codeberg.org/jbruchon/libjodycode +Source0: https://codeberg.org/jbruchon/libjodycode/archive/v%{version}.tar.gz +BuildRequires: gcc +BuildRequires: make + +%description +libjodycode is a software code library containing code shared among several of the programs written by Jody Bruchon such as imagepile, jdupes, winregfs, and zeromerge. These shared pieces of code were copied between each program as they were updated. As the number of programs increased and keeping these pieces of code synced became more annoying, the decision was made to combine all of them into a single reusable shared library. + +%package -n libjodycode-devel +Summary: Development files for libjodycode +Group: Development/Libraries/C and C++ +Requires: %{c_lib} = %{version} + +%description -n libjodycode-devel +Development files and headers for libjodycode + +%package -n %{c_lib} +Summary: Shared code used by several utilities written by Jody Bruchon +Group: System/Libraries + +%description -n %{c_lib} +libjodycode is a software code library containing code shared among several of the programs written by Jody Bruchon such as imagepile, jdupes, winregfs, and zeromerge. These shared pieces of code were copied between each program as they were updated. As the number of programs increased and keeping these pieces of code synced became more annoying, the decision was made to combine all of them into a single reusable shared library. + +%prep +%setup -q -n %name + +%build +%make_build + +%install +%make_install PREFIX="%{_prefix}" LIB_DIR="%{_libdir}" +rm %{buildroot}%{_libdir}/libjodycode.a + +%post -n %{c_lib} -p /sbin/ldconfig +%postun -n %{c_lib} -p /sbin/ldconfig + +%files -n %{c_lib} +%license LICENSE.txt +%{_libdir}/libjodycode.so.3 +%{_libdir}/libjodycode.so.3.1 + +%files -n libjodycode-devel +%doc CHANGES.txt README.md +%{_includedir}/libjodycode.h +%{_libdir}/libjodycode.so +%{_mandir}/man7/libjodycode.7%{?ext_man} + +%changelog diff --git a/v3.1.tar.gz b/v3.1.tar.gz new file mode 100644 index 0000000..d6f89cc --- /dev/null +++ b/v3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:837b660c305215f0cbd68b002e831f29fe1a1d823cace74d75203111eb433bbd +size 27339