diff --git a/librsync-2.3.2.tar.gz b/librsync-2.3.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..b7d41c5c8a929c1260e52b2ceda9ffee9890e2b4 Binary files /dev/null and b/librsync-2.3.2.tar.gz differ diff --git a/librsync.spec b/librsync.spec new file mode 100644 index 0000000000000000000000000000000000000000..a639d1c1a4bd587601eb3b819edf2e79961eeb1b --- /dev/null +++ b/librsync.spec @@ -0,0 +1,71 @@ +Summary: Rsync remote-delta algorithm library +Name: librsync +Version: 2.3.2 +Release: 1 +License: LGPLv2+ +URL: https://librsync.github.io/ +Source: https://github.com/%{name}/%{name}/archive/v%{version}/librsync-%{version}.tar.gz +BuildRequires: cmake +BuildRequires: gcc +BuildRequires: popt-devel + +%description +librsync is a library for calculating and applying network deltas, with an +interface designed to ease integration into diverse network applications. + +%package devel +Summary: Headers and development libraries for librsync +Requires: %{name} + +%description devel +The librsync-devel package contains header files and library necessary for +developing programs based on librsync. + +%package doc +Summary: Documentation files for %{name} +BuildArch: noarch +BuildRequires: doxygen + +%description doc +librsync is a library for doc. + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +%cmake . +%make_build +%make_build doc + +%install +%make_install + +%check +%make_build check + +%pre + +%preun + +%post + +%postun + +%files +%license COPYING +%doc AUTHORS NEWS.md README.md +%{_libdir}/%{name}.so.2* +%{_bindir}/rdiff +%{_mandir}/man1/rdiff.1* + +%files devel +%{_libdir}/%{name}.so +%{_includedir}/%{name}* +%{_mandir}/man3/%{name}.3* + +%files doc +%doc html + +%changelog +* Wed Dec 01 2021 yangchenguang - 2.3.2-1 +- Package init