Files
libjodycode/libjodycode.spec
Dirk Mueller a5b96a88fe - update to 4.0:
* Add loads of new jc_* functions and constants
  * Add jc_errno to replace errno
  * Completely remove API feature tables
  * Fixes for building on macOS and Hurd
  * Add rolling hash capability to jc_block_hash()
  * Add jc_get_d_namlen() to enable strlen() skips for directory
    objects
  * Add file linking functions with batch processing (incomplete,
    do not use yet)
  * Time functions now have nanosecond precision on Windows
  * Add jc_str_t data type (string prefixed with its own length)
  * Add jc_close() stub function
  * jc_get_proc_cacheinfo() is a stub function on non-Linux for
    future use

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libjodycode?expand=0&rev=6
2025-08-19 16:16:37 +00:00

74 lines
2.8 KiB
RPMSpec

#
# spec file for package libjodycode
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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 libjodycode4
Name: libjodycode
Version: 4.0
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.4
%{_libdir}/libjodycode.so.4.0
%files -n libjodycode-devel
%doc CHANGES.txt README.md
%{_includedir}/libjodycode.h
%{_libdir}/libjodycode.so
%{_mandir}/man7/libjodycode.7%{?ext_man}
%changelog