SHA256
8
0
forked from pool/librsync
Files
librsync/librsync.spec
Jan Engelhardt c5fe774a8b Accepting request 1072917 from home:dirkmueller:Factory
- update to 2.3.4:
  * Update github actions and fix `iwyu` build target. Update
    `checkout` and `upload-artifact` to v3. Update `lint.yml` 
    installed packages for fixed iwyu deps. 
  * Fix `iwyu` build target to ignore `fileutil.c`
    and use neater clang output with noisy "note:" output
    removed.  Run `make iwyu-fix` to fix
    includes for `tests/rabinkarp_perf.c`. 
  * Make delta directly process the input stream if it has enough
    data. Delta operations will only accumulate data into the
    internal scoop buffer if the input buffer is too small,
    otherwise it will process the input directly.
    This makes delta calculations 5%~15% faster by avoiding
    extra data copying.
  * Improve documentation so that Doxygen generates more complete
    documentation with diagrams, renders better, and is more
    navigable as markdown docs on GitHub.
  * Tidy rdiff integration test scripts. Made the filenames and
    shell arguments for test scripts consistent. (dbaarda,
  * Add better cmake build type configuration support. Added
    `BuildType.cmake` with better support for selecting the
    build type and making it default to Debug.
  * Remove obsolete unused tests. Removed some obsolete mdfour
    test data files and `check-rdiff` perl script.
  * Fix warning for later CMake versions. New CMake versions
    started complaining about the filename `Findlibb2.cmake` not
    matching the LIBB2 variables being used.

OBS-URL: https://build.opensuse.org/request/show/1072917
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/librsync?expand=0&rev=29
2023-03-19 10:22:00 +00:00

104 lines
2.9 KiB
RPMSpec

#
# spec file for package librsync
#
# 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 lname librsync2
Name: librsync
Version: 2.3.4
Release: 0
Summary: A Library for Generating Network Deltas
License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++
URL: https://github.com/librsync/librsync
Source: https://github.com/librsync/%{name}/archive/v%{version}.tar.gz
BuildRequires: cmake
BuildRequires: pkgconfig
BuildRequires: pkgconfig(bzip2)
BuildRequires: pkgconfig(popt)
BuildRequires: pkgconfig(zlib)
%description
librsync implements the "rsync" algorithm, which allows remote
differencing of binary files. librsync computes a delta relative to a
file's checksum, so the two files need not both be present to generate
a delta.
%package -n %{lname}
Summary: A Library for Generating Network Deltas
# O/P added 2011-11-26
Group: System/Libraries
Obsoletes: librsync < %{version}-%{release}
Provides: librsync = %{version}-%{release}
%description -n %{lname}
librsync implements the "rsync" algorithm, which allows remote
differencing of binary files. librsync computes a delta relative to a
file's checksum, so the two files need not both be present to generate
a delta.
%package devel
Summary: Development files for librsync
Group: Development/Libraries/C and C++
Requires: %{lname} = %{version}
%description devel
librsync implements the "rsync" algorithm, which allows remote
differencing of binary files. librsync computes a delta relative to a
file's checksum, so the two files need not both be present to generate
a delta.
%package -n rdiff
Summary: Frontend to rsync's delta algorithm
Group: Productivity/Archiving/Backup
%description -n rdiff
rdiff computes and applies signature-based file differences.
%prep
%setup -q
%build
%cmake \
-DENABLE_COMPRESSION=ON
%cmake_build
%install
%cmake_install
%check
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
%ctest
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%files -n %{lname}
%{_libdir}/librsync.so.*
%license COPYING
%doc AUTHORS NEWS.md README.md THANKS TODO.md
%files devel
%{_libdir}/librsync.so
%{_mandir}/man3/*
%{_includedir}/*.h
%files -n rdiff
%{_bindir}/rdiff
%{_mandir}/man1/*
%changelog