2007-01-15 23:23:06 +00:00
|
|
|
#
|
2011-11-22 16:48:21 +00:00
|
|
|
# spec file for package librsync
|
2007-01-15 23:23:06 +00:00
|
|
|
#
|
2023-03-19 10:22:00 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2007-01-15 23:23:06 +00:00
|
|
|
#
|
2009-06-17 22:00:00 +00:00
|
|
|
# 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.
|
|
|
|
|
2019-09-13 07:25:45 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:23:06 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2015-02-16 15:11:51 +00:00
|
|
|
%define lname librsync2
|
2007-03-24 18:53:05 +00:00
|
|
|
Name: librsync
|
2023-03-19 10:22:00 +00:00
|
|
|
Version: 2.3.4
|
2014-05-13 13:23:17 +00:00
|
|
|
Release: 0
|
2007-03-24 18:53:05 +00:00
|
|
|
Summary: A Library for Generating Network Deltas
|
2019-09-13 07:25:45 +00:00
|
|
|
License: LGPL-2.1-or-later
|
2012-02-13 12:21:03 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-09-13 07:25:45 +00:00
|
|
|
URL: https://github.com/librsync/librsync
|
2015-02-16 15:11:51 +00:00
|
|
|
Source: https://github.com/librsync/%{name}/archive/v%{version}.tar.gz
|
2019-09-13 07:25:45 +00:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(bzip2)
|
|
|
|
BuildRequires: pkgconfig(popt)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
2007-01-15 23:23:06 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2014-05-13 13:23:17 +00:00
|
|
|
%package -n %{lname}
|
2011-11-26 14:15:45 +00:00
|
|
|
Summary: A Library for Generating Network Deltas
|
2011-11-26 15:48:01 +00:00
|
|
|
# O/P added 2011-11-26
|
2019-09-13 07:25:45 +00:00
|
|
|
Group: System/Libraries
|
2014-05-13 13:23:17 +00:00
|
|
|
Obsoletes: librsync < %{version}-%{release}
|
|
|
|
Provides: librsync = %{version}-%{release}
|
2011-11-26 14:15:45 +00:00
|
|
|
|
2014-05-13 13:23:17 +00:00
|
|
|
%description -n %{lname}
|
2011-11-26 14:15:45 +00:00
|
|
|
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++
|
2014-05-13 13:23:17 +00:00
|
|
|
Requires: %{lname} = %{version}
|
2011-11-26 14:15:45 +00:00
|
|
|
|
|
|
|
%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.
|
2007-01-15 23:23:06 +00:00
|
|
|
|
2011-11-26 14:15:45 +00:00
|
|
|
%package -n rdiff
|
|
|
|
Summary: Frontend to rsync's delta algorithm
|
|
|
|
Group: Productivity/Archiving/Backup
|
2007-01-15 23:23:06 +00:00
|
|
|
|
2011-11-26 14:15:45 +00:00
|
|
|
%description -n rdiff
|
|
|
|
rdiff computes and applies signature-based file differences.
|
2007-01-15 23:23:06 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2014-05-13 13:23:17 +00:00
|
|
|
|
2007-01-15 23:23:06 +00:00
|
|
|
%build
|
2019-09-13 07:25:45 +00:00
|
|
|
%cmake \
|
|
|
|
-DENABLE_COMPRESSION=ON
|
|
|
|
%cmake_build
|
2007-01-15 23:23:06 +00:00
|
|
|
|
|
|
|
%install
|
2019-09-13 07:25:45 +00:00
|
|
|
%cmake_install
|
2007-01-15 23:23:06 +00:00
|
|
|
|
2013-03-16 07:55:44 +00:00
|
|
|
%check
|
2019-09-13 07:25:45 +00:00
|
|
|
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
|
|
|
|
%ctest
|
2013-03-16 07:55:44 +00:00
|
|
|
|
2014-05-13 13:23:17 +00:00
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
2007-08-27 15:46:50 +00:00
|
|
|
|
2014-05-13 13:23:17 +00:00
|
|
|
%files -n %{lname}
|
2015-02-16 15:11:51 +00:00
|
|
|
%{_libdir}/librsync.so.*
|
2019-09-13 07:25:45 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS NEWS.md README.md THANKS TODO.md
|
2007-01-15 23:23:06 +00:00
|
|
|
|
2011-11-26 14:15:45 +00:00
|
|
|
%files devel
|
2007-08-27 15:46:50 +00:00
|
|
|
%{_libdir}/librsync.so
|
2011-11-26 14:15:45 +00:00
|
|
|
%{_mandir}/man3/*
|
2007-08-27 15:46:50 +00:00
|
|
|
%{_includedir}/*.h
|
2011-11-26 14:15:45 +00:00
|
|
|
|
|
|
|
%files -n rdiff
|
|
|
|
%{_bindir}/rdiff
|
|
|
|
%{_mandir}/man1/*
|
2007-01-15 23:23:06 +00:00
|
|
|
|
2007-03-24 18:53:05 +00:00
|
|
|
%changelog
|